技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
finetuning【数据与研究】Guides LoRA instruction fine-tuning for Huatuo-Llama-Med-Chinese style medical QA data using PEFT and Transformers.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to plan, validate, or construct a safe dry-run command for LoRA instruction fine-tuning on Chinese medical QA data with the repository-compatible PEFT/Transformers training interface.
instruction, input, and output.scripts/build_finetune_command.py.Prompter behavior, or data conversion details: use prompt-data-formats.checkpoint-export.inference.references/workflows.md.references/api-reference.md.references/troubleshooting.md.scripts/build_finetune_command.py.instruction, input, and output; input may be an empty string but should still be present for this training implementation.med_template unless a different compatible template is intentional.micro_batch_size, lower total batch_size, and consider lowering cutoff_len before attempting training.resume_from_checkpoint at either a Trainer checkpoint directory or a LoRA adapter directory whose LoRA configuration matches the new run.Full fine-tuning is expensive and depends on external base-model weights, GPU memory, a compatible Torch/CUDA/bitsandbytes stack, and medical-data quality. The bundled script only builds and optionally validates a command; it does not import model libraries, download weights, or launch training.