Repository navigation
v0.9.0-testnet — binary weights, deterministic sampling, licensed DistilGPT-2
v0.9.0-testnet — binary weights, deterministic sampling, licensed DistilGPT-2
This release turns the decoder runtime from a small demo into a production-shaped
foundation: large models can be loaded from a hashed binary file, generation can
use deterministic temperature/top-k/top-p sampling, and an Apache-2.0
82M-parameter GPT-2 is imported and parity-tested at 1,024-token context.
The public verinoo.com node still serves the same six small models. DistilGPT-2
is not served there: on CPU it can exceed a 1 s block and needs a GPU or an
optimistic-execution path.
Binary weights (.vnnw)
A model JSON can point at a binary tensor file instead of inlining tensors:
"weightsFile": "distilgpt2.vnnw",
"weightsSha256": "…"- 48-byte header:
VNNW, version, payload length, SHA-256 of the payload. - Payload: Q16.16 tensors as little-endian
i32, in the JSON field order. - The loader verifies magic, version, length, payload hash and declared
weightsSha256; a single tampered byte is rejected. - Inline JSON weights still work for small models.
- The current loader copies the payload into
Vec<i32>; zero-copymmapis the
next optimization, not in this release.
Deterministic sampling
sampling in the model JSON now takes integers:
"sampling": { "temperatureMilli": 800, "topK": 40, "topPMilli": 900, "seed": 7 }temperatureMilli: 0is the old greedy path.- Top-k and nucleus filtering; logits and probabilities stay in fixed point.
- A SplitMix64 integer PRNG seeded by
seed; the same prompt, weights and seed
produce the same token ids on every node. - Tests prove repeated sampling is byte-identical, cold sampling equals greedy,
and top-k1equals greedy. - Sampling is fixed in the model file. There is no per-task API override or
receipt commitment yet; every node and verifier must load the same file.
DistilGPT-2 import
scripts/import_distilgpt2.py downloads the official Apache-2.0 checkpoint and
writes:
models/distilgpt2.vnnw— 327.7 MB, 81,912,576 Q16.16 parameters;models/distilgpt2.json— metadata, GPT-2 byte-BPE tokenizer, 1,024 context;models/distilgpt2.test.json— float-reference greedy vectors.
Six layers, 768 hidden, 12 heads, 3,072 FFN, tied embeddings, GPT-2 sqrt
attention scaling and gelu_new. The Q16.16 runtime matches the float reference
for 16 greedy tokens on 3 prompts. The model files are gitignored and are not in
this tarball (the script downloads them).
On the development Mac, release mode loads the binary and generates 48 tokens in
2.62 s (about 40 ms/token including load). The 1-CPU VPS is slower, so this is a
GPU/optimistic-execution target, not a live-node model.
Verification
- 124 Rust tests and 20 Stripe tests pass on macOS; clippy is clean.
- The locked Linux node build succeeds on x86_64, and the 34 runtime tests pass
in release mode on Linux. VNN_TEST_DISTILGPT2=1 cargo test -p verinoo-runtime distilgpt2_binary
reproduces the float greedy tokens from the binary model.- The existing TinyStories-1M decoder and claims/transformer classifiers still
pass their parity and demo checks. scripts/demo-claims.shstill passes 8/8 against the live node.
Download
verinoo-node-v0.9.0-testnet-x86_64-linux.tar.gz contains the stripped binary,
the claims/transformer/synthetic-decoder models, the demo/import/billing scripts
(including import_distilgpt2.py), both SDKs, node.env.example, LICENSE, and
README.txt.
Not included: TinyStories-1M weights (no stated license) and DistilGPT-2 weights
(328 MB; download with the import script).
Still not claimed
- No production LLM serving: GPU execution, batching, streaming, safety
filters, request queues, 7B+ models and arbitrary-checkpoint import (LLaMA /
SentencePiece) are not implemented. - No mmap: binary weights are copied into memory on load.
- No per-task sampling commitment: sampling is model-level and not separately
bound in the receipt. - No LLM-scale verification: ADR 005 only; full re-execution remains the live
mechanism. - No BFT finality, HA/failover, snapshot sync or on-chain validator removal:
design ADRs only. - Not trustless, not operator-blind, not ZK-proven.
- No token. Fiat invoicing is a script and a manual finalize step.
License: AGPL-3.0.