Downloads · 30 days
100
29% of all-time downloads
teex-pt/AMALIA-9B-0626-DPO-GGUF
AMALIA-9B-0626-DPO-GGUF is a text generation model from teex-pt. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
GGUF quantizations of amalia-llm/AMALIA-9B-0626-DPO, the Portuguese (pt-PT) 9B model presented on 1 July 2026. GGUF runs on any platform — Windows, Linux, macOS, NVIDIA/AMD GPUs or plain CPUs — via llama.cpp, Ollama,…
Downloads · 30 days
100
29% of all-time downloads
All-time downloads
340
Public
Repo size
15.3 GB
Likes
0
Public
Click a slice to open those files.
.gguf15.3 GB · 100%
From the Hugging Face model README
GGUF quantizations of amalia-llm/AMALIA-9B-0626-DPO, the Portuguese (pt-PT) 9B model presented on 1 July 2026. GGUF runs on any platform — Windows, Linux, macOS, NVIDIA/AMD GPUs or plain CPUs — via llama.cpp, Ollama, LM Studio, Jan, and anything built on them.
| File | Quant | Size | Quality (measured) |
|---|---|---|---|
AMALIA-9B-0626-DPO-Q8_0.gguf | Q8_0 | 9.1 GB | lossless in practice (−0.1% perplexity vs BF16, within noise) |
AMALIA-9B-0626-DPO-Q4_K_M.gguf | Q4_K_M | 5.2 GB | small loss (+2.7% perplexity vs BF16) |
The chat template is embedded — chat frontends pick it up automatically. Prompt the model in European Portuguese; that is what it is tuned for.
Ollama — runs straight from this repo, no manual download:
ollama run hf.co/teex-pt/AMALIA-9B-0626-DPO-GGUF:Q4_K_M
# or, for maximum quality:
ollama run hf.co/teex-pt/AMALIA-9B-0626-DPO-GGUF:Q8_0
LM Studio: search for teex-pt/AMALIA-9B-0626-DPO-GGUF and pick a quant.
llama.cpp (pass --jinja so the embedded chat template, including the default system prompt, is fully honored):
llama-cli -m AMALIA-9B-0626-DPO-Q4_K_M.gguf --jinja
When you don't supply a system message, these builds present the model with a factual identity (extended from the original model's one-liner): Amália, a 9B open-source (Apache 2.0) Portuguese model named after Amália Rodrigues, presented on 1 July 2026 — with an instruction to answer in the user's language (primarily pt-PT) and not to invent details about its origin. Without this, the base model confabulates its identity (we observed invented personas and funding programmes). It is applied via the GGUF-embedded chat template (llama.cpp --jinja, LM Studio) and via the repo's system file (Ollama). Supplying your own system message fully overrides it.
We converted and benchmarked five variants of this model (GGUF and MLX, 4-bit and 8-bit) on an Apple M5 Pro (48 GB, llama.cpp b9850, mlx-lm 0.31.3). Perplexity for the GGUF family was measured with llama-perplexity over ~16.5k tokens of Portuguese Wikipedia prose, against the BF16 GGUF of the same model:
| Variant | PPL | Δ vs BF16 |
|---|---|---|
| BF16 | 7.779 ± 0.247 | — |
| Q8_0 (this repo) | 7.770 ± 0.247 | −0.1% (noise) |
| Q4_K_M (this repo) | 7.989 ± 0.251 | +2.7% |
Key findings:
llama-bench, pp512/tg128). On NVIDIA GPUs expect substantially higher.Rule of thumb: quality-critical work → Q8_0; interactive chat, drafting, or ≤8 GB machines → Q4_K_M.
Conversion pipeline, for reproduction: convert_hf_to_gguf.py (BF16) → llama-quantize (llama.cpp b9850).
For native Apple Silicon (MLX) builds with full benchmark data and scripts:
All credit for the model goes to the AMALIA team — these repos are format conversions plus benchmark documentation. Original model: amalia-llm/AMALIA-9B-0626-DPO (Apache 2.0). EuroLLM-based, llama architecture, 32k context.