Downloads · 30 days
0
Franc105/loinc-mapper
loinc-mapper is a text generation model from Franc105. 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.
Fine-tuned Llama-3.2-3B model for mapping German medical terms to LOINC codes using Chain-of-Thought reasoning.
Downloads · 30 days
0
Access
Public
Updated Nov 28, 2025
Repo size
406 MB
Likes
0
Public
Click a slice to open those files.
.safetensors389 MB · 96%
From the Hugging Face model README
Fine-tuned Llama-3.2-3B model for mapping German medical terms to LOINC codes using Chain-of-Thought reasoning.
from unsloth import FastLanguageModel
# Load model
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="Franc105/loinc-mapper",
max_seq_length=2048,
dtype=None,
load_in_4bit=True,
)
# Enable inference mode
FastLanguageModel.for_inference(model)
# Format input
messages = [
{"role": "system", "content": "Du bist ein Experte für medizinische Terminologie und LOINC-Mapping."},
{"role": "user", "content": "Begriff: Glukose\nEinheit: mg/dL\nBeschreibung: Blutzucker"}
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
).to("cuda")
# Generate
outputs = model.generate(
input_ids=inputs,
max_new_tokens=512,
temperature=0.1,
top_p=0.9,
do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model is designed for:
If you use this model, please cite:
@misc{loinc-mapper-2024,
title={LOINC Medical Terminology Mapper},
author={IMESO IT GmbH},
year={2024},
publisher={Hugging Face},
howpublished={\url{Franc105/loinc-mapper}}
}
Apache 2.0
For questions or issues, please open an issue on the model repository.