技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
checkpoint-conversion【数据与研究】Download, validate, convert, classify, and merge LitGPT checkpoints while diagnosing model config, tokenizer, LoRA metadata, and checkpoint layout issues.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task involves checkpoint acquisition, LitGPT/Hugging Face format decisions, model configuration support, tokenizer/config layout, pre-flight validation, or LoRA merge readiness.
litgpt download, including gated Hub access, tokenizer-only downloads, or --model_name overrides for alternative weights.litgpt convert_to_litgpt, a LitGPT checkpoint needs litgpt convert_from_litgpt, or a pretraining checkpoint needs litgpt convert_pretrained_checkpoint.litgpt merge_lora before normal inference/evaluation/export.Config.from_name, Config.from_file, Config.from_checkpoint, or GPT(config) behavior matters for support triage.Route generation/chat with a ready checkpoint to ../inference-chat/SKILL.md, training and LoRA creation to ../training-data/SKILL.md, and evaluation/serving flows to ../evaluation-serving/SKILL.md after using this sub-skill for layout checks.
python scripts/check_checkpoint_layout.py CHECKPOINT_DIR --json.lit_model.pth, convert it with litgpt convert_to_litgpt CHECKPOINT_DIR --model_name MODEL_NAME when the directory name is not a supported LitGPT config name.litgpt validate CHECKPOINT_DIR --dtype float32 before inference, training continuation, or evaluation.python scripts/check_lora_metadata.py CHECKPOINT_DIR --json; then run litgpt merge_lora CHECKPOINT_DIR or add --pretrained_checkpoint_dir BASE_CHECKPOINT_DIR when metadata points to a moved base checkpoint.litgpt convert_pretrained_checkpoint CHECKPOINT_DIR OUTPUT_DIR before downstream loading.litgpt convert_from_litgpt CHECKPOINT_DIR OUTPUT_DIR.references/cli-reference.md lists supported checkpoint subcommands, arguments, and safe sequencing.references/checkpoint-layout.md explains required files and classification signals.references/model-configs.md explains LitGPT model config lookup, support checks, and --model_name overrides.references/troubleshooting.md maps common errors to fixes.scripts/check_checkpoint_layout.py inspects files only; it does not load model weights, download files, or write outputs.scripts/check_lora_metadata.py reads hyperparameters.yaml only; it does not load LoRA/base weights or merge files.HF_TOKEN or a secured environment mechanism.convert_from_litgpt on LoRA or adapter checkpoints directly. Merge LoRA first; adapter checkpoint export is not supported by the converter.