Views
No views yet
amalia-llm/AMALIA-9B-0626-DPO,
the open LLM for European Portuguese (pt-PT) developed by NOVA, IST, IT and FCT
(PROPOR 2026).Why this repo: at conversion time there was an MLX build only of the SFT variant (dgomes03) and a GGUF of the DPO variant (duarteocarmo), but no MLX build of the DPO variant. This repo fills that gap.
pip install mlx-lm1from mlx_lm import load, generate
2
3model, tokenizer = load("MiguelOli/AMALIA-9B-0626-DPO-mlx-4bit")
4
5messages = [{"role": "user", "content": "Explica-me o que é o fado, em português de Portugal."}]
6prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
7
8response = generate(model, tokenizer, prompt=prompt, max_tokens=512, verbose=True)1mlx_lm.generate --model MiguelOli/AMALIA-9B-0626-DPO-mlx-4bit \
2 --prompt "Qual a diferença entre 'está-se' e 'está a ser' em pt-PT?"| Base model | amalia-llm/AMALIA-9B-0626-DPO (9B, EuroLLM-9B continued pretraining + SFT + DPO) |
| Quantization | 4-bit (4.5 bits/weight, default group size of mlx_lm.convert) |
| Tool | mlx-lm 0.31.3 (mlx_lm.convert --hf-path ... -q --q-bits 4) |
| Context | 32K tokens |
| License | Apache-2.0 (inherited from the base model) |