技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
ptuning【数据与研究】Guides ChatGLM2-6B P-Tuning v2, chat fine-tuning data, prediction commands, prefix/full checkpoint loading, and optional DeepSpeed fine-tuning.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this route when the task involves P-Tuning v2, chat fine-tuning data,
ADGEN-style data, bundled P-Tuning runner arguments, prefix checkpoint loading,
prediction, or optional full-parameter DeepSpeed fine-tuning. Use
chat-and-demos for ordinary base-model chat and
api-serving when a prepared model should be served.
torchrun:
python sub-skills/ptuning/scripts/validate_ptuning_data.py --file train.json --format chat --history-column history.python sub-skills/ptuning/scripts/build_ptuning_command.py train --train-file train.json --validation-file dev.json --output-dir output/run.pre_seq_len, quantization, GPU memory, and output paths.Read data-formats.md for ADGEN/chat schemas,
command-templates.md for launch patterns,
checkpoint-workflows.md for prefix vs
full checkpoints, and troubleshooting.md for
schema, OOM, DeepSpeed, quantization, and Gradio issues.
This sub-skill distills the repository's P-Tuning scripts into bundled
references, validators, command builders, and a bundled runner under
scripts/ptuning_runner/. It does not train or evaluate as a smoke test, does
not download ADGEN/model weights, and does not make DeepSpeed a required
dependency. Full training, prediction, and web demo launch are GPU/model/data
dependent and should be treated as deliberate runtime actions, not verification
shortcuts.