MinVoid-2.0
a byte-oriented language model with GLA+XSA architecture
2 min readupdated
MinVoid-2.0 is an ultracompact language model with 2.98M parameters, trained from scratch at the byte level without preliminary tokenization (text is encoded directly in UTF-8). It uses a combination of GLA (Grouped Latent Attention) and XSA (Exclusive Self-Attention) architectures with a 768-byte context and was trained on a corpus of 3.8B byte tokens. The model differs from its predecessors in having improved validation quality, support for the EOS (end-of-sequence) token for correct generation stopping, and fixed attention mask handling. It is suitable for researchers and developers exploring alternative tokenization approaches and efficient small language models (SLMs).
Key features
- Byte-level input without a tokenizer: the vocabulary consists of 258 tokens (bytes 0–255, BOS, and EOS).
- GLA + XSA architecture: a decoder featuring grouped latent attention and exclusive self-attention.
- Trained on 3.8B tokens: a structured corpus of texts, books, code, and math tasks was used.
- FastNorMuon+AdamW optimizer: a hybrid approach for training matrix weights and normalization parameters.
- Apache-2.0 license: open model weights are available for commercial and research use.
What you can do
- Run inference: generate text on raw bytes using the transformers Python library.
- Explore SLMs: study how byte-level models work without standard tokenizers like BPE.
- Benchmark: evaluate model metrics on HellaSwag, ARC, and PIQA tasks.
Example
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))
Read more
DetailsBenchmarks (0-shot): HellaSwag — 28.36, ARC-Easy — 30.22, ARC-Challenge — 21.59, PIQA — 51.96, Int Index — 5.17.
Hardware requirements: training was performed on an AMD RX 7600 XT with ROCm.
Limitations: this is a base small-sized byte-level transformer rather than a chatbot; the 768-byte context is shorter than an equivalent token-based window.
Training details: 154,622 optimizer steps, batch size 32, context 768, bf16 autocast.










Comments