ToKpS-23.9K
A model that does exactly one thing: print toks over and over, as fast as the
runtime will let it. There is no language modelling here. The transformer is a
decoy that keeps llama.cpp's graph bug-free while the logits are hard-wired to a
single token.
Use it to measure raw decode throughput (tok/s) of a llama.cpp build, a CPU, or a GPU, without the noise of a real model.
How it works
The vocabulary is 256 SPM byte tokens (<0x00>…<0xFF>), three control tokens
(<s>, </s>, <unk>), and one normal token that spells the output word. Any
prompt tokenizes to byte tokens, so arbitrary UTF-8 input is accepted.
The weights are fixed:
token_embd.weight— every row is 1.0, so the residual stream is 1.0 for any input- every attention and FFN matrix — all zeros, so the layers add nothing
output_norm.weight— 1.0, epsilon 1e-5, so the hidden state stays 1.0output.weight— the output word's row is +4.0, every other row −4.0
The output word's logit therefore exceeds every other token by 2 × 4.0 × d_model,
which is 256 for d_model=32. No temperature, top-k, top-p, min-p, or repeat
penalty can select anything else, and EOS is never chosen, so generation runs
until n_predict or the context limit.
Geometry: 1 block, d_model=32, n_ff=32, 1 head, n_ctx=1024, RMSNorm ε 1e-5.
That is 23,904 parameters (23.9K).
Files
ToKpS-23.9K-<quant>.gguf. Every llama.cpp quantization type that the released
quantizer can produce from this base is included. Format is <quant> in the
llama.cpp spelling (Q8_0, Q4_K_M, IQ4_XS, …). Because the base is only 55 KB,
most quants land in the same 25–33 KB range; the labels matter more than the size.
Q1_0 is absent: llama-quantize refuses it (ncols 32 not divisible by 128), and
there is no fallback tensor type for q1_0.
Running
llama-cli -m ToKpS-23.9K-Q8_0.gguf -p hi -n 20000 -st --no-warmup --perf -t 1 -fa off \
--samplers temperature --temp 0
-t 1 and -fa off were the fastest settings on the test machine; more threads
made it slower. llama-server works too; use -a ToKpS-23.9K if you want the API
model id to match the file name.
Measured throughput
Windows 11, Ryzen 7 5700X (8C/16T), RTX 5060 Ti 8 GB, llama.cpp b12413 and
ik_llama.cpp 5237. -t 1, 20,000 tokens, 5 repeats, median.
| engine | build | median tok/s |
|---|---|---|
| mainline llama.cpp, CPU | b12413 | 8,220 |
| mainline llama.cpp, CUDA | b12413 | 3,470 |
| ik_llama.cpp, CPU | 5237 | 12,686 |
| ik_llama.cpp, CUDA | 5237 | 2,850 |
ik_llama.cpp on the CPU is the fastest configuration found. Both CUDA paths are slower than CPU here, because a 24K-parameter graph is dominated by launch and synchronization overhead, not by arithmetic. Run-to-run spread is wide (often ±20%), so treat single numbers as indicative.
dist/release/_verify_rates.json in the source repo holds one measurement per
file and engine.
Verification
Every published file was loaded by three engines (mainline CPU, ik CPU, ik CUDA)
and generated 200 tokens; the output was checked to contain nothing but toks.
All 33 files passed in all three engines.
Caveats
- This is not a language model.
perplexityis meaningless on it. - The chat template is absent on purpose; use
/completionsorllama-cli -p. - In ik_llama.cpp's CUDA build,
d_modelmust be a multiple of 32 or the RMSNorm kernel asserts (ncols % WARP_SIZE == 0). That is why this model isd_model=32rather than the 8 used in the CPU-only build.
Source
Build script and benchmark harness:
python tools/make_tok_model.py --word toks --model-name ToKpS-23.9K \
--d-model 32 --ffn 32 --layers 1 --heads 1 --ctx 1024 --dtype f16
python tools/make_release.py --base <that file> --params-label 23.9K
python tools/verify_release.py --word toks
python tools/bench_matrix.py --repeats 5
Rebranding is a build flag: --word changes the emitted text, --model-name
changes the embedded general.name, and the archive name is set by
--params-label when the release set is generated.