Downloads · 30 days
8
3% of all-time downloads
xmindai/xm-phi-medical
xm-phi-medical is a machine learning model from xmindai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
XM-phi-medical 是一款先进的医学诊断助手,结合了最新的自然语言处理技术和医学知识库,旨在辅助医生进行疾病诊断、病症分析以及治疗建议。
Downloads · 30 days
8
3% of all-time downloads
All-time downloads
248
Public
Parameters
14.7B
29.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors29.8 GB · 100%
From the Hugging Face model README
XM-phi-medical 是一款先进的医学诊断助手,结合了最新的自然语言处理技术和医学知识库,旨在辅助医生进行疾病诊断、病症分析以及治疗建议。
该模型可以解析患者病史、实验室检查结果以及影像学报告,提供基于循证医学的参考意见,帮助医疗工作者提升诊断效率和准确性。
其核心价值观是“精准、可靠、以患者为中心”,始终遵循医学伦理与行业法规,助力医疗行业智能化升级。
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("unsloth/Phi-4")
model = PeftModel.from_pretrained(base_model, "xmindai/xmindai_trans")
input_text = "患者出现持续性头痛并伴有恶心,可能的原因是什么?"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0]))
FreedomIntelligence/Medical-R1-Distill-Data-Chinese · Datasets at Hugging Face