Skip to content

v0.4.0-testnet — a real transformer runs in consensus

Choose a tag to compare

@iguha0 iguha0 released this 15 Nov 04:06
· 68 commits to main since this release

v0.4.0-testnet — a real transformer runs in consensus

The chain no longer executes only dense classifiers. intent-transformer-v1
runs a pre-norm transformer encoder classifier during block application,
with encrypted inputs and a receipt that binds its weights.

This is an encoder classifier, not a generative LLM. There is no decoder,
KV cache, sampling or BPE tokenizer yet.

What now runs

  • One transformer encoder layer: Q/K/V/O projections, multi-head attention,
    layer norm, ReLU FFN, residual connections and a classifier head.
  • 5,508 Q16.16 parameters, hidden 16, 2 heads, width 32 FFN, vocabulary 187,
    context 12, CLS pooling.
  • Fixed-point exponential attention softmax:
    exp(-z) = 2^-n * exp(-r) with a five-term Taylor series and integer shifts.
  • Integer layer norm with biased variance, integer square root and a Q16.16
    reciprocal.
  • 80/80 label parity with the float PyTorch reference on every corpus
    example. Train 100%, validation 90%, held-out test 80% on a 10-example split.
    The corpus is 80 examples; treat accuracy as a demonstration.

Live demo

https://verinoo.com/v1/models now lists three models, including
intent-transformer-v1.

verinoo-node wallet generate --output key.json
ADDR=$(jq -r .address key.json)
curl -s -X POST https://verinoo.com/faucet \
  -H 'content-type: application/json' -d "{\"address\":\"$ADDR\"}"
sleep 3
verinoo-node infer --key-file key.json --model intent-transformer-v1 \
  --input "my parcel is delayed again" --node https://verinoo.com
./scripts/verify.sh <taskId> --node https://verinoo.com

The receipt reports modelId: intent-transformer-v1 and weights hash
8b5aad9551d14eb8….

Train and export

python3 scripts/train_transformer.py

The script uses PyTorch, a deterministic seed, early stopping and writes both
the quantised model and float-reference parity vectors:

  • models/intent-transformer-v1.json
  • models/intent-transformer-v1.test.json

Every validator must load the same file. A different transformer changes the
result hash and peers reject the block, exactly like a graph-model mismatch.

Download

verinoo-node-v0.4.0-testnet-x86_64-linux.tar.gz contains the stripped binary,
both models, the parity fixture, node.env.example, LICENSE, README.txt,
and both SDKs. Verify with SHA256SUMS.v0.4.0.

Still not claimed

  • Not an LLM. No decoder, causal mask, KV cache, sampling, BPE/WordPiece or
    ONNX attention import. A Llama-class checkpoint cannot run.
  • Not trustless. One operator, round-robin leader, no BFT finality.
  • Not operator-blind. Inputs are encrypted to the validator set; every
    validator can decrypt.
  • Not ZK-proven. Verification is re-execution; the dispute game is test-only.
  • No snapshot sync, automatic HA or on-chain validator removal.
  • No token or fiat settlement. Invoicing is manual from the usage CSV.

License: AGPL-3.0.