Downloads · 30 days
897
28% of all-time downloads
amalia-llm/AMALIA-VL-DPO
AMALIA-VL-DPO is a image-text-to-text model from amalia-llm. Use it for the image-text-to-text 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.
<div align="center" <img width="400px" src="https://github.com/AMALIA-LLM/amalia-llm.github.io/blob/main/source/static/logo/logo-color-black.png?raw=true"
Downloads · 30 days
897
28% of all-time downloads
All-time downloads
3.2K
Public
Parameters
9.6B
19.2 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors19.2 GB · 100%
From the Hugging Face model README
AMALIA-VL is an open-source vision and language model targeting European Portuguese.
AMALIA-VL is developed by a consortium of Portuguese universities and research centres, including NOVA University Lisbon, Instituto Superior Técnico, the University of Coimbra, the University of Porto, the University of Minho, and the Foundation for Science and Technology (FCT). Development also includes collaborations with the University of Beira Interior, the University of Évora, and the Lisbon School of Engineering (ISEL).
This project is funded by the Government of Portugal's Development and Innovation Programmes, with the goal of creating an effective, sovereign, and transparent LLM, tailored for European Portuguese.
AMALIA was made publicly available on July 1st, 2026.
The model was trained on open-source data only, following a 3-stage training approach:
All training phases were carried out on the MareNostrum5 supercomputer hosted at the Barcelona Supercomputing Center and the DEUCALION supercomputer hosted at Minho Advanced Computing Center.
The model's knowledge cutoff is June 2024.
To train the model, we used a combination of open-source datasets and synthetic data generated by the team to target specific model behaviours and extend the share of European Portuguese data. Additionally, many of the public datasets collected were partially translated to European Portuguese to ensure the model is well-aligned with the target language variant.
We release the complete datasets used for both Visual Instruction Following and Direct Preference Optimization.
For full details on both training datasets and setup, please refer to the technical report.
[!WARNING] We strongly recommend
transformers==4.57.6. This was the version used for the full AMALIA-VL development, and any change can lead to degraded outputs and will not deliver the model's intended performance. Install it explicitly before running the model:pip install transformers==4.57.6
The model can be loaded with the transformers image-text-to-text API. Here is a minimal working example:
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "amalia-llm/AMALIA-VL-DPO"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
{"type": "text", "text": "Descreve esta imagem em detalhe."},
],
},
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
generated_ids = model.generate(**inputs, max_new_tokens=256)
output = processor.batch_decode(
generated_ids[:, inputs["input_ids"].shape[1]:],
skip_special_tokens=True,
)[0]
print(output)
For high-throughput inference, you can serve AMALIA-VL with vLLM:
vllm serve amalia-llm/AMALIA-VL-DPO
Once the server is up, query it with, for example, curl:
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "AMALIA-VL-SFT",
"messages": [
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"
}
},
{
"type": "text",
"text": "Descreve esta imagem em detalhe."
}
]
}
]
}'
AMALIA processes and understands both images and natural language, and generates natural language text. It is intended as a general-purpose, open vision-language model for European Portuguese (pt-PT). AMALIA can be accessed, used, and fine-tuned by any person or entity, but it is important to take into account its capabilities and limitations. The model's usage should always respect responsible AI usage principles, applicable legislation, and data protection good practices.
Its primary intended uses include:
Applications of AMALIA to any of these are expected and desirable, but these must follow the guidance and recommendations present in this model card. Furthermore, we recommend that any application using AMALIA should consider the inclusion of knowledge bases adequate to the intended use cases. The responsibility for any outputs and outcomes of any applications of AMALIA lies exclusively with the applications' authors.
The model targets European Portuguese specifically. While it will handle other Portuguese variants to some degree, it is optimized and curated for pt-PT and should not be assumed equivalent across variants.
The following uses fall outside what AMALIA is designed or validated for:
Developing large language models raises a number of ethical concerns. By releasing AMALIA as an open model for European Portuguese, the consortium considered the following:
Risks identified and mitigations:
If you use AMALIA-VL in your work, please cite:
@article{gloria2026amalia,
title={AMALIA-VL: A Native European Portuguese Open-Source Vision and Language Model},
author={Gl{\'o}ria-Silva, Diogo and Cardeira, Jo{\~a}o and da Luz, Manuel Letras and Simpl{\'\i}cio, Afonso and Vinagre, Gon{\c{c}}alo and Tavares, Diogo and Ferreira, Rafael and Calvo, In{\^e}s and Vieira, In{\^e}s and Semedo, David and others},
journal={arXiv preprint arXiv:2606.19100},
year={2026}
}