Views
No views yet
| Corpus | Size | Selected Languages | Highlights |
|---|---|---|---|
| The Nordic Pile | 1.2 TB raw text | sv, no, da, is | Nine diverse categories (CC, Wikipedia, Books, Code, etc.), filtered and deduplicated for high quality |
| SWEb | 1 T+ tokens (~3.6 TB) | sv, no, da, is | 98 Common-Crawl snapshots with model-based HTML extraction; 1.2 B documents |
| Setting | Value |
|---|---|
| Parameters | 150 M |
| Context length | 8 192 tokens (RoPE + local-global attention) |
| Tokens processed | 1.20 × 1012 |
| Tokens per batch | 1 572 864 |
| Global batch | 192 sequences (micro-batch = 3) |
| Optimizer & schedule | Decoupled StableAdamW, lr 2 e-4, cosine decay (1 % warm-up) |
| Precision | AMP-bf16 |
| Hardware | 8 nodes × 8 AMD MI250X GPUs (64 GPUs) on the EuroHPC LUMI-G system |
1[token=1198511677292/1198510347252]:
2 Train time/batch: 873585
3 Train time/sample: 167728320
4 Train time/batch_in_epoch: 3558
5 Train time/sample_in_epoch: 683136
6 Train time/token: 1198510256276
7 Train time/token_in_epoch: 4882888303
8 Train trainer/device_train_microbatch_size: 3
9 Train loss/train/total: 0.9966
10 Train throughput/batches_per_sec: 1.3117
11 Train throughput/samples_per_sec: 251.8442
12 Train throughput/device/batches_per_sec: 0.0205
13 Train throughput/device/samples_per_sec: 3.9351
14 Train throughput/tokens_per_sec: 1804244.5198
15 Train throughput/device/tokens_per_sec: 28191.3206
16 Train time/train: 184.5555
17 Train time/val: 0.0000
18 Train time/total: 184.5555
19 Train lr-StableAdamW/group0: 0.0000
20 Train lr-StableAdamW/group1: 0.0000token_type_ids).1from transformers import pipeline
2unmasker = pipeline('fill-mask', model='AI-Sweden-Models/ModernBERT-base')
3unmasker("Huvudstaden i Sverige är [MASK].")1[{'score': 0.0629318505525589,
2 'token': 2961,
3 'token_str': ' Stockholm',
4 'sequence': 'Huvudstaden i Sverige är Stockholm.'},
5 {'score': 0.03635135293006897,
6 'token': 49763,
7 'token_str': 'awesome',
8 'sequence': 'Huvudstaden i Sverige är awesome.'},
9 {'score': 0.03006783314049244,
10 'token': 751,
11 'token_str': ' stor',
12 'sequence': 'Huvudstaden i Sverige är stor.'},
13 {'score': 0.029827557504177094,
14 'token': 71,
15 'token_str': 'a',
16 'sequence': 'Huvudstaden i Sverige är a.'},
17 {'score': 0.019739385694265366,
18 'token': 79,
19 'token_str': 'i',
20 'sequence': 'Huvudstaden i Sverige är i.'}]