技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
training-finetuning【数据与研究】Guide Chinese-LLaMA-Alpaca data validation, CLM pretraining, SFT, LoRA/PEFT parameters, DeepSpeed templates, and checkpoint handling.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a user wants to validate Chinese-LLaMA-Alpaca training data, plan continued CLM pretraining, plan supervised instruction fine-tuning, adapt LoRA/PEFT arguments, or understand checkpoints produced by the bundled training scripts. The commands below assume the current working directory is this sub-skill directory.
Do not launch long-running training unless the user has explicitly approved the model paths, training data, GPU/backend use, output directory policy, and cost/time budget. This repository releases LoRA adapters, not original full LLaMA weights. Chinese LLaMA workflows are base/continuation-oriented; Chinese Alpaca workflows are instruction/chat-oriented. Alpaca tokenizers differ from LLaMA tokenizers.
scripts/validate_training_data.py:
python scripts/validate_training_data.py --mode sft --input templates/instruction_sample.jsonpython scripts/validate_training_data.py --mode pt --input templates/pretrain_sample.txt--max-records N for a quick prefix check.references/data-formats.md for SFT/PT data contracts and references/training-workflows.md for command construction.templates/run_pt.sh, templates/run_sft.sh, and templates/ds_zero2_no_offload.json.references/api-reference.md for dataclasses, option names, LoRA parameters, peft_path, resume_from_checkpoint, force_resize_embeddings, and SavePeftModelCallback outputs.references/troubleshooting.md before changing data caches, tokenizers, DeepSpeed settings, or output directories.scripts/run_clm_pt_with_peft.py: copied CLM pretraining / continued-pretraining PEFT script.scripts/run_clm_sft_with_peft.py: copied supervised instruction fine-tuning PEFT script.scripts/build_dataset.py: copied SFT prompt/tokenization and collator helper used by the SFT script.scripts/validate_training_data.py: safe schema/text validator with --mode {sft,pt}, --input, and optional --max-records.templates/instruction_sample.json and templates/pretrain_sample.txt: tiny fixtures only; they are not training corpora.