MPLM 3.8B Base
MPLM 3.8B Base is a 3.80B-parameter Norwegian base language model for Bokmål and Nynorsk, trained from scratch by Team MPLT during IN5640 at the University of Oslo. It continues text. It has no chat template and is not tuned to follow instructions. This is the team's original production checkpoint at step 36,717.
| Parameters | Architecture | Context | Vocabulary | Format |
|---|---|---|---|---|
| 3.80B | Qwen3-style decoder, 36 layers | 4,096 tokens | 64,000 (byte-level BPE) | BF16 Safetensors |
Related checkpoints:
- MPLM-3.8B-MathCode shares the first 28,000 steps with this model and ends on a mixture with math and code text.
- MPLM-3.8B-Instruct is the instruction-tuned chat model, fine-tuned from MPLM-3.8B-MathCode.
Intended use
The model supports research and teaching on Norwegian language modeling. It is a course project, not a product. As a base model it reproduces patterns in web text, including errors and bias, and it needs a prompt that it can continue.
Training
The model has 36 layers, hidden size 2,560, 32 attention heads with 8 key/value heads, and tied input and output embeddings. It was trained with Megatron-LM in BF16 for 36,717 steps at a global batch of 512 sequences of 4,096 tokens, which is 77.001B token positions. The mixture was 90% Norwegian and 10% English web text from a pre-release of the HPLT 4.0 collection. Native Norwegian provided 24.66B token positions, so the Norwegian text was seen about 2.8 times. The team chose repeated native text over Swedish, Danish or machine-translated text after ablations at two smaller model sizes.
The optimizer was Adam with a peak learning rate of 6e-4, 367 warmup steps and linear decay from step 29,374. Documents that matched Norwegian benchmark test items were removed from the training data before training. The run used 1,481.4 GPU-hours on 32 GH200 GPUs.
Evaluation
All numbers are zero-shot and were measured by the team with the course implementation of NorEval 1.1. The Norwegian score is the mean over prompt variants within each of 16 task and language conditions, then the mean over conditions.
| Model | Parameters | Norwegian (16 conditions) | English (5 tasks) |
|---|---|---|---|
| MPLM 3.8B Base | 3.80B | 0.392 | 0.547 |
| MPLM 3.8B MathCode | 3.80B | 0.393 | 0.552 |
| HPLT Bokmål | 2.15B | 0.405 | 0.425 |
| NorMistral-7B-scratch | 7.25B | 0.403 | 0.504 |
| Qwen3-4B-Base | 4.02B | 0.490 | 0.701 |
The reference models were run in the same harness on the same prompts. The loss on 50M tokens of held-out Norwegian text is 2.113.
Limitations
- In NorTruthfulQA the correct option is always listed first, so scores on that task partly reflect a position preference. It is included in the 16-condition mean above.
- Several Nynorsk conditions have fewer than 100 test items, so differences between models on them are uncertain.
- The model solves 28 of 1,319 GSM8K problems with five examples in the prompt and none of the 164 HumanEval problems.
- The training data is filtered web text. The model can produce false, offensive or private-looking content.
Generate text
Set MPLM_MODEL to this repository's ID or to a local copy of it. The tokenizer adds no beginning-of-sequence token, so give the model text to continue.
import os
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = os.environ["MPLM_MODEL"]
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16).to("cuda").eval()
inputs = tokenizer("Bergen er en by på Vestlandet som", return_tensors="pt").to(model.device)
with torch.inference_mode():
output = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(tokenizer.decode(output[0], skip_special_tokens=True))
License and data
The weights are released under the Creative Commons Attribution-NonCommercial 4.0 licence (CC BY-NC 4.0): research and other non-commercial use with attribution to Team MPLT. The training text comes from a pre-release of the HPLT 4.0 web collection and keeps the terms of its sources.
The training and evaluation recipes are in the project repository, which requires a University of Oslo login. The release maintainers are Team MPLT, University of Oslo.