Run this model with HF Jobs

Run HumanjavaEnterprises/EuroLLM-9B-Cooking-Assistant on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/HumanjavaEnterprises/EuroLLM-9B-Cooking-Assistant. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/HumanjavaEnterprises/EuroLLM-9B-Cooking-Assistant on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/HumanjavaEnterprises/EuroLLM-9B-Cooking-Assistant. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/HumanjavaEnterprises/EuroLLM-9B-Cooking-Assistant. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
File size: 14,934 Bytes
31a3084
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1c6128a
31a3084
 
 
 
 
 
 
 
 
 
 
 
1c6128a
31a3084
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1c6128a
31a3084
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
---
license: apache-2.0
base_model: utter-project/EuroLLM-9B-Instruct-2512
base_model_relation: finetune
library_name: transformers
pipeline_tag: text-generation
language: [en, de, es, fr, it, nl, pt, pl, sv]
tags: [cooking, recipes, eurollm, llama, provenance, abstention, multilingual]
datasets: [HumanjavaEnterprises/cooking-assistant-eval]
---

# EuroLLM-9B Cooking Assistant

A multilingual cooking assistant built on EuroLLM-9B-Instruct, with an **auditable lineage**: every model that wrote,
labelled, filtered or voted on anything in its training and evaluation is a published open-weights model from a
European lab (EuroLLM by the UTTER consortium, Apertus by the Swiss AI Initiative, Mistral-Small and Magistral-Small
by Mistral AI), and an independent panel from outside that chain cross-checks the numbers.

It reads the recipe you give it, scales it, and when it can't see the recipe it usually asks for it, or answers with a clearly hypothetical amount. With the recipe
shown it answers correctly 83.8% of the time; on questions that need a recipe it wasn't shown it invents details 11.4%
of the time (European voting panel; the independent panel gives 83.8% and 14.3%). **On general cooking questions it
is below the EuroLLM-9B-Instruct model it was built from** (54.9% vs 64.6%); see Limitations. Runs fully on an 8 GB
GPU (Q4_K_M).

> **Human review: pending.** No person has reviewed the training labels yet. A 100-item review is planned (50 accepted training answers and 50 preference pairs, read blind by people); its results will be added to this card.

*Unofficial fine-tune of EuroLLM-9B-Instruct by Humanjava Enterprises; not made or endorsed by the EuroLLM project or
the UTTER consortium.*

