Downloads · 30 days
0
abnuel/fine-tuned-openbiollm-medical-coding
fine-tuned-openbiollm-medical-coding is a text generation model from abnuel. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.
Fine-tuned version of aaditya/Llama3-OpenBioLLM-8B for automated ICD medical coding from clinical text. This model extends OpenBioLLM's strong biomedical language understanding with task-specific fine-tuning on ICD-10…
Downloads · 30 days
0
Access
Public
Updated Apr 10, 2026
Repo size
345 MB
Likes
0
Public
Click a slice to open those files.
.safetensors54.6 MB · 67%
From the Hugging Face model README
Fine-tuned version of aaditya/Llama3-OpenBioLLM-8B for automated ICD medical coding from clinical text. This model extends OpenBioLLM's strong biomedical language understanding with task-specific fine-tuning on ICD-10 code assignment.
This model was developed as part of a research effort to evaluate multiple biomedical LLMs on the medical coding task. OpenBioLLM-8B provides a strong foundation in biomedical language understanding (pre-trained on PubMed, clinical notes, and biomedical corpora), and this fine-tune further specializes it for structured ICD-10 output from unstructured clinical text.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "abnuel/fine-tuned-openbiollm-medical-coding"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
prompt = """You are a clinical coding assistant. Given the following clinical note,
provide the most appropriate ICD-10 code(s).
Clinical note: Patient diagnosed with essential hypertension and stage 2 chronic kidney disease.
ICD-10 Code(s):"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=64, temperature=0.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
@misc{adegunlehin2025openbiollm-coding,
author = {Abayomi Adegunlehin},
title = {Fine-tuned OpenBioLLM-8B for ICD-10 Medical Coding},
year = {2025},
url = {https://huggingface.co/abnuel/fine-tuned-openbiollm-medical-coding}
}