中医正理 - 中医知识微调版Qwen模型

这是一个针对中医知识领域进行微调的Qwen2.5-3B-Instruct模型。

模型详情

此模型基于Qwen2.5-3B-Instruct,通过使用LoRA方法在中医领域数据集上进行了微调。 模型具有解释中医理论、诊断方法和治疗建议的能力,使用通俗易懂的语言表达专业知识。

使用方法

from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("yyxa9/zhongyizhengliu2", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("yyxa9/zhongyizhengliu2")

# 生成文本
inputs = tokenizer("请介绍一下中医的基本理论", return_tensors="pt")
outputs = model.generate(**inputs, max_length=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Downloads last month
8
Safetensors
Model size
3.09B params
Tensor type
BF16
·
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no library tag.