Views
No views yet
0.12.21auto_resume_from_checkpoints: true
2use_tensorboard: true
3
4base_model: utter-project/EuroLLM-9B-2512
5model_type: AutoModelForCausalLM
6tokenizer_type: AutoTokenizer
7
8load_in_8bit: false
9load_in_4bit: false
10strict: false
11
12dataset_processes: 64
13datasets:
14 - path: utter-project/EuroBlocks-SFT-2512
15 type: chat_template
16 split: train
17 conversation: chatml
18 field_messages: conversations
19 message_field_role: role
20 message_field_content: content
21 roles_to_train: ["assistant"]
22 train_on_eos: all
23
24
25chat_template_jinja: "{% for message in messages %}{% if message['role'] == 'assistant' %}{% set role = 'assistant' %}{% else %}{% set role = message['role'] %}{% endif %}<|im_start|>{{ role }}\n{{ message['content'] | trim }}<|im_end|>\n{% endfor %}{% if add_generation_prompt %}{{'<|im_start|>assistant\n'}}{% endif %}"
26
27output_dir: checkpoints
28val_set_size: 0
29
30sequence_len: 32768
31sample_packing: true
32pad_to_sequence_len: true
33
34# sequence_parallel_degree: 4
35# heads_k_stride: 1
36# ring_attn_func:
37
38plugins:
39 - axolotl.integrations.liger.LigerPlugin
40liger_rope: true
41liger_rms_norm: true
42liger_glu_activation: true
43liger_layer_norm: true
44liger_fused_linear_cross_entropy: true
45
46# N_GPUS * GRAD_ACC_STEPS * MICRO_BATCH_SIZE * SEQ_LEN = tokens/step ->
47# Assuming 32 gpus (32 * 2 * 2 * 32k = 4 096 000 tokens/step)
48gradient_accumulation_steps: 2
49micro_batch_size: 2
50
51eval_batch_size: 1
52num_epochs: 5
53optimizer: adamw_torch
54lr_scheduler: cosine
55learning_rate: 1e-5
56
57train_on_inputs: false
58group_by_length: false
59bf16: true
60fp16: false
61tf32: false
62
63gradient_checkpointing: true
64logging_steps: 1
65flash_attention: true
66flash_attn_cross_entropy: false
67flash_attn_rms_norm: false
68flash_attn_fuse_qkv: false
69flash_attn_fuse_mlp: false
70
71warmup_steps: 125
72eval_sample_packing: False
73save_steps: 500
74save_total_limit: 2
75deepspeed: deepspeed_configs/zero3_bf16.json
76weight_decay: 0.01
77
78special_tokens:
79 eos_token: "<|im_end|>"
80from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "utter-project/EuroLLM-9B-Instruct-2512"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
messages = [
{
"role": "system",
"content": "You are EuroLLM --- an AI assistant specialized in European languages that provides safe, educational and helpful answers.",
},
{
"role": "user", "content": "What is the capital of Portugal? How would you describe it?"
},
]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(inputs, max_new_tokens=1024)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))@misc{ramos2026eurollm22btechnicalreport,
title={EuroLLM-22B: Technical Report},
author={Miguel Moura Ramos and Duarte M. Alves and Hippolyte Gisserot-Boukhlef and João Alves and Pedro Henrique Martins and Patrick Fernandes and José Pombal and Nuno M. Guerreiro and Ricardo Rei and Nicolas Boizard and Amin Farajian and Mateusz Klimaszewski and José G. C. de Souza and Barry Haddow and François Yvon and Pierre Colombo and Alexandra Birch and André F. T. Martins},
year={2026},
eprint={2602.05879},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2602.05879},
}