Downloads · 30 days
9
24% of all-time downloads
chenhaodev/anatomy-physiology-qwen3-8b-lora
anatomy-physiology-qwen3-8b-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 other.
基于 Qwen/Qwen3-8B 使用 LoRA (QLoRA, r=16, 4-bit) 微调的解剖学与生理学问答模型。由教材《Essentials of Anatomy and Physiology》蒸馏而来。
Downloads · 30 days
9
24% of all-time downloads
All-time downloads
37
Public
Repo size
186 MB
Likes
0
Public
Click a slice to open those files.
.safetensors175 MB · 94%
From the Hugging Face model README
基于 Qwen/Qwen3-8B 使用 LoRA (QLoRA, r=16, 4-bit) 微调的解剖学与生理学问答模型。由教材《Essentials of Anatomy and Physiology》蒸馏而来。
面向中文用户,提供解剖学与生理学的深度问答:
本模型仅用于教育与研究目的,不构成医疗建议、诊断或治疗依据。涉及真实医疗场景请咨询执业医师。
训练数据为从受版权保护的教材文本转化/总结的问答对(由本地 LLM 归纳、非原文直接复制)。为尊重原书版权,本仓库不包含任何原始教材文本或训练数据,仅提供微调后的模型权重与训练脚本。请勿将其用于商业用途。
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
"Qwen/Qwen3-8B", max_seq_length=1024, load_in_4bit=True)
model.load_adapter("chenhaodev/anatomy-physiology-qwen3-8b-lora")
text = tokenizer.apply_chat_template(
[{"role": "user", "content": "心电图(ECG)记录的是什么信号?"}],
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=260, temperature=0.7, top_p=0.8, top_k=20)
print(tokenizer.decode(out[0][enc.input_ids.shape[1]:], skip_special_tokens=True))
本仓库 scripts/ 包含完整的训练与检索脚本(提取、分块、蒸馏、SFT、RAG 构建)。