Full-precision safetensors (Transformers, vLLM). Files for llama.cpp, Ollama and LM Studio:
[HumanjavaEnterprises/EuroLLM-9B-Cooking-Assistant-GGUF](https://huggingface.co/HumanjavaEnterprises/EuroLLM-9B-Cooking-Assistant-GGUF).
Ollama: [vveerrgg/eurollm-9b-cooking-assistant](https://ollama.com/vveerrgg/eurollm-9b-cooking-assistant) (`ollama run vveerrgg/eurollm-9b-cooking-assistant:q6_k`).
Siblings in the Cooking Assistant family:
[Qwen3-8B](https://huggingface.co/HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant) ·
[GLM-4-9B](https://huggingface.co/HumanjavaEnterprises/GLM-4-9B-Cooking-Assistant) ·
[Olmo-3-7B](https://huggingface.co/HumanjavaEnterprises/Olmo-3-7B-Cooking-Assistant).
Guide: [github.com/HumanjavaEnterprises/qwen3-8b-cooking-assistant/eurollm-9b](https://github.com/HumanjavaEnterprises/qwen3-8b-cooking-assistant/tree/main/eurollm-9b).

It does not memorise recipes: give it the recipe (paste it, or have your app look it up) and it will read it.

## Files

| File | Use |
|---|---|
| `model-0000*-of-00004.safetensors` + configs | the merged model in bfloat16 (9.2B parameters, 18.3 GB) |
| `chat_template.jinja` | the ChatML template the model was trained with, plus a default system prompt (below) |

Checksums: `SHA256SUMS`. The model was trained in two LoRA stages (supervised, then preference), each merged; only
the merged weights are published.

## Quick start

```python
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "HumanjavaEnterprises/EuroLLM-9B-Cooking-Assistant"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="bfloat16", device_map="auto")
msgs = [{"role": "system", "content": "You are a cooking assistant. You answer questions about dishes, ingredients, techniques and food safety. When you are not sure, you say so."},
        {"role": "user", "content": "Pancakes: 200 g flour, 2 eggs, 300 ml milk. I want three times as much. How much milk?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=256, do_sample=False)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
```

```bash
vllm serve HumanjavaEnterprises/EuroLLM-9B-Cooking-Assistant --max-model-len 8192
```

## Versions

The Cooking Assistant is one product family with dated versions; each version is a git tag, so you can pin one with
`revision="v2"`. The family's v1 was the Qwen3-8B and GLM-4-9B builds; v2 adds this EuroLLM build, so its first
release is v2.

| Version | Date | Invents (no recipe) | Correct (recipe shown) | General | Notes |
|---|---|---|---|---|---|
| **v2** (current) | 2026-11-26 | 11.4% | 83.8% | 54.9% | first release on EuroLLM-9B; European voting panel, all languages |

## Prompt format

ChatML (`<|im_start|>role` … `<|im_end|>`), in `chat_template.jinja`; there is no thinking mode. A turn ends with
`<|im_end|>`. Trained with this system prompt, which works best:

```
You are a cooking assistant. You answer questions about dishes, ingredients, techniques and food safety. When you are not sure, you say so.
```

When you send **no** system prompt, the template adds this one, which also names the model:

```
You are the Cooking Assistant by Humanjava Enterprises, fine-tuned from EuroLLM-9B. If asked who you are, say you are the Cooking Assistant by Humanjava Enterprises. You answer questions about dishes, ingredients, techniques and food safety. When you are not sure, you say so.
```

The training data contains no identity answers, so with the trained system prompt it introduces itself as EuroLLM.
To ask about a specific recipe, put the recipe text in the user turn, then the question.

## What it does

- **Reads the recipe you give it** and answers from that text, in the language you ask in.
- **Scales recipes**: arithmetic, odd egg counts, "season to taste" and pan-size / cooking-time cautions were trained
  specifically.
- **When the recipe is missing**, it usually asks for it, or answers with a clearly hypothetical amount ("if your recipe calls for 1 cup, use 3 cups"); it still invents details on 11.4% of such questions.
- **Answers general cooking questions**, but less well than the model it was built from (see Results).

The intended setup is **fine-tune for behaviour, retrieval for facts, tools for numbers**: an app looks up the recipe
and hands it to the model.

## Results

The same fixed held-out set of 682 cooking questions as the rest of the family (21 languages; 290 with the recipe
shown, plus 10 "how do you make X?" recall questions, 300 that need a recipe the model is not shown, 82 general
questions), never used in training. Every answer was scored one at a time by model judges, blind to which model wrote
it, on two panels:

- **European voting panel:** Apertus-v1.5-70B (Swiss AI Initiative, Switzerland), Mistral-Small-3.2-24B and
  Magistral-Small-2509 (Mistral AI, France); a verdict counts when 2 of 3 agree. ALIA-40B (Barcelona Supercomputing
  Center, Spain) was also run and is reported, but does not vote: it was far more lenient on invented details than the
  other judges when we vetted it.
- **Independent panel ("run A"):** DeepSeek-V4-Flash, gpt-oss-120b and Seed-OSS-36B, the panel used across the
  family, from outside the European chain; 2 of 3. It matters because Apertus and Mistral-Small also filtered this
  model's synthetic training data, so they are not fully independent of it.

A rule check removes "invents" verdicts on answers whose every detail was already in the question.

| | EuroLLM-9B-Instruct (base) | **this model (v2)** |
|---|---|---|
| Invents, no recipe (European vote / run A) | 43.7% / 49.5% | **11.4% / 14.3%** |
| Correct, recipe shown (European vote / run A) | 80.3% / 73.4% | **83.8% / 83.8%** |
| General questions, 82 (European vote / run A) | **64.6% / 56.1%** | 54.9% / 46.3% |
| Invents, no recipe: English (European vote) | 30.6% | **5.6%** |
| Correct, recipe shown: English (European vote) | 85.3% | 82.4% |
| ALIA-40B (non-voting): invents / general | 20.7% / 73.2% | 6.0% / 68.3% |

**General answers are below the base model on both panels.** The base is EuroLLM-9B-Instruct-2512 itself, a capable
instruction-tuned model, so it is a high bar; our preference stage bought back most of the invented details and cost
about 5 points of general score. The general rows are small (82 items), so a few items either way is noise, but the
gap is consistent across both panels.

**Recipe scaling** (our 40-item held-out halving / doubling probe, graded by code checks):

| | base | **this model (v2)** | Qwen3-8B Cooking Assistant v1 |
|---|---|---|---|
| Arithmetic right (our rule: every amount within 80% of items) | 27/40 | **38/40** | 38/40 |
| Arithmetic right (the Olmo build's stricter rule) | 7/40 | **16/40** | 16/40 |
| Wrong unit conversions (answers / count) | 4 / 12 | **3 / 6** | 5 / 7 |
| Odd egg counts handled | 7/10 | 5/10 | 3/10 |
| "Season to taste" caution | 7/19 | **15/19** | 3/19 |
| Pan size / cooking time caution | 11/37 | **33/37** | 1/37 |

The stricter rule only reads US volume units, so 22 of the 40 items (metric or not in English) have nothing it can
check and count as fails; read it as "on US-unit recipes, this model ties the Qwen build". **Noise:** treat
differences of about ±3 on this 40-item probe as noise.

**Quantised files.** All three files were scored on the same 682 questions against the full-precision model, by the European voting judges in the same run (2 of 3). Invents with no recipe: Q4_K_M 8.1% (full precision 11.8%), Q6_K 9.1% (11.8%), Q8_0 10.7% (11.4%). Correct with the recipe shown: 80.0% (84.1%), 81.4% (83.8%), 81.0% (83.8%). General questions: 50.0% (54.9%), 51.2% (56.1%), 53.7% (54.9%). No difference is significant (McNemar p ≥ 0.11), but every file reads a shown recipe 2 to 4 points less often than full precision, most at Q4_K_M; pick Q6_K or Q8_0 if you have the memory. The full-precision answers are the same text in every comparison; only the judging was re-run (Magistral samples).

**Memorisation.** Cookbook training documents (Wikibooks Cookbook, CC BY-SA) were probed with 12,000 prefixes of 32 to 128 tokens at several offsets, as raw text and as chat prompts, with greedy decoding. The model reproduces training text no more than EuroLLM-9B-Instruct itself: one 50-token verbatim continuation for each (the same count), no overlap of 200 characters or more, longest overlap 63 characters for both, and overlap with the true text slightly below the base's (ROUGE-L 0.152 vs 0.157).

## How it was built

| | |
|---|---|
| Base | utter-project/EuroLLM-9B-Instruct-2512 (Apache-2.0), by the UTTER consortium (Instituto Superior Técnico, University of Edinburgh, Unbabel and partners), funded by the European Union. 35 languages |
| Sources | The same openly licensed and public-domain cooking texts as the rest of the family: the Wikibooks Cookbook (CC BY-SA 4.0), public-domain cookbooks from Project Gutenberg and the Internet Archive, and NHLBI recipes (US government, public domain) |
| Models used | **Writers and labellers:** EuroLLM-22B-Instruct-2512 wrote the training questions and answers and labelled the preference pairs; EuroLLM-9B-Instruct-2512 (the base) wrote the self-distilled replay and no-recipe answers. **Filters:** Apertus-v1.5-70B (Switzerland) judged the synthetic items and Mistral-Small-3.2-24B (France) was the second filter (an item is kept only when both agree). **Evaluation:** the voting judges above (Apertus, Mistral-Small, Magistral-Small), ALIA-40B reported but not voting, and the independent run A panel as the cross-check. All open weights, Apache-2.0. **No output from any closed or API model is in the training, evaluation or seed data**, and the data was written fresh for this build (none of the other builds' data carried over). One shared exception, in evaluation only: the family's 682-question set was built for v1, and its reference answers (which the judges compare against) were written by Qwen3.8-27B; none of it is training data |
| Training | A supervised LoRA stage on the base (cooking behaviours, no-recipe answers, fuller general answers, recipe scaling, self-distilled replay), merged; then a preference (DPO) LoRA stage, merged |
| Tooling | Transformers + PEFT, LLaMA-Factory, vLLM, llama.cpp |

The evaluation set behind every number on this card (all 682 questions, both models' answers, every judge's verdict
on both panels plus ALIA's, per-row source credits) is published:
[HumanjavaEnterprises/cooking-assistant-eval](https://huggingface.co/datasets/HumanjavaEnterprises/cooking-assistant-eval),
config `eurollm-9b-v2`.

## Limitations

- **General answers are below the base model** (54.9% vs 64.6% European vote, 46.3% vs 56.1% run A). If you mostly
  ask general cooking questions, EuroLLM-9B-Instruct itself, or the Qwen3-8B build, will serve you better.
- **Invented details are not gone:** 11.4% / 14.3% of no-recipe questions still get an invented amount or step
  (English: 5.6%). Give it the recipe.
- **Repetition loops in some languages:** Bengali and Vietnamese answers sometimes repeat a phrase until the length
  limit. Several of the eval languages (Bengali, Persian, Indonesian, Tagalog, Thai, Vietnamese, Malay, Hebrew) are
  outside EuroLLM's 35 training languages.
- **Probe noise of about ±3** on the 40-item scaling probe.
- **Human review pending** (see the note at the top): the training labels were made and checked by models only.
- **Not a source of truth for food safety.** It repeats standard guidance but can be wrong; check official sources.
- **It does not know historical recipes by heart.** Give it the text.
- The judges are models, and model judges tend to make the same mistakes as each other.

## Feedback and security

- **The model got something wrong:** please
  [open a report](https://github.com/HumanjavaEnterprises/qwen3-8b-cooking-assistant/issues/new?template=wrong-answer.yml)
  and say it was the EuroLLM build.
- **Security** (files that don't match `SHA256SUMS`, unexpected embedded content): see
  [SECURITY.md](https://github.com/HumanjavaEnterprises/qwen3-8b-cooking-assistant/blob/main/SECURITY.md).

## Licence and credits

Weights: Apache-2.0, same as the base model (full text in `LICENSE`). Base model: EuroLLM-9B-Instruct-2512 by the
UTTER consortium, Apache-2.0. This repository contains a modified version of that model (fine-tuned by Humanjava
Enterprises).

Training data sources: Wikibooks Cookbook contributors (CC BY-SA 4.0; per-page attribution in the dataset), Project
Gutenberg and Internet Archive public-domain books, NHLBI. Writer and labeller: EuroLLM-22B-Instruct-2512 (UTTER,
Apache-2.0). Filters: Apertus-v1.5-70B (Swiss AI Initiative, ETH Zurich and EPFL; Apache-2.0 with the Apertus
Acceptable Use Policy; used to judge, not redistributed) and Mistral-Small-3.2-24B (Mistral AI, Apache-2.0).
Evaluation judges: Apertus-v1.5-70B, Mistral-Small-3.2-24B, Magistral-Small-2509 (Mistral AI, Apache-2.0),
ALIA-40B (BSC, Apache-2.0); cross-check DeepSeek-V4-Flash, gpt-oss-120b, Seed-OSS-36B.

Built by [Humanjava Enterprises](https://huggingface.co/HumanjavaEnterprises).