Token导航 LogoToken导航

Agent Skill · AI 工具

fine-tuning-assistant(微调助手)

fine-tuning-assistant 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

fine-tuning-assistant 是AI 工具类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在AI 工具类的 2,536 个 Skill 里排第 367。

总安装 6,432周安装 221GitHub Stars 公开资料未说明下载 2,246核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fine-tuning-assistant(微调助手)
来源仓库:https://github.com/eddiebe147/claude-settings
仓库路径:skills/fine-tuning-assistant
安装命令:
npx skills add https://github.com/eddiebe147/claude-settings --skill 'Fine-Tuning Assistant'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/eddiebe147/claude-settings --skill 'Fine-Tuning Assistant'

这个 Skill 是做什么的

AI 工具类 Skill 用来扩展助手本身的能力,例如接模型、接检索、接外部服务。

用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。适合围绕代码变更、仓库状态进行整理和同步。通过 npx skills add 命令从指定 GitHub 仓库安装并使用。安装前需确认权限范围、维护状态及是否触发联网或文件操作。

fine-tuning-assistant 属于AI 工具类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/fine-tuning-assistant

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/eddiebe147/claude-settings --skill 'Fine-Tunin…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

fine-tuning-assistant 怎么安装?

在终端执行 npx skills add https://github.com/eddiebe147/claude-settings --skill 'Fine-Tuning Assistan…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

fine-tuning-assistant 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

fine-tuning-assistant 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

fine-tuning-assistant 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

fine-tuning-assistant 用的人多吗?

公开数据是累计安装 6,432 次,近一周安装 221 次,下载 2,246 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

fine-tuning-assistant 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理AI 工具类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

AI 工具类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
executing-plans

执行计划 · Codex、Claude

1,515,336173,110只读MIT通过
verification-before-completion

完成前的验证 · Codex、Claude

1,319,472173,121权限未标注MIT通过
subagent-driven-development

子 Agent 驱动开发 · Codex、Claude

1,312,416173,138只读MIT通过
copy-editing

复制编辑 · Codex、Claude

1,209,57625,632只读MIT通过
paywall-upgrade-cro

付费专区升级 cro · Codex、Claude

1,030,17625,617只读MIT通过
fine-tuning-assistant

微调助手 · 本页

6,432—需要联网MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Fine-Tuning Assistant

The Fine-Tuning Assistant skill guides you through the process of adapting pre-trained models to your specific use case. Fine-tuning can dramatically improve model performance on specialized tasks, teach models your preferred style, and add capabilities that prompting alone cannot achieve.

This skill covers when to fine-tune versus prompt engineer, preparing training data, selecting base models, configuring training parameters, evaluating results, and deploying fine-tuned models. It applies modern techniques including LoRA, QLoRA, and instruction tuning to make fine-tuning practical and cost-effective.

Whether you are fine-tuning GPT models via API, running local training with open-source models, or using platforms like Hugging Face, this skill ensures you approach fine-tuning strategically and effectively.

Core Workflows

Workflow 1: Decide Whether to Fine-Tune

  1. Assess the problem:

- Can prompting achieve the goal? - Is the task format or style consistent? - Do you have quality training data? - Is this worth the investment?

  1. Compare approaches: Approach When to Use Investment Better prompts First attempt, variable tasks Low Few-shot examples Consistent format, limited data Low RAG Knowledge-intensive, dynamic data Medium Fine-tuning Consistent style, specialized task High
  2. Evaluate requirements:

- Minimum 100-1000 quality examples - Clear evaluation criteria - Budget for training and hosting

  1. Decision: Fine-tune only if prompting/RAG insufficient

Workflow 2: Prepare Fine-Tuning Dataset

  1. Collect training examples:

- Representative of target use case - High quality (no errors in outputs) - Diverse coverage of task variations

  1. Format for training: {"messages": [{"role": "system", "content": "You are a helpful assistant..."}, {"role": "user", "content": "User input here"}, {"role": "assistant", "content": "Ideal response here"}]}
  2. Quality assurance:

- Review sample of examples manually - Check for consistency in style/format - Remove duplicates and low-quality entries

  1. Split train/validation/test sets
  2. Validate dataset format

Workflow 3: Execute Fine-Tuning

  1. Select base model:

- Consider size vs capability tradeoff - Match model to task complexity - Check licensing for your use case

  1. Configure training: # OpenAI fine-tuning training_config = {"model": "gpt-4o-mini-2024-07-18", "training_file": "file-xxx", "hyperparameters": {"n_epochs": 3, "batch_size": "auto", "learning_rate_multiplier": "auto"}} # LoRA fine-tuning (local) lora_config = {"r": 16, # Rank "lora_alpha": 32, "lora_dropout": 0.05, "target_modules": ["q_proj", "v_proj"]}
  2. Monitor training:

- Watch loss curves - Check for overfitting - Validate on held-out set

  1. Evaluate results:

- Compare to baseline model - Test on diverse inputs - Check for regressions

Quick Reference

ActionCommand/Trigger
Decide approach"Should I fine-tune for [task]"
Prepare data"Format data for fine-tuning"
Choose model"Which model to fine-tune for [task]"
Configure training"Fine-tuning parameters for [goal]"
Evaluate results"Evaluate fine-tuned model"
Debug training"Fine-tuning loss not decreasing"

Best Practices

  • Start with Prompting: Fine-tuning is expensive; exhaust cheaper options first

- Can better prompts achieve 80% of the goal? - Try few-shot examples in the prompt - Consider RAG for knowledge tasks

  • Quality Over Quantity: 100 excellent examples beat 10,000 mediocre ones

- Each example should be a gold standard - Better to have humans verify examples - Remove anything you wouldn't want the model to learn

  • Match Format to Use Case: Training examples should mirror real usage

- Same prompt structure as production - Realistic input variations - Cover edge cases explicitly

  • Don't Over-Train: More epochs isn't always better

- Watch validation loss for overfitting - Start with 1-3 epochs - Early stopping when validation plateaus

  • Evaluate Properly: Training loss isn't the goal

- Use held-out test set - Compare to baseline on same tests - Check for capability regressions - Test on edge cases explicitly

  • Version Everything: Fine-tuning is iterative

- Version your training data - Track experiment configurations - Document what worked and what didn't

Advanced Techniques

LoRA (Low-Rank Adaptation)

Efficient fine-tuning for large models:

from peft import LoraConfig, get_peft_model

lora_config = LoraConfig(
    r=16,                           # Rank of update matrices
    lora_alpha=32,                  # Scaling factor
    target_modules=["q_proj", "v_proj", "k_proj", "o_proj"],
    lora_dropout=0.05,
    bias="none",
    task_type="CAUSAL_LM"
)

# Apply LoRA to base model
model = get_peft_model(base_model, lora_config)

# Only ~0.1% of parameters are trainable
trainable_params = sum(p.numel() for p in model.parameters() if p.requires_grad)

QLoRA (Quantized LoRA)

Fine-tune large models on consumer hardware:

from transformers import BitsAndBytesConfig

bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16,
    bnb_4bit_use_double_quant=True
)

# Load model in 4-bit
model = AutoModelForCausalLM.from_pretrained(
    "meta-llama/Llama-2-7b-hf",
    quantization_config=bnb_config
)

# Apply LoRA on top
model = get_peft_model(model, lora_config)

Instruction Tuning Dataset Creation

Convert raw data to instruction format:

def create_instruction_example(raw_data):
    return {
        "messages": [
            {
                "role": "system",
                "content": "You are a customer service agent for TechCorp..."
            },
            {
                "role": "user",
                "content": f"Customer inquiry: {raw_data['inquiry']}"
            },
            {
                "role": "assistant",
                "content": raw_data['ideal_response']
            }
        ]
    }

# Apply to dataset
instruction_dataset = [create_instruction_example(d) for d in raw_dataset]

Evaluation Framework

Comprehensive assessment of fine-tuned models:

def evaluate_fine_tuned_model(model, test_set, baseline_model=None):
    results = {
        "task_accuracy": [],
        "format_compliance": [],
        "style_match": [],
        "regression_check": []
    }

    for example in test_set:
        output = model.generate(example.input)

        # Task-specific accuracy
        results["task_accuracy"].append(
            check_correctness(output, example.expected)
        )

        # Format compliance
        results["format_compliance"].append(
            matches_expected_format(output)
        )

        # Style matching (for style transfer tasks)
        results["style_match"].append(
            style_similarity(output, example.expected)
        )

        # Regression on general capabilities
        if baseline_model:
            results["regression_check"].append(
                compare_general_capability(model, baseline_model, example)
            )

    return {k: np.mean(v) for k, v in results.items()}

Curriculum Learning

Order training data by difficulty:

def create_curriculum(dataset):
    # Score examples by complexity
    scored = [(score_complexity(ex), ex) for ex in dataset]
    scored.sort(key=lambda x: x[0])

    # Create epochs with increasing difficulty
    n = len(scored)
    curriculum = {
        "epoch_1": [ex for _, ex in scored[:n//3]],           # Easy
        "epoch_2": [ex for _, ex in scored[:2*n//3]],         # Easy + Medium
        "epoch_3": [ex for _, ex in scored],                   # All
    }
    return curriculum

Common Pitfalls to Avoid

  • Fine-tuning when better prompting would suffice
  • Using low-quality or inconsistent training examples
  • Not holding out a proper test set
  • Training for too many epochs (overfitting)
  • Ignoring capability regressions from fine-tuning
  • Not versioning training data and configurations
  • Expecting fine-tuning to add factual knowledge (use RAG instead)
  • Fine-tuning on data that doesn't match production use

平台分布

Claude Code

25.73%
按下载量换算578

OpenCode

22.42%
按下载量换算504

Gemini CLI

16.99%
按下载量换算382

Antigravity

13.07%
按下载量换算294

windsurf

7.63%
按下载量换算171

Cursor

3.42%
按下载量换算77

安全审计

Gen Agent Trust Hub

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills