Model reference · open weights

Tokle-SPAB

NEW · this week LLMs techdotus Text gen 1 build Open weights 518 dl/mo

Tokle-SPAB is an open-weight language model from techdotus. Tokle-SPAB-3M (FP32) weighs 23 MB; the smallest configuration that runs it is RTX 3060 12 GB.

  • Tokle-SPAB-3M is a decoder-only text-generation model developed by techdotus that incorporates Static Pairwise Attention Bias to enhance token association.
  • The model features 2.91M trainable parameters and a 512-token context length, and it is trained exclusively on English data.
  • It is released under the MIT license.

Summary of the techdotus/Tokle-SPAB-3M model card, 2026-10-03

What it is

Released bytechdotus
Released2026-09-29
Parameters3M
VRAM23 MB for the weights

What it runs on

Memory and cards for Tokle-SPAB-3M (FP32)

23 MBweights, file size
5 MBcache per 1K tokens
442 MBruntime overhead, at least
512 tokenscontext max
CardRequests at onceContext maxMemory
512 each
RTX 3060 12 GB1000+all 51211.6 GB
RTX 4060 Ti 16 GB1000+all 51215.4 GB
RTX 3090 24 GB1000+all 51223.4 GB
RTX 4090 24 GB1000+all 51223.4 GB
RTX 5090 32 GB1000+all 51231.0 GB
L40S 48 GB1000+all 51244.0 GB
A100 80 GB1000+all 51278.2 GB
H100 80 GB1000+all 51278.1 GB
RTX PRO 6000 Blackwell 96 GB1000+all 51293.8 GB
DGX Spark (GB10) 128 GB unified1000+all 512107 GB
H200 141 GB1000+all 512138 GB
B200 180 GB1000+all 512176 GB
Memory needed at each load
Requests at once512 tokens each
1467 MB
5478 MB
8486 MB
16507 MB
32549 MB
64634 MB

One card, with vLLM's small-card settings.

From the model card

What techdotus says about Tokle-SPAB

Read the model card

Model Summary

Tokle-SPAB-3M is a decoder-only language model trained on 12B tokens, with 2.91M trainable parameters and 8.39M frozen SPAB parameters, for a total of 11.3M parameters. Its main architectural addition is SPAB (Static Pairwise Attention Bias), a frozen table of token-pair association scores built from Pointwise Mutual Information (PMI) over the training corpus and added to the attention logits.

For every query-key pair, SPAB hashes the two token IDs into the table, pulls out their PMI value, multiplies it by a learned per-head scale, and adds it to the attention logits before softmax. The bias ignores position and depends only on which tokens are involved, so the model starts training already knowing which tokens tend to co-occur. It only has to learn how much to trust that prior.

Model Architecture

ParameterValue
ArchitectureCustom decoder-only transformer + SPAB
Layers9
Hidden size (d_model)144
Attention heads3
KV heads (GQA)1 (multi-query attention)
Head dim48
FFN intermediate size432
Max sequence length512
Trainable parameters2,908,947
Frozen SPAB table8,388,608 (float32 buffer)

How to use

This model uses a custom architecture, so it needs trust_remote_code=True.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "techdotus/Tokle-SPAB-3M"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True).eval()

ids = tok("The climate change", return_tensors="pt")
with torch.no_grad():
    out = model.generate(**ids, max_new_tokens=32, do_sample=False, repetition_penalty=1.3)  # greedy
print(tok.decode(out[0], skip_special_tokens=True))

Benchmark Results

All scores are 0-shot acc_norm, using the Open SLM Leaderboard methodology:

HellaswagARC-EasyARC-ChallengePIQAArithmark-3
27.22%34.68%24.49%54.95%41.70%

Training Data Details

We trained on a curated mixture with a strict cleaning pipeline that also removed topics not useful for a model of this size.

SourcePercentage
FineWeb-Edu43.1%
Cosmopedia24.3%
OpenMathInstruct-213.5%
Tiny Strange Textbooks9.0%
MegaScience (medicine & biology, custom curated)5.0%
High-Quality English Sentences3.0%
ScienceQA1.2%
Orca-Math Word Problems 200k0.9%
Total100%
  • Tokenizer: all data was tokenized with the model's 5,048-token BPE tokenizer, and 1% was held out for validation.
  • Blending: sources were blended per dataset using the weights above.

Limitations

  • Tiny model: with ~2.9M trainable parameters, ~8.39M frozen SPAB parameters and 144-dim hidden states, generations are often repetitive, incoherent or factually wrong. The model is a research artifact for studying small-scale LMs, not an assistant.
  • Short context: 512 tokens maximum. RoPE tables are not built beyond that length.
  • English only: trained on English web, educational, synthetic and math text.
  • Not instruction-tuned or safety-aligned: it may reproduce biases present in web data.

Licenses

Model weights and code: MIT.

Citation

@misc{tokle2026,
  title        = {{Tokle-SPAB-3M}: Pointwise Mutual Information as an Inductive Bias for Self-Attention},
  author       = {{Tech.us Team}},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/techdotus/Tokle-SPAB-3M}}
}

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms