用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-prompt-engineering --skill fine-tuning命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | fine-tuning |
| description | LLM fine-tuning and prompt-tuning techniques |
| sasmp_version | 1.3.0 |
| bonded_agent | 05-prompt-optimization-agent |
| bond_type | PRIMARY_BOND |
Bonded to: prompt-optimization-agent
Skill("custom-plugin-prompt-engineering:fine-tuning")
parameters:
tuning_method:
type: enum
values: [full, lora, qlora, prompt_tuning, prefix_tuning]
default: lora
dataset_size:
type: enum
values: [small, medium, large]
description: "<1k, 1k-10k, >10k examples"
compute_budget:
type: enum
values: [low, medium, high]
default: medium
| Method | Parameters | Compute | Quality | Best For |
|---|---|---|---|---|
| Full Fine-tune | All | Very High | Highest | Maximum customization |
| LoRA | ~0.1% | Low | High | Resource-constrained |
| QLoRA | ~0.1% | Very Low | Good | Consumer GPUs |
| Prompt Tuning | <0.01% | Minimal | Good | Simple tasks |
| Prefix Tuning | ~0.1% | Low | Good | Generation tasks |
formats:
instruction:
template: |
### Instruction
{instruction}
### Response
{response}
chat:
template: |
<|user|>
{user_message}
<|assistant|>
{assistant_response}
completion:
template: "{input}{output}"
quality_checklist:
- [ ] No duplicate examples
- [ ] Consistent formatting
- [ ] Diverse examples
- [ ] Balanced categories
- [ ] High-quality outputs
- [ ] No harmful content
training_config:
hyperparameters:
learning_rate: 2e-5
batch_size: 8
epochs: 3
warmup_ratio: 0.1
lora_config:
r: 16
alpha: 32
dropout: 0.05
target_modules: ["q_proj", "v_proj"]
evaluation:
eval_steps: 100
save_steps: 500
metric: loss
| Metric | Purpose | Target |
|---|---|---|
| Loss | Training progress | Decreasing |
| Accuracy | Task performance | >90% |
| Perplexity | Model confidence | <10 |
| Human eval | Quality assessment | Preferred >80% |
| Issue | Cause | Solution |
|---|---|---|
| Overfitting | Small dataset | Add regularization |
| Underfitting | Low epochs | Increase training |
| Catastrophic forgetting | Aggressive tuning | Lower learning rate |
| Poor generalization | Data bias | Diversify dataset |
See: Hugging Face PEFT, OpenAI Fine-tuning Guide