技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
huatuo-llama-med-chinese【数据与研究】Guides Huatuo-Llama-Med-Chinese / BenTsao Chinese medical LLM inference, LoRA fine-tuning, prompt/data formats, and checkpoint export workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill for tasks about the Huatuo-Llama-Med-Chinese / BenTsao repository: Chinese medical instruction-tuned LLM adapters, LoRA inference, literature-dialogue inference, LoRA fine-tuning, prompt templates, medical QA data schemas, CMCOQA benchmark assets, and adapter checkpoint export.
This repository is script-oriented rather than an installable Python package. Treat its public operations as reproducible workflows around Transformers, PEFT, LoRA adapter directories, prompt templates, and JSON/JSONL data assets.
requirements.txt does not include every required backend package.| User task | Read this |
|---|---|
| Build or review a command for medical QA inference, literature single-/multi-turn inference, Gradio serving, LoRA/template selection, or CUDA/model-asset readiness. | sub-skills/inference/SKILL.md |
| Plan LoRA instruction fine-tuning, choose training hyperparameters, validate training data, reason about W&B/DDP/checkpoints, or build a safe fine-tuning command. | sub-skills/finetuning/SKILL.md |
| Validate or edit prompt templates, instruction JSONL files, literature-dialogue JSON, knowledge-tuning text, or CMCOQA benchmark question assets. | sub-skills/prompt-data-formats/SKILL.md |
Merge/export a LoRA adapter to Hugging Face hf_ckpt/ or original LLaMA ckpt/ layout, or diagnose BASE_MODEL/adapter/export issues. | sub-skills/checkpoint-export/SKILL.md |
instruction, input, and output fields.pip install -r requirements.txt is sufficient for every task; Torch is imported by the scripts but is not listed there.Run these checks before escalating to any model download, GPU run, or training job:
python scripts/check_skill_assets.py --skill-root .
python sub-skills/prompt-data-formats/scripts/validate_assets.py --asset-root <asset-root> --max-records 100
python sub-skills/inference/scripts/build_inference_command.py --help
python sub-skills/finetuning/scripts/build_finetune_command.py --help
python sub-skills/checkpoint-export/scripts/build_export_command.py --help
Replace <asset-root> with a directory containing compatible templates/, data/, data-literature/, and/or benchmark/ assets. The validators and command builders are safe by default and use only the Python standard library.