Downloads · 30 days
0
AnukeerthiReddy/llama-3.1-8b-clinical-fhir-lora
llama-3.1-8b-clinical-fhir-lora is a machine learning model from AnukeerthiReddy. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.1.
Fine-tuned adapter converting unstructured clinical notes into structured FHIR R4 JSON.
Downloads · 30 days
0
Access
Public
Updated Apr 7, 2026
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
Fine-tuned adapter converting unstructured clinical notes into structured FHIR R4 JSON.
unsloth/meta-llama-3.1-8b-bnb-4bit| Metric | Value |
|---|---|
| Train loss (epoch 1) | 2.398 |
| Train loss (epoch 3) | 1.394 |
| Eval loss | 1.389 |
| Peak VRAM | 8.3 GB |
from unsloth import FastLanguageModel
from peft import PeftModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="unsloth/meta-llama-3.1-8b-bnb-4bit",
max_seq_length=2048,
load_in_4bit=True,
)
model = PeftModel.from_pretrained(model, "AnukeerthiReddy/llama-3.1-8b-clinical-fhir-lora")
note = "Patient: 58M with chest pain radiating to left arm x 2h. HTN, T2DM. BP 158/92."
inputs = tokenizer(note, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
ai-galileo/clinical-notes-to-fhir