llama-3.2-3b-clinical-cac-lora
Clinical Llama 3.2 Fine-Tune
1 min read
This model is a specialized fine-tune of the Llama-3.2-3B-Instruct language model, adapted for working with clinical and medical texts. It outputs answers to medical questions while taking specific terminology and context into account. Built on a compact three-billion architecture, the model delivers fast inference while maintaining solid accuracy in a narrow specialized domain. The project will be useful for researchers, medical chatbot developers, and professionals exploring AI applications in healthcare.
Key features
- Training via SFT (supervised fine-tuning on labeled data)
- Specialization in clinical and medical topics
- Built using the TRL (Transformer Reinforcement Learning) library
- Compact base size (3 billion parameters) for easy deployment
What you can do
- Integrate the model into a local medical assistant to support clinical practice
- Test response quality on specialized clinical cases and prompts
- Use it as a foundation for further fine-tuning on custom medical datasets
Example
from transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
generator = pipeline("text-generation", model="medievalo/llama-3.2-3b-clinical-cac-lora", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])Read more
DetailsTraining method: SFT (Supervised Fine-Tuning)
Libraries: Transformers 4.57.6, TRL 0.16.1
Framework: PyTorch 2.14.1+cu130










Comments