Downloads · 30 days
8
6% of all-time downloads
amalia-llm/AMALIA-ExtraiConheCiencia-PT
AMALIA-ExtraiConheCiencia-PT is a machine learning model from amalia-llm. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
AMALIA-ExtraiConheCiencia-PT is a fine-tuned version of the AMALIA 9B European Portuguese large language model, adapted for Scientific Information Extraction (SciIE) in Portuguese.
Downloads · 30 days
8
6% of all-time downloads
All-time downloads
135
Public
Parameters
9.2B
36.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors18.3 GB · 100%
From the Hugging Face model README
AMALIA-ExtraiConheCiencia-PT is a fine-tuned version of the AMALIA 9B European Portuguese large language model, adapted for Scientific Information Extraction (SciIE) in Portuguese.
The model was fine-tuned on SCIERC-PT, a European Portuguese translation and curation of the SCIERC dataset. It is designed to perform joint extraction of scientific entities and relations from articles abstracts, producing structured outputs suitable for Named Entity Recognition (NER), Relation Extraction (RE), and downstream Scientific Knowledge Graph construction.
This model is intended for:
The model expects a European Portuguese scientific abstract and task instructions specifying the entity and relation schema.
Example input:
Extrai entidades e relações do texto científico usando o esquema fornecido.
Tipos de entidade: Tarefa, Método, Métrica, Material, Outros Termos Científicos, Genérico.
Tipos de relação: Usado-para, Característica-de, Hipónimo-de, Parte-de, Avaliado-para, Comparado-com, Conjunção.
Texto:
{text}
The model was fine-tuned to generate structured outputs containing scientific entities, entity types, and relations.
The expected output corresponds to structured triples.
Example output:
[
{
"sujeito": "<subject entity text>",
"tipo_sujeito": "<subject entity type>",
"relação": "<relation type>",
"objeto": "<object entity text>",
"tipo_objeto": "<object entity type>"
}
...
]
The model was fine-tuned on SCIERC-PT, a European Portuguese version of SCIERC.
SCIERC-PT contains computer science abstracts annotated with scientific entities and semantic relations.
| English | Portuguese |
|---|---|
| Task | Tarefa |
| Method | Método |
| Evaluation Metric | Métrica de Avaliação |
| Material | Material |
| Other Scientific Term | Outros Termos Científicos |
| Generic | Genérico |
| English | Portuguese |
|---|---|
| Used-for | Usado-para |
| Feature-of | Característica-de |
| Hyponym-of | Hipónimo-de |
| Part-of | Parte-de |
| Compare | Comparado-com |
| Conjunction | Conjunção |
| Evaluate-for | Avaliado-para |
The model was adapted using QLoRA for parameter-efficient supervised fine-tuning. Fine-tuning was performed using the joint extraction formulation, where the model receives a Portuguese scientific abstract and generates structured triples containing entities, entity types, and relations.
| Parameter | Value |
|---|---|
| Base model | AMALIA-9B-1225-SFT |
| Fine-tuning method | QLoRA |
| Quantization (training only) | 4-bit NF4 |
| Double quantization | Yes |
| Compute dtype | bf16 |
| Training precision | bf16 |
| Maximum sequence length | 2048 |
| Training batch size | 1 |
| Gradient accumulation steps | 8 |
| Effective batch size | 8 |
| Epochs | 5 |
| Learning rate | 2e-4 |
LoRA rank (r) | 8 |
| LoRA alpha | 16 |
| LoRA dropout | 0.05 |
| Target modules | all linear layers |
| Bias | none |
| Task type | Causal language modeling |
| Evaluation strategy | Per epoch |
| Save strategy | Per epoch |
| Best model selection | Lowest validation loss |
| Early stopping patience | 2 epochs |
The model was trained using the training split of SCIERC-PT and validated on the development split. The best checkpoint was selected according to validation loss.
The model was evaluated on the SCIERC-PT test split using F1-score under a strict exact-match evaluation protocol.
In the fine-tuned setting, AMALIA-ExtraiConheCiencia-PT achieved:
| Task | Macro-F1 |
|---|---|
| NER | 0.44 |
| RE | 0.16 |
For more information about the model, the fine-tuning dataset and process, and its use in Portuguese Scientific Information Extraction experiments, see our paper: