/ Модель

Характеристики

Лицензия
MIT
Библиотека
gguf
Опубликована
15 ноя 2026

ToKpS-23.9K

Генерация текстаТекст → текст3 профессии

Тестовая модель с 23,9 тыс. параметров, которая повторяет токен `toks` для измерения скорости генерации в llama.cpp и ik_llama.cpp.

1 347скачиваний за 30 дней5лайковвеса обновлены15 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

ToKpS-23.9K — тестовая модель puyokura для измерения скорости декодирования в llama.cpp и ik_llama.cpp. Это не языковая модель: её трансформер служит технической оболочкой, а логиты настроены так, чтобы при генерации повторялся один токен — `toks`.

Модель принимает текстовый промпт, включая произвольный UTF-8, и генерирует `toks` до достижения лимита генерации или контекста. Архитектура включает один блок, размерность модели 32, один attention head и контекст 1024 токена; всего 23 904 параметра. В репозитории представлены варианты GGUF, включая BF16, F16, F32 и несколько типов квантования.

Модель предназначена для замеров пропускной способности декодирования на CPU и GPU без влияния поведения полноценной языковой модели. Результаты зависят от оборудования, сборки и настроек движка; автор отмечает заметный разброс измерений. Perplexity для модели не имеет смысла, шаблон чата отсутствует. Лицензия — MIT.

Сценарии применения

  • измерение скорости декодирования llama.cpp на CPU
  • сравнение пропускной способности генерации на CPU и GPU
  • проверка производительности сборки llama.cpp
  • бенчмарк скорости генерации токенов без влияния языкового моделирования

Ограничения

Это не языковая модель: она повторяет только токен `toks`, поэтому perplexity бессмысленна, а шаблон чата отсутствует. Скорость зависит от оборудования, сборки и параметров запуска; измерения могут заметно различаться.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

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.0
  • output.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.

enginebuildmedian tok/s
mainline llama.cpp, CPUb124138,220
mainline llama.cpp, CUDAb124133,470
ik_llama.cpp, CPU523712,686
ik_llama.cpp, CUDA52372,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. perplexity is meaningless on it.
  • The chat template is absent on purpose; use /completions or llama-cli -p.
  • In ik_llama.cpp's CUDA build, d_model must be a multiple of 32 or the RMSNorm kernel asserts (ncols % WARP_SIZE == 0). That is why this model is d_model=32 rather 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.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

llama.cpp

Нельзя запустить

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

Ревизия весов
51a9a28

0 моделей