Instructions to use BigFamTLLM/ml-base-anneal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BigFamTLLM/ml-base-anneal with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BigFamTLLM/ml-base-anneal")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BigFamTLLM/ml-base-anneal") model = AutoModelForCausalLM.from_pretrained("BigFamTLLM/ml-base-anneal", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BigFamTLLM/ml-base-anneal with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BigFamTLLM/ml-base-anneal" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BigFamTLLM/ml-base-anneal", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BigFamTLLM/ml-base-anneal
- SGLang
How to use BigFamTLLM/ml-base-anneal with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "BigFamTLLM/ml-base-anneal" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BigFamTLLM/ml-base-anneal", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "BigFamTLLM/ml-base-anneal" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BigFamTLLM/ml-base-anneal", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BigFamTLLM/ml-base-anneal with Docker Model Runner:
docker model run hf.co/BigFamTLLM/ml-base-anneal
ml-base-anneal
Multilingual model trained from scratch on 26B tokens (80% English, the rest Danish, German and Swedish) with a 64k tokenizer. Same architecture and compute as the Norwegian model, but no Norwegian in the training data.
This is the annealed version of ml-base: 916 extra steps on high-quality Bokmål and Nynorsk text, with the learning rate decayed to 0.
| Trained from | ml-base |
| Norwegian tokens seen | 0.48B |
| Tokenizer | multilingual, 64k |
| Parameters | 2.18B |
| Context length | 4,096 |
Base model only, not instruction tuned.
Results
NorEval 1.1:
| Task group | Metric | 0-shot | 1-shot |
|---|---|---|---|
| nob_language | em_first | 0.172 | 0.201 |
| nob_orthography | acc | 0.827 | 0.873 |
| nob_reading | f1 | 0.145 | 0.199 |
| nob_world | acc | 0.277 | 0.286 |
| nno_language | em_first | 0.312 | 0.355 |
| nno_world | acc | 0.270 | 0.278 |
Robustness (noisy versions of three NorEval tasks): 0.353 on clean input, -0.039 on average under noise.
Usage
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("BigFamTLLM/ml-base-anneal")
model = AutoModelForCausalLM.from_pretrained("BigFamTLLM/ml-base-anneal", dtype=torch.bfloat16)
inputs = tokenizer("Oslo er hovedstaden i", return_tensors="pt")
output = model.generate(**inputs, max_new_tokens=30)
print(tokenizer.decode(output[0]))
Training
- Qwen3 architecture: 36 layers, hidden size 2176, 34 attention heads (17 KV heads), tied embeddings.
- Megatron-LM on 8 GH200 GPUs on Olivia (Sigma2). Sequence length 4096, batch size 128, AdamW, peak learning rate 5e-4 with 2,000 warmup steps and no decay (1e-4 for the embedding-only stage).
- Data from HPLT 4.0. The Norwegian mix is 85% Bokmål and 15% Nynorsk.
- Tokenizer swap: tokens shared by both vocabularies keep their embedding, new tokens start from the mean of the old tokenizer's pieces.
- Annealing: 916 steps (0.48B tokens) of high-quality Bokmål and Nynorsk, linear decay to 0.
- Converted to Hugging Face format with Megatron-Bridge. The configs are adjusted so the model also loads in transformers 4.x.
Project
BigFamTLLM is a student project in IN5640 at the University of Oslo (autumn 2026). We trained Norwegian, Danish and multilingual models from scratch with the same architecture and budget, adapted the Danish and multilingual ones to Norwegian, and evaluated every checkpoint with and without annealing. All 50 models:
| As trained | Annealed | |
|---|---|---|
| Norwegian from scratch | no-base | no-base-anneal |
| Danish from scratch | da-base | da-base-anneal |
| Multilingual from scratch | ml-base | ml-base-anneal |
| Danish, embeddings only | da-emb | da-emb-anneal |
| Danish CPT checkpoints | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 |
| Multilingual, embeddings only | ml-emb | ml-emb-anneal |
| Multilingual CPT checkpoints | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 |
These are research models trained on web text. They can produce wrong or offensive output and are not meant for production use.
- Downloads last month
- 26
Model tree for BigFamTLLM/ml-base-anneal
Base model
BigFamTLLM/ml-base