技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
stanford-alpaca【数据与研究】Routes Stanford Alpaca instruction-data, Self-Instruct generation, supervised fine-tuning, and LLaMA weight-diff recovery workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this root skill to route research tasks involving Stanford Alpaca's released instruction-following data, its historical Self-Instruct-style generator, Hugging Face supervised fine-tuning flow, or Alpaca/LLaMA weight-diff recovery. It is a self-contained operational guide: use its bundled references and helpers rather than reopening a source checkout.
| User need or signal | Read or run |
|---|---|
| Alpaca JSON/JSONL schema, prompt text, label masking, datasheet/model-card questions, data validation | dataset-and-prompts |
Seed tasks, prompt rendering, saved completion parsing, OpenAI completion API, regen.json, filtering, ROUGE-L deduplication | instruction-generation |
Trainer, torchrun, FSDP, DeepSpeed, LLaMA/OPT SFT, OOM, batch-size planning, tokenizer/model preparation | fine-tuning |
path_raw, path_diff, path_tuned, recovering or creating model weight differences, checksum, recovery inference | weight-diff-recovery |
dataset-and-prompts first. It accepts JSON arrays or JSONL, checks the instruction/input/output contract, and can show prompt previews.This is a script-oriented project rather than an installable Python distribution. To use every bundled helper, install a Python environment with PyTorch, Transformers, Fire, NumPy, rouge-score, sentencepiece, tokenizers, and an OpenAI client compatible with openai.Completion.create. A historically compatible baseline is transformers==4.28.1, tokenizers==0.13.3, openai==0.27.8, and numpy<2 with older PyTorch builds.
Run the bundled cross-skill probe after installation:
python scripts/check_stanford_alpaca_env.py
--require-cuda only when a CUDA workflow is actually required; CPU imports do not validate multi-GPU FSDP, DeepSpeed, or large-checkpoint recovery.instruction-generation -> dataset-and-prompts -> fine-tuning.dataset-and-prompts -> fine-tuning.weight-diff-recovery -> fine-tuning only if additional supervised training is intended.