MinVoid-2.0

A 2.98M-parameter byte-level causal language model trained from scratch - no pre-tokenization. Input text is encoded directly as UTF-8 bytes.

MinVoid-2.0 uses the same 9-layer GLA + XSA architecture as MinVoid-1.8 at the same 768-byte context, trained for 3.8B byte-tokens on a rebuilt corpus pipeline with document-aware training windows. The released weights come from the best document-stratified validation checkpoint rather than automatically using the final step.

  • Vocab: 258 tokens = bytes 0-255 + BOS 256 + EOS 257
  • Context: 768 tokens
  • Architecture: decoder-only transformer with GLA (Grouped Latent Attention, arXiv:2505.21487) and XSA (Exclusive Self-Attention, arXiv:2603.09078)

Benchmarks (0-shot, Open SLM Leaderboard protocol)

Benchmark Score
HellaSwag (acc_norm) 28.36
ARC-Easy (acc_norm) 30.22
ARC-Challenge (acc_norm) 21.59
Combined ARC 25.90
PIQA (acc_norm) 51.96
ArithMark-3 (acc_norm) 35.70
Int Index 5.17

Evaluated with lm-evaluation-harness (HellaSwag / ARC / PIQA) and the official ArithMark-3 scoring protocol. Combined ARC = mean(ARC-E, ARC-C) before normalization; N(score, chance) = 100*(score-chance)/(100-chance) with chance 25/25/50/25; Int Index = (HellaSwag + ARC + PIQA + 0.65*ArithMark-3)/3.65.

MinVoid-2.0 vs the Open SLM Leaderboard - top 4 per size class Int Index ranking

Architecture

Component Value
Parameters 2,984,000
d_model 128
Layers 9
Query heads 4 (d_head 32)
Latent heads (GLA) 2 (d_latent 64) - KV cache stores latents: 128 vals/token/layer
QK norm RMSNorm on q/k before RoPE
XSA attention output minus its projection onto the self value vector
FFN SwiGLU, hidden 704 (5.5x d_model)
Norm / Pos parallel-block RMSNorm (one shared norm feeds attn + FFN) / RoPE (theta 10000)
Init muP-style: Linear std = 0.02 x sqrt(d_model/fan_in), residual out-projs / sqrt(2L)
Embeddings tied input/output

Tokenizer

Byte-level. encode(s) = list(s.encode('utf-8')); decode(ids) = bytes(ids).decode('utf-8', errors='replace').

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

tok = AutoTokenizer.from_pretrained("Sqersters/MinVoid-2.0")
model = AutoModelForCausalLM.from_pretrained(
    "Sqersters/MinVoid-2.0", trust_remote_code=True
).eval()

ids = tok("Once upon a time", return_tensors="pt").input_ids
out = model.generate_bytes(ids, max_new_tokens=200, temperature=0.8, top_k=40)
print(tok.decode(out[0], skip_special_tokens=True))

Or run the bundled example: python run.py "your prompt".

Training data

Mixed English text from the project's corpus directory: light novels, TinyStories, wikitext-103, wikipedia-markdown, OASST1, alpaca/dolly instruction data, everyday-conversation corpora, GSM8K-style math word problems, MathInstruct, OpenMathReasoning-CoT, dictionary/quotation corpora, and science/QA data including sciq, openbookqa, qasc, commonsense_qa, camel-ai physics/chemistry/biology, squad, boolq, trivia_qa, and cosmopedia-100k. Benchmark/eval splits are excluded.

The 5.14 GB corpus is indexed per document: structured QA records are stored as one JSON document per question, unstructured text is packed at blank-line boundaries, and only exact duplicate complete documents are dropped. Multiple choice questions are written in the evaluator's format (Question: ... / Answer: answer text); supported questions additionally emit a no-support variant so the model trains both lookup and recall answering.

Training

  • Ran 154,622 optimizer steps: approximately 3.800B sampled byte tokens
  • Batch 32 x sequence 768, bf16 autocast, cosine schedule, torch.compile
  • Exported the best validation checkpoint from step 153,001 (approximately 3.760B sampled tokens; validation loss 0.8272)
  • Training windows are document-aware: windows never cross document boundaries and EOS is a trained target after each document's final byte
  • Validation is a fixed multi-batch sample of a deterministic ~0.5% document-stratified holdout spread across the whole corpus
  • FastNorMuon+AdamW: NorMuon (lr 0.02, momentum/beta2 0.95, wd 0.01) on all hidden 2D weights with Newton-Schulz batched over same-shape buckets; Adam (lr 6e-4) on the tied embedding and norm gains
  • Trained on an AMD RX 7600 XT with ROCm (torch 2.15 / ROCm 10.2)

What's new vs MinVoid-1.8

  • Longer training: approximately 2.6B -> 3.8B sampled byte tokens
  • Document-aware windows: training windows never split or cross documents, so the model no longer learns cross-document transitions it never sees at inference; very short documents are EOS-terminated and padded
  • EOS is trained: the end-of-sequence token is now a supervised target, so generation can actually stop
  • Evaluator-aligned QA format: MCQ examples are written as the evaluator scores them (Answer: answer text rather than option letters), with dual support/no-support variants for supported questions
  • Fairer validation and checkpointing: validation documents are spread deterministically across the corpus instead of coming from a small tail slice; the final step is always validated; checkpoints carry full RNG state
  • Correctness fixes in the modeling code: attention_mask and position_ids are honored (left padding works), and generation slides the latent cache at the trained context instead of growing past it
  • Evaluation protocol: both scorers truncate the shared context once per question, reserving room for the longest continuation, so answer length can no longer change the context a choice is scored against

Limitations

This is a very small byte-level base model, not an instruction-tuned chat model. The 768-byte context is much shorter semantically than 768 subword tokens in a conventional tokenizer-based model.

License

Model weights: Apache-2.0 (see LICENSE.md).

Downloads last month
-
Safetensors
Model size
2.98M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including Sqersters/MinVoid-2.0

Papers for Sqersters/MinVoid-2.0