Downloads · 30 days
44
18% of all-time downloads
tweijie/tinyllama-medical-merged
tinyllama-medical-merged is a text generation model from tweijie. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A QLoRA fine-tuned variant of TinyLlama-1.1B-intermediate-step-1431k-3T, trained on medical question-answering data. The LoRA adapter has been merged into the base weights, so this repo is a standalone model — no sepa…
Downloads · 30 days
44
18% of all-time downloads
All-time downloads
245
Public
Parameters
1.1B
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 100%
How the weights are stored.
I8969M · 88%
From the Hugging Face model README
A QLoRA fine-tuned variant of TinyLlama-1.1B-intermediate-step-1431k-3T, trained on medical question-answering data. The LoRA adapter has been merged into the base weights, so this repo is a standalone model — no separate adapter loading required.
This model was trained as part of a GenAI training lab to demonstrate the fine-tuning → merge → deploy workflow. It is not validated for real clinical or medical use and should not be used to inform actual medical decisions. Treat its outputs as educational examples of what a small fine-tuned LLM can produce, not medical advice.
TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3Tpeft + trl.SFTTrainerr=8, lora_alpha=16BI55/MedText — medical case/question-answer pairsPeftModel.merge_and_unload(), then saved as a full standalone modelfrom transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
repo_id = "tweijie/tinyllama-medical-merged"
model = AutoModelForCausalLM.from_pretrained(repo_id)
tokenizer = AutoTokenizer.from_pretrained(repo_id)
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, max_length=200)
prompt = "<s>[INST] A patient presents with restless leg sensations at night. What could be the cause? [/INST]"
print(pipe(prompt)[0]["generated_text"])
Limitations
1.1B parameters — small model, prone to hallucination and factual errors, especially on medical content.
Fine-tuned on a single narrow dataset (400 training steps); not broadly evaluated.
No safety/alignment tuning beyond the base model's own training.