Views
No views yet
python from unsloth import FastLanguageModel import torch
model, tokenizer = FastLanguageModel.from_pretrained( model_name="lperng/medical-model", load_in_4bit=True, # Optional: Use 4-bit quantization )
prompt = "你的医学问题?" # Replace with your medical question
inputs = tokenizer([prompt], return_tensors="pt").to("cuda") outputs = model.generate(input_ids=inputs.input_ids, attention_mask=inputs.attention_mask) response = tokenizer.batch_decode(outputs)[0]
print(response)FreedomIntelligence/medical-o1-reasoning-SFT dataset. The dataset contains a collection of medical questions and corresponding answers. Evaluation metrics and results will be added in future updates.@misc{medical-model, author = {lperng}, title = {medical-model}, year = {2023}, publisher = {Hugging Face}, howpublished = {\url{[redacted link], }