协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
repo-development【开发与工程】Use when modifying PEFT itself, preparing a PEFT pull request, adding a new PEFT method, selecting contributor tests, or checking PEFT contribution/style/backward-compatibility requirements.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to edit the PEFT repository or prepare a contribution. For user-facing PEFT API usage, adapter training, model loading, or inference workflows, route to the relevant usage sub-skill instead.
Before drafting a PEFT PR or code patch intended for upstream:
If approval is missing or ambiguous for a new feature, new PEFT method, or existing issue, stop and ask the user to obtain maintainer approval before coding for a PR.
references/contribution-guidance.md for policy, PR hygiene, style, and backward-compatibility rules.references/new-method-checklist.md before writing code.references/test-selection.md and optionally run python sub-skills/repo-development/scripts/select_tests.py --changed-path ... --method ... from a copied skill tree.references/troubleshooting.md.make quality to check and make style to auto-fix style; PEFT expects ruff ~=0.15.12.>=3.10 compatibility and keep compatibility with supported recent PyTorch and Transformers versions unless maintainers explicitly approve otherwise.pip install -e ".[test]"
make quality
make style
pytest tests/test_custom_models.py -k ia3 -v
pytest tests/ -k "lora and not adalora and not randlora" -v
For save/load-sensitive changes, include regression coverage with --regression where relevant. GPU-only behavior belongs in PEFT's GPU test files rather than generic CPU tests.