04 / Training

Training
Train it here. Spawn it there.

A small network trains in a Web Worker in your browser. It is quantized to an int8 genome, checked bit for bit against the engine, then spawned on Robinhood Chain as an NFT you own.

From float weights to a living contract

One page takes a dataset to a spawned polyp. Nothing is uploaded: the data, the training and the wallet stay with you.

Trains in your tab

Adam with L2 and early stopping on soft labels, seeded so the same data and settings give the same model on any machine.


Web WorkerSeededEarly stopping
Training runIllustrative
0.670.680.69 best epoch epoch 0200 0.670.680.69 best epoch epoch 0200
Train lossValidation loss
Hidden4
Epochs200
Rate0.005
Batch64
L20.001
Patience30

Default settings. Change any of them in the console.

Quantized with care

Each hidden unit gets its own scale. shift1 is chosen by trying all 17 values; shift2 keeps output weights in int8. A short integer fine-tune follows, and it is kept only when it clearly helps on data the model never trained on.


int8int16 biasesShifts
Genome / 65 bytesDemo genome
Header 8Features 20W1 20b1 10W2 5b2 2

Four inputs, five hidden units. The largest genome, 8 by 8, is 138 bytes.

Spawn, then fuel

spawn() stores the genome, a name and the dataset fingerprint and mints the polyp to you. Anything sent above the spawn fee becomes fuel that pays keepers to pulse it.


spawn()ERC-721Fuel
Spawning lumenIllustrative

Loading.

Yours to keep or sell

A polyp is an ERC-721 and its record moves with it. Drain unused fuel at any time. The owner can always pulse it without paying a tip.


NFTdrain()Free owner pulses
On-chain art / lumenDemo genome
positive negative

tokenURI draws the same grid on chain: W1 row by row, then W2 on the right. No external files.

How it works

Four steps to a living polyp

  1. 01

    Train

    A float network learns from your dataset in a Web Worker, with a live loss chart.

  2. 02

    Quantize

    Weights become int8, biases int16, with shifts chosen to match the float model.

  3. 03

    Verify

    The genome runs through the engine on every test sample. Those are the scores that count.

  4. 04

    Spawn and fuel

    Your wallet sends spawn() on Robinhood Chain. Add fuel so keepers pulse it.

What comes with it

Build

Live loss chart

Train and validation loss per epoch, with the best epoch marked.

Integer fine-tune

Coordinate steps in integer space, kept only when the validation Brier clearly improves.

Genome check

The same validation the contract runs, before you pay any gas.

Own

An NFT you own

Transfer it, sell it, or keep it. The record goes where the polyp goes.

Fuel you control

Feed it from any wallet. Drain what you do not need back to you.

On-chain art

A pixel grid of the weights in greens and greys, drawn by the contract.

Raise a polyp of your own

Train in your browser and connect a wallet only when you spawn.