技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
fine-tuning【数据与研究】Prepare and validate XrayGLM supervised multimodal fine-tuning data and adapter plans without starting expensive training.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a Researcher needs to prepare or gate supervised image/question/answer records for XrayGLM, choose an adapter, or inspect the distributed launcher and its runtime prerequisites. This route is deliberately manual: never start training by default. A training run requires an explicit user confirmation after the data, model checkpoint, adapter, CUDA, NCCL, and multi-GPU/DeepSpeed gates below pass.
data-preparation.inference.See data-contract.md for the accepted records,
training-reference.md for packing and
launcher mechanics, lora-qlora-reference.md
for adapter semantics, and troubleshooting.md
for recovery actions. Run the deterministic checker with
scripts/validate_training_records.py.
use_ptuning, use_lora, or
use_qlora), and the exact launcher overrides. Do not train while these are
being inferred.python skills/disco/xrayglm/sub-skills/fine-tuning/scripts/validate_training_records.py \
data.json --check-images --base-dir /path/to/image/root
A zero exit status is required. A wrapper is only a container; its members
still need exact non-empty string fields img, prompt, and label.img paths are resolved
against the explicit --base-dir, not the caller's current directory.
Confirm the same base directory will be used by the training process.image_length=32 unless the model and
dataset packer are changed together. Keep the image placeholder sequence
intact and verify source/target budgets; use the defaults in the reference
as a starting point, not as a claim of fit for every record.use_lora wins over
use_qlora because the source code uses if ... elif; do not request both.
Combining P-Tuning with LoRA is technically possible in this code, but must
be an explicit experiment and its checkpoint keys must be checked.torch 2.1.2+cu121, SwissArmyTransformer 0.3.7, and
DeepSpeed 0.10.3 where distributed training is intended. CUDA smoke is not
a training proof. QLoRA is blocked if LinearNF4 cannot actually initialize
on CUDA; the supplied bitsandbytes 0.39.0 CPU-only/missing-libcudart
warnings are not readiness.--lora_rank 10\ line
lacks a separating space and can concatenate the next flag. Use the
corrected template in training-reference.md,
review every path and GPU count, and preserve training as opt-in.deepspeed.img, prompt, and
label; every checked image exists and is readable.<img> and are replaced by BLIP2 image embeddings at training time.
Labels mask the complete context, including those placeholders, with -100.