Request it for the seed queue.
Getting the source files requires Hugging Face approval.model.safetensors 3.8 GiBtraining_args.bin 5.1 KiBIgea is a biomedical Small Language Model (SLM) for Italian, continually pretrained from Minerva with NMT translated Pubmed Abstracts
🔓: Access to the model is only granted after explicitly acknowledging that you have read the 'Bias, Risk, and Limitation' section of this model card.
This is ongoing research. Do not use it for any medical-related tasks.
Preprint: Igea: a Decoder-Only Language Model for Biomedical Text Generation in Italian.
import transformers
import torch
model_id = "bmi-labmedinfo/Igea-1B-v0.1"
# Initialize the pipeline.
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16},
device_map="auto",
)
# Input text for the model.
input_text = "Il fegato è "
# Compute the outputs.
output = pipeline(
input_text,
max_new_tokens=128,
)
# Output:
# [{'generated_text': "Il fegato è una ghiandola fondamentale per il metabolismo umano, la più [...]"}]
This section identifies foreseeable harms and misunderstandings.
This is a continued pretraining of a foundation model, not subject to alignment. Model may:
We are aware of the biases and potential problematic/toxic content that current pretrained large language models exhibit: more specifically, as probabilistic models of (Italian and English) languages, they reflect and amplify the biases of their training data.
The biomedical setting poses additional threats, including:
This model is therefore not intended to be used as it is for any medical-related task.
It achieves the following results on the evaluation set:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.8964 | 0.0989 | 5000 | 1.8924 | 0.5713 |
| 1.8265 | 0.1978 | 10000 | 1.8264 | 0.5809 |
| 1.7883 | 0.2966 | 15000 | 1.7892 | 0.5866 |
| 1.7652 | 0.3955 | 20000 | 1.7626 | 0.5905 |
| 1.7415 | 0.4944 | 25000 | 1.7418 | 0.5939 |
| 1.7259 | 0.5933 | 30000 | 1.7253 | 0.5965 |
| 1.7106 | 0.6922 | 35000 | 1.7126 | 0.5985 |
| 1.703 | 0.7910 | 40000 | 1.7037 | 0.6000 |
| 1.6969 | 0.8899 | 45000 | 1.6989 | 0.6009 |
| 1.6963 | 0.9888 | 50000 | 1.6976 | 0.6011 |
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Evaluation results in terms of normalized accuracy for the Igea models on biomedical and general datasets, translated in Italian. The best performing checkpoint of Minerva has been included for comparison.
| Dataset | Domain | Minerva 3B (best base) | Igea 350M | Igea 1B | Igea 3B |
|---|---|---|---|---|---|
| MedMCQA-ITA (0-shot) | Biomed | 0.293 | 0.250 | 0.307 | 0.313 |
| Hellaswag-IT (0-shot) | General | 0.519 | 0.303 | 0.357 | 0.491 |
| ARC-IT (0-shot) | General | 0.305 | 0.244 | 0.270 | 0.287 |
| MMLU-IT (5-shot) | General | 0.261 | 0.254 | 0.255 | 0.252 |
Developed by Tommaso M. Buonocore and Simone Rancati.
Thanks to Michele Montebovi for his precious advices.