Downloads · 30 days
16
33% of all-time downloads
chenhaodev/qwen3-14b-internal-med-lora
qwen3-14b-internal-med-lora is a text generation model from chenhaodev. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
基于《西氏内科学精要(上下卷)》教材内容,用 SFT 微调 Qwen3-14B 得到的内科医学知识问答 LoRA 适配器。
Downloads · 30 days
16
33% of all-time downloads
All-time downloads
48
Public
Repo size
268 MB
Likes
0
Public
Click a slice to open those files.
.safetensors257 MB · 96%
From the Hugging Face model README
基于《西氏内科学精要(上下卷)》教材内容,用 SFT 微调 Qwen3-14B 得到的内科医学知识问答 LoRA 适配器。
Qwen/Qwen3-14B本模型为医学教育与学习工具,其输出不能替代执业医师的专业诊断、治疗建议或当面诊疗。请勿用于急诊、处方或任何临床决策;如有健康问题请及时就医。作者不对因使用本模型造成的任何后果负责。
模型的 LoRA 权重、训练脚本与模型卡 均基于教材内容提炼,可自由使用。不附带也不分发教材原文或直接衍生自原文的训练数据,训练数据尊重原书版权。
from unsloth import FastLanguageModel
import torch
model, tokenizer = FastLanguageModel.from_pretrained(
"Qwen/Qwen3-14B", max_seq_length=1024, dtype=None, load_in_4bit=True)
model.load_adapter("chenhaodev/qwen3-14b-internal-med-lora")
text = tokenizer.apply_chat_template(
[{"role": "user", "content": "什么是急性心肌梗死?谈谈其诊断方法。"}],
tokenize=False, add_generation_prompt=True, enable_thinking=False)
enc = tokenizer(text, return_tensors="pt").to("cuda")
out = model.generate(input_ids=enc.input_ids, attention_mask=enc.attention_mask,
max_new_tokens=200, temperature=0.7, top_p=0.8, top_k=20)
print(tokenizer.decode(out[0][enc.input_ids.shape[1]:], skip_special_tokens=True))
chenhaodev/qwen3-14b-internal-med-gguf(Q4_K_M / Q5_K_M / Q8_0)scripts/)无留出集评测,训练 loss 不代表效果。