Downloads · 30 days
0
yqnis/llama3-8b-quaero-lora
llama3-8b-quaero-lora is a machine learning model from yqnis. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This is a LoRA adapter version of unsloth/Meta-Llama-3.1-8B-Instruct, fine-tuned on the Quaero French medical dataset using a generative approach to Named Entity Recognition (NER).
Downloads · 30 days
0
Access
Public
Updated Apr 8, 2025
Repo size
353 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
This is a LoRA adapter version of unsloth/Meta-Llama-3.1-8B-Instruct, fine-tuned on the Quaero French medical dataset using a generative approach to Named Entity Recognition (NER).
The model was trained to extract entities from French biomedical sentences (medlines) using a structured, prompt-based format.
| Tag | Description |
|---|---|
DISO | Diseases or health-related conditions |
ANAT | Anatomical parts (organs, tissues, body regions, etc.) |
PROC | Medical or surgical procedures |
DEVI | Medical devices or instruments |
CHEM | Chemical substances or medications |
LIVB | Living beings (e.g. humans, animals, bacteria, viruses) |
GEOG | Geographical locations (e.g. countries, regions) |
OBJC | Physical objects not covered by other categories |
PHEN | Biological processes (e.g. inflammation, mutation) |
PHYS | Physiological functions (e.g. respiration, vision) |
I use <> as a separator and the output format is :
TAG_1 entity_1 <> TAG_2 entity_2 <> ... <> TAG_n entity_n
The original dataset is Quaero French Medical Corpus and I converted it to a JSON format for generative instruction-style training.
{
"input": "Etude de l'efficacité et de la tolérance de la prazosine à libération prolongée chez des patients hypertendus et diabétiques non insulinodépendants.",
"output": "DISO tolérance <> CHEM prazosine <> LIVB patients <> DISO hypertendus <> DISO diabétiques non insulinodépendants"
}
The QUAERO French Medical corpus features overlapping entity spans, including nested structures, for instance :
{
"input": "Cancer du pancréas",
"output": "DISO Cancer <> DISO Cancer du pancréas <> ANAT pancréas"
}
Evaluation was performed on the test split by comparing the predicted entity set against the ground truth annotations using exact (type, entity) matching.
| Metric | Score |
|---|---|
| Precision | 0.6827 |
| Recall | 0.7121 |
| F1 Score | 0.6971 |
This model is also available in the following formats:
16-bit
→ yqnis/llama3-8b-quaero
GGUF Q8_0
→ yqnis/llama3-8b-quaero-gguf
This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.