Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

使用MiniMind进行领域定制训练(如医疗问答)的具体流程是什么?

2025-08-28 1.2 K

领域定制需完成以下四阶段操作:

  • Data preparation phase::
    • 收集专业数据并整理为lora_medical.jsonlspecification
    • 建议保持512 token长度以适配模型架构
  • 参数配置阶段::
    • modifications./model/LMConfig.pyhit the nail on the headn_layers等参数
    • alignbatch_size避免显存溢出(3090建议≤8)
  • Model training phase::
    • fulfillmentpython train_lora.py启动领域适应训练
    • increase--use_wandb参数监控损失曲线
  • 部署应用阶段::
    • utilizationserve_openai_api.pyStarting services
    • pass (a bill or inspection etc)curl命令测试医疗问答接口

注意:专业领域训练建议先进行基础预训练(2-3轮)再进行LoRA微调。

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish