NordLLM 4.1B Instruct
a language model for Norwegian languages
2 min readupdated
NordLLM 4.1B Instruct is a 4.1-billion-parameter research language model created by the Team NordLLM for the University of Oslo. It is optimized for Bokmål and Nynorsk (the written standards of the Norwegian language) while also supporting English. The model architecture is based on a Qwen3-style decoder approach with 40 layers, and training took place in multiple stages, including fine-tuning on mathematical data and a supervised instruction fine-tuning (SFT) phase. The model will be useful for researchers and developers who need quality tools for processing Norwegian texts and solving logical tasks in local languages.
Key features
- Supports two variants of the Norwegian language (Bokmål and Nynorsk) alongside English.
- Based on a Qwen3-style decoder architecture with 40 layers and a size of 4.1B parameters.
- Underwent a two-stage supervised fine-tuning process for following instructions and calculations.
- Trained on HPLT and FineMath text corpora totaling tens of billions of tokens.
What you can do
- Apply it in academic research on language models for the Norwegian language.
- Integrate it into chatbots and text assistants tailored for a Norwegian audience.
- Use it for translation, summarization, and text generation tasks in Bokmål and Nynorsk.
- Test the model's capabilities in solving math problems and following instructions.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "emilsko/NordLLM-4.1B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="auto", use_safetensors=True)
messages = [{"role": "user", "content": "Kor mykje er 12 gonger 7?"}]
inputs = tokenizer.apply_chat_template(
messages, tokenize=True, add_generation_prompt=True,
return_dict=True, return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=128, do_sample=False)
new_tokens = outputs[0, inputs["input_ids"].shape[-1]:]
print(tokenizer.decode(new_tokens, skip_special_tokens=True))
Read more
Details• Benchmarks: GSM8K (Bokmål) — 18.0%, GSM8K (Nynorsk) — 14.8%, NorEval (average) — 39.21/100.
• Training context: 4,096 tokens, BF16 Safetensors weight format.
• Training: pre-training on 33.25B tokens, mathematical annealing, and two SFT stages.
• Limitations: the model can generate plausible but incorrect texts and reasoning, and has not been evaluated for mission-critical tasks.










Comments