By the end of this post you will know how four small local models handle real Spanish office work, and you will have the script to run the same test on yours. Each model is a 4.7 to 6.0 GB download according to ollama list, so a laptop with 16 GB of RAM is the cheapest place to start (we did not time one).
We tested the models that were already installed on our machine, which is the honest way to say this is not a league table of every model. It is a method, with our first results.
What you need
- Ollama and the models you want to compare
- Python 3 with
requests - Our script,
scripts/bench/spanish_small_models.py(prompts, checks and options are all in the file). It runs on Linux: the memory guard reads/proc/meminfo - Time: a few minutes per model on a GPU, much longer on a CPU
The three tasks
Each task is something a 10-person office in Spain does every week:
- Email reply. A client disputes an invoice: 70 euros more than quoted and a payment term cut from 30 to 15 days. The model must answer four specific points, with a subject line, in about 150 words.
- Summary. Minutes of a team meeting (dates, client counts, who calls whom). Exactly three one-line bullets.
- Extraction. An invoice email; return only a JSON object with supplier, tax ID, invoice number, issue date, total and due date.
The extraction prompt, so you can see the level of detail:
Extrae los datos de esta factura y devuelve SOLO un objeto JSON válido, sin texto
antes ni después, con estas claves exactas:
"proveedor", "nif", "numero_factura", "fecha_emision" (formato AAAA-MM-DD),
"total" (número con punto decimal, sin símbolo), "fecha_vencimiento" (formato AAAA-MM-DD).Step 1: run the benchmark
ollama list # use models you already have
python3 scripts/bench/spanish_small_models.py \
--models llama3.1:8b,qwen2.5vl:7b,qwen2.5-coder:7b,llava:7b \
--reps 3 --out results.jsonIt calls /api/chat with temperature 0, seed 42 and a 4,096-token context, three times per task. It keeps the first output and the median speed, computed from Ollama’s own eval_count and eval_duration. It unloads each model when done, and it skips a model if less than 20 GB of memory is free. On a 16 GB laptop, lower that guard with --min-free-gb 8 or every model is skipped.
Step 2: let the script do the objective checks
For every output it records:
- Accents: accented characters per 100 words, plus common words written without their accent (“tambien”, “informacion”).
- English leakage: English-only words such as “the”, “please” or “regards”.
- JSON: strict validity (the raw answer parses) and lenient validity (it parses after removing a code fence), and how many of the six fields match the right answer.
Step 3: score the writing with a rubric
Machines cannot judge register. We used three criteria, each from 1 to 5: Spanish correctness, task completion, and register for a Spanish small business. A 5 means a native editor would change nothing; a 3 means usable after a careful edit.
Our AI assistant applied the rubric by reading every output, and each score carries a written reason in spanish-small-models-2026-10-08-scores.json. It is one reader, not a panel, and not blind. Read the outputs and disagree where you like; the point is that the judgement is visible.
What we measured
On 2026-10-08 on our DGX Spark (GB10, 128 GB unified memory, Ollama 0.30.10), with the command above. Speeds are the median of three runs. Raw outputs: spanish-small-models-2026-10-08.json.
| Model (Q4) | tok/s | Email (C/T/R) | Summary (C/T/R) | Extraction fields | Strict JSON |
|---|---|---|---|---|---|
| llama3.1:8b | 39.3 to 39.7 | 3 / 4 / 3 | 4 / 4 / 4 | 6 of 6 | No (fenced) |
| qwen2.5vl:7b | 40.7 to 42.2 | 4 / 5 / 4 | 3 / 2 / 3 | 5 of 6 | Yes |
| qwen2.5-coder:7b | 42.2 to 42.4 | 3 / 3 / 3 | 4 / 3 / 4 | 5 of 6 | No (fenced) |
| llava:7b | 50.8 to 51.3 | 2 / 3 / 3 | not a summary | 5 of 6 | No (refusal text first) |
C = correctness, T = task, R = register, each out of 5.
The objective checks were clean: no English words leaked into any output, and none of the common words on our list lost its accent. That is good news for Spanish spelling at this size. The problems were grammar and judgement.
What the outputs got wrong
- Wrong person and mood.
llama3.1:8bwrote “Le aseguramos que enviarán una factura” (they will send) instead of “enviaremos” (we will send), and “nos proporcionen” for “facilítenos”.llava:7bwrote “confirmamos que pondréis su nombre”, telling the client they will do our job. - Contradictions.
qwen2.5-coder:7bopened with “we made two mistakes” and then said the total was correct. - Format ignored.
qwen2.5vl:7breturned six telegraphic lines instead of three bullets.llava:7breprinted the minutes word for word. - Numbers in Spanish format. Asked for a decimal point, two models wrote the total as “1.512,50”, the Spanish way. That is correct for a person and wrong for a database. The coder model wrote “1.512.50”, which is neither.
- A refusal that was not one.
llava:7bsaid it had no access to the invoice, then extracted it anyway.
One more thing the spec sheet won’t tell you: at temperature 0 with a fixed seed, all four models gave different email texts across the three runs. Summaries and extractions were mostly identical. Do not assume a local model is perfectly repeatable.
When not to rely on this
- We tested four models, the ones already installed. Obvious candidates such as a Qwen2.5 7B instruct model or a small Gemma were not on the machine, and we did not download new ones for this run. Add them with
--modelsand compare. - One prompt per task. A different email changes the ranking. Run the script on your own documents before you decide.
- A 7-8B model drafts; a person signs. Every email above needed an edit before sending.
Next steps
- Measure speed and memory properly with our 30-minute benchmark guide.
- Pick candidates to test from the best local LLMs by hardware and task.
- Put the winner in front of your team with Open WebUI for a 10-person office.
- See how many tokens your text takes in Spanish versus English with the tokenizer.
Want this test run on your own documents before you commit to a model? That is a short engagement for us: book a 15-minute call or see how we work in consulting.