Latxa-Qwen3.5-4B-GGUF
[!NOTE] Biltegi honek HiTZ Zentroaren Latxa-Qwen3.5-4B jatorrizko ereduaren GGUF bihurketak dauzka. Ereduaren meritu guztia jatorrizko egileena da (HiTZ Zentroa, UPV/EHU); biltegi honek pisuak llama.cpp eta GGUF oinarrituko tresnekin erabiltzeko baino ez ditu berrantolatzen. Jatorrizko pisuak, model card-a eta prestakuntzaren xehetasunak goiko estekan aurkituko dituzu.
Euskaraz
Latxa-Qwen3.5-4B modelo multimodalaren GGUF pisuak, HiTZ Zentroak (UPV/EHU) euskarara egokituak, Qwen3.5-4B oinarrian eraikiak.
Latxa modeloak euskarara egokitzen dira (eta multi aldaeran galizierara eta katalanierara ere bai) Sainz et al. (2025) metodologiari jarraiki. Qwen3.5 belaunaldia jatorriz multimodala da ("VL" sufixorik beharrik ez) eta thinking hibridoa du: zuzenean erantzun dezake edo arrazoiketa pausoz pausoa egin. Euskarazko benchmark-etan (BertaQA, Eus Reading, Eus Exams...) 4B multi aldaerak oinarritzako Qwen3.5-4B-a nabarmen gainditzen du (+12,7 batez bestekoan).
Fitxategiak
| Fitxategia | Osagaia | Tamaina | Oharrak |
|---|---|---|---|
HiTZ-Latxa-Qwen3.5-4B-Instruct-Q4_K_M.gguf |
LLM | 2,6 GB | Gomendatua |
HiTZ-Latxa-Qwen3.5-4B-Instruct-Q8_0.gguf |
LLM | 4,2 GB | Kalitate handiagoa |
mmproj-Qwen3.5-4B-Instruct-Q8_0.gguf |
Bisio-kodetzailea | 347 MB | Irudietarako beharrezkoa |
mmproj-Qwen3.5-4B-Instruct-F16.gguf |
Bisio-kodetzailea | 672 MB | Kalitaterik onena |
LLMaren eta bisio-kodetzailearen doitasunak libre nahas ditzakezu. Testu hutseko inferentzia mmproj gabe ere funtzionatzen du; irudiak prozesatzeko bakarrik behar da.
Erabilera
# CLI
llama cli \
-m HiTZ-Latxa-Qwen3.5-4B-Instruct-Q4_K_M.gguf \
--mmproj mmproj-Qwen3.5-4B-Instruct-Q8_0.gguf \
--image argazkia.jpg \
-p "Zer ikusten da irudi honetan?"
# Zerbitzaria (Web UI + OpenAI bateragarria)
llama serve \
-m HiTZ-Latxa-Qwen3.5-4B-Instruct-Q4_K_M.gguf \
--mmproj mmproj-Qwen3.5-4B-Instruct-Q8_0.gguf \
--jinja
Thinking modua
--jinja erabilita, eskaera bakoitzean aktiba dezakezu: "chat_template_kwargs": {"enable_thinking": true}. Aktibatzean arrazoiketa reasoning_content eremuan itzultzen da separatuta. Oharra: modeloak ingelesez pentsatzeko joera du, nahiz eta euskaraz erantzun.
Neurritako abiadura (CPU hutsa)
Intel Core Ultra 5 228V (Lunar Lake) erreferentziaz, Q4_K_M + Q8_0 mmproj: testua ~9 tok/s; irudiarekin ~8 tok/s (irudia kodetzeak ~2 s gehitzen ditu).
English
[!NOTE] This repository contains GGUF-format conversions of the original model HiTZ/Latxa-Qwen3.5-4B, created by the HiTZ Center (UPV/EHU). All credit for the model itself goes to its original authors — this repo only repackages the weights for use with llama.cpp and other GGUF-based tools. The original weights, model card and training details can be found at the link above.
GGUF-format weights for Latxa-Qwen3.5-4B, the Basque-adapted multimodal model by HiTZ Zentroa (UPV/EHU), built on Qwen3.5-4B.
Latxa models are adapted for Basque (and Galician/Catalan in multi variants) following the method of Sainz et al. (2025). The Qwen3.5 generation is natively multimodal (no "VL" suffix needed) and hybrid thinking: it can answer directly or produce step-by-step reasoning. On Basque benchmarks (BertaQA, Eus Reading, Eus Exams...) the 4B multi variant clearly outperforms the base Qwen3.5-4B (+12.7 avg).
Files
| File | Component | Size | Notes |
|---|---|---|---|
HiTZ-Latxa-Qwen3.5-4B-Instruct-Q4_K_M.gguf |
LLM | 2.6 GB | Recommended |
HiTZ-Latxa-Qwen3.5-4B-Instruct-Q8_0.gguf |
LLM | 4.2 GB | Higher quality |
mmproj-Qwen3.5-4B-Instruct-Q8_0.gguf |
Vision encoder | 347 MB | Required for images |
mmproj-Qwen3.5-4B-Instruct-F16.gguf |
Vision encoder | 672 MB | Best quality |
You can mix LLM and vision-encoder precisions freely. Text-only inference works without the mmproj file; it is only needed to process images.
Requirements
A recent llama.cpp build with qwen35 architecture support (October 2026 or newer, e.g. build b6907+ / llama 0.6.0+). Runs on CPU, CUDA, Metal, Vulkan and SYCL.
Usage
# CLI
llama cli \
-m HiTZ-Latxa-Qwen3.5-4B-Instruct-Q4_K_M.gguf \
--mmproj mmproj-Qwen3.5-4B-Instruct-Q8_0.gguf \
--image argazkia.jpg \
-p "Zer ikusten da irudi honetan?"
# Server (Web UI + OpenAI-compatible API)
llama serve \
-m HiTZ-Latxa-Qwen3.5-4B-Instruct-Q4_K_M.gguf \
--mmproj mmproj-Qwen3.5-4B-Instruct-Q8_0.gguf \
--jinja
Then open http://localhost:8080, or call the API:
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":[
{"type":"image_url","image_url":{"url":"data:image/png;base64,..."}},
{"type":"text","text":"Zer ikusten da irudi honetan?"}]}]}'
Thinking / reasoning mode
The model supports hybrid thinking. With --jinja, enable or disable it per request:
"chat_template_kwargs": {"enable_thinking": true}
When enabled, the reasoning is returned separately in reasoning_content. Note: the model tends to reason in English even when answering in Basque.
Recommended sampling parameters
| Mode | temperature | top_p | top_k | presence_penalty |
|---|---|---|---|---|
| Thinking, general | 1.0 | 0.95 | 20 | 1.5 |
| Non-thinking, general | 0.7 | 0.8 | 20 | 1.5 |
Measured performance (CPU only)
Reference: Intel Core Ultra 5 228V (Lunar Lake), Q4_K_M LLM + Q8_0 mmproj:
- Text generation: ~9 tok/s
- Text + image: ~8 tok/s (image encoding adds ~2 s)
Technical notes
- Converted with
convert_hf_to_gguf.pyusing--no-mtp: the upstream HiTZ export declaresmtp_num_hidden_layers: 1inconfig.jsonbut does not include the MTP tensors in the safetensors checkpoint. Without--no-mtp, the resulting GGUF has a mismatchedblock_countand fails to load. - MTP / speculative-draft layers are therefore not included; the model works identically for normal inference.
Esker onak / Acknowledgements
Original model by the HiTZ Research Center & IXA Research Group (University of the Basque Country, UPV/EHU):
- Model card and original weights: HiTZ/Latxa-Qwen3.5-4B
- Website: hitz.eus
- Inference engine: llama.cpp
Citation
@inproceedings{sainz-etal-2025-instructing,
title = {Instructing Large Language Models for Low-Resource Languages: A Systematic Study for Basque},
author = {Sainz, Oscar and Perez, Naiara and Etxaniz, Julen and Fernandez de Landa, Joseba and Aldabe, Itziar and Garc{\'i}a-Ferrero, Iker and others},
booktitle = {Proceedings of EMNLP 2025},
year = {2025},
doi = {10.18653/v1/2025.emnlp-main.1484}
}
Licentzia / License: Apache 2.0 (jatorrizko ereduan eta bihurketa hauetan / both the original model and these conversions).