Run this model with HF Jobs

Run bellm-by/bellm-12b-preliminary on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/bellm-by/bellm-12b-preliminary. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/bellm-by/bellm-12b-preliminary on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/bellm-by/bellm-12b-preliminary. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/bellm-by/bellm-12b-preliminary. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

BeLLM — 12B preliminary

BeLLM is a Belarusian base language model, built by continued pre-training (CPT) of Gemma 4 12B on 9.9B tokens of Belarusian text and replay data. Training used a constant learning rate with no decay phase; the released weights are the average of the last five checkpoints.

This is a text-completion model. It is not instruction-tuned and has no chat template.

Training

Parameter Value
Training tokens 9.898B
Batch size 240 × 4,096 tokens
Learning rate 2e-5, constant after a 150-step warmup
Final weights Average of 5 checkpoints from the last 850 steps (no decay phase)
Gradient clipping 1.0
Framework Megatron-LM, all parameters updated
Hardware 16 × NVIDIA GH200, 1,513 GPU-hours

Data

Source Repeats Tokens (B) Share
HPLT v4.0, standard orthography ×2 3.708 37.46%
Books (own scrape) ×2 1.634 16.51%
News (own scrape) ×2 1.138 11.50%
Wikipedia ×2 0.302 3.05%
Taraškievica ×1 0.603 6.09%
Łacinka ×1 0.008 0.08%
Belarusian subtotal 7.393 74.69%
English (Nemotron-CC-v2.1) ×1 1.480 14.96%
Math (Nemotron-CC-Math-v1) ×1 0.364 3.68%
Python (stack-edu) ×1 0.364 3.68%
Russian (FineWeb2-HQ-Plus) ×1 0.296 2.99%
Replay subtotal 2.505 25.31%
Total 9.898 100%

Belarusian data was cleaned and deduplicated with ReMova. Token counts use the Gemma 4 tokenizer, exclude BOS, and include repeated samples

Evaluation

Benchmark Gemma 4 12B Gemma 4 31B Qwen3.5 35B-A3B Apertus 8B Prelude 9B Zorka Vieniera 12B BeLLm 12b (preliminary)
BPB ↓ 0.713 0.545 0.605 0.594 1.089 0.570 0.507
be_pairs 0.762 0.819 0.787 0.763 0.581 0.845 0.925
Lexicon 0.653 0.640 0.607 0.653 0.487 0.873 0.907
Proverbs 0.180 0.375 0.211 0.102 0.039 0.242 0.711
Analogy 0.430 0.875 0.705 0.627 0.251 0.797 0.732
INCLUDE-know 0.326 0.457 0.413 0.370 0.217 — 0.500
INCLUDE-MC 0.347 0.439 0.417 0.320 0.316 0.331 0.353
Riddles 0.340 0.564 0.479 0.319 0.255 0.340 0.447
BelGLUE 0.697 0.835 0.791 0.606 0.541 — 0.699
PIQA (be) 0.663 0.755 0.786 0.500 0.449 0.725 0.571
PIQA (en) 0.694 0.755 0.755 0.561 0.653 — 0.643
eng→bel 55.9 59.4 55.5 55.0 24.9 57.7 59.3
rus→bel 60.2 63.0 60.8 60.9 28.5 61.8 63.1
bel→eng 62.2 63.9 62.5 62.2 53.4 62.5 61.7

The be_pairs benchmark includes our own minimal grammatical pairs, which will be released separately with BelEval.

Bold indicates the best reported result. Lower BPB (bits per byte) is better; higher scores are better for all other metrics.

Usage

pip install -U transformers torch accelerate
from transformers import AutoTokenizer, Gemma4UnifiedForCausalLM

model_id = "belllm-by/gemma-4-pt-mg-500-750-1000"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = Gemma4UnifiedForCausalLM.from_pretrained(
    model_id, device_map="auto", dtype="auto"
)

inputs = tokenizer("Беларуская мова — гэта", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Limitations

  • Evaluation contamination: Benchmark contamination in the original Gemma training data cannot be ruled out. Existing Belarusian benchmarks remain limited.
  • No ablations: Computational constraints prevented systematic hyperparameter tuning, ablation studies and evaluation across multiple seeds.
  • Checkpoint merging: Merging was not compared against conventional learning-rate decay.
  • Privacy: No personally identifiable information (PII) filtering was applied. The model may reproduce personal information from training data.
  • No instruction tuning: This release is a base model intended for text completion and further fine-tuning.

Trained on the Olivia supercomputer, with resources provided by Sigma2 – the National Infrastructure for High-Performance Computing and Data Storage in Norway

Downloads last month
4
Safetensors
Model size
12B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for bellm-by/bellm-12b-preliminary

Finetuned
(104)
this model

Datasets used to train bellm-by/bellm-12b-preliminary