Instructions to use Antinet/codon-beta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Antinet
How to use Antinet/codon-beta with Antinet:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Update model card
Browse files13 unmodified lines141516171819202 unmodified lines2324252627282930313233343536372 unmodified lines404142434445464748495051525354555657585913 unmodified lines# Antinet Codon BetaThe smallest model of Antinet's family: a 54-million-parameter chat model at 2 bits that runs entirely on an ESP32-S3 microcontroller, with no network. It is for small talk at a machine, not for answers anyone acts on.| Field | Value ||---|---|2 unmodified lines| File | `antinet-codon-1.0.0-beta.1-54m-2bit.bin` || SHA-256 | `fbbbad2d501a141888368de6262d61dade60ea9e3104d7db43727937c3f10c6c` || Size | 14,488,320 bytes || Parameters | 54 million stored, at 2 bits (ternary and 2-bit weights, int8 key-value cache) || Shape | 20 layers, width 576, feed-forward 768, 8 query heads sharing 1 key-value head, 24,576-token vocabulary, 512-token context || Download | `huggingface.co/Antinet/codon-beta`, commit `54fa3d1dfaef6b1cf2e647aed4b60f29c89f168d`. Antinet's build fetches it from there and checks the SHA-256 || Runs on | Antinet's ESP32-S3 chat firmware: an ESP32-S3 with 16 MB of flash and 8 MB of octal PSRAM || Speed on the board | 2.3 to 2.5 tokens/s; the first reply text 3 to 5 s after a message; about 20 s to verify and load at start |## Running itThe file is not a format general tools read: it runs on Antinet's chat firmware, which verifies its signature before reading a byte of it.1. Check the download: `shasum -a 256 antinet-codon-1.0.0-beta.1-54m-2bit.bin` must print the SHA-256 above.2. Sign it with the site's key: `anet-sign micro-model <file> --key <signing-key.json> --out <signature>`.2 unmodified lines`anet-micro-link --port <port> put <file> --signature <signature> --kind chat`, then`anet-micro-link --port <port> chat`.Each reply streams as it is generated and ends with a record: the model's SHA-256, the prompt and reply token counts, the time each took, the context used and why the reply ended.## What it is forSmall talk at a machine: greetings and short questions, answered on the chip.## What it cannot do- Its facts are unreliable: it says Berlin is Germany's capital, but it also gives wrong numbers, wrong mechanisms and replies that drift from the question. Nobody may act on what it says.- It holds 512 tokens of conversation; older turns are dropped as a conversation grows.- A reply stops at 256 tokens.- It cannot be retrained yet: Antinet's training loop does not cover this format.- On the board it fills the 16 MB flash, so the board keeps no earlier version and runs no decision model beside it. Earlier versions come back by uploading them again from Antinet's model store.## AccuracyNo benchmark run yet. On the board, 10 fixed prompts gave the same replies, token for token, as the host build of the same runtime. Version `1.0.0` waits for a model Antinet has tested against its own bar.13 unmodified lines141516171819202 unmodified lines232425262728293031323334353637383940412 unmodified lines4445464713 unmodified lines# Antinet Codon BetaA chat model that lives entirely on a microcontroller. Antinet Codon Beta runs on a single ESP32-S3 chip, with no network, no cloud and no host doing the work: every word is generated on the chip itself.| Field | Value ||---|---|2 unmodified lines| File | `antinet-codon-1.0.0-beta.1-54m-2bit.bin` || SHA-256 | `fbbbad2d501a141888368de6262d61dade60ea9e3104d7db43727937c3f10c6c` || Size | 14,488,320 bytes || Parameters | 54 million, at 2 bits (ternary and 2-bit weights, int8 key-value cache) || Shape | 20 layers, width 576, feed-forward 768, 8 query heads sharing 1 key-value head, 24,576-token vocabulary, 512-token context || Runs on | Antinet's ESP32-S3 chat firmware: an ESP32-S3 with 16 MB of flash and 8 MB of octal PSRAM || Speed on the board | 2.3 to 2.5 tokens/s; the first reply text 3 to 5 s after a message |## Why it matters- **Fully on-device.** The chip holds the model and generates every reply. Nothing leaves the board.- **Signed and verified.** The firmware checks the model's signature at upload and at every start, before it reads a byte of it.- **Every reply on record.** Each reply ends with a record of the model's SHA-256, the token counts, the timings, the context used and why the reply ended.- **Deterministic.** The same message gives the same reply, token for token, on the board and on the host build of the same runtime.## Running it1. Check the download: `shasum -a 256 antinet-codon-1.0.0-beta.1-54m-2bit.bin` must print the SHA-256 above.2. Sign it with the site's key: `anet-sign micro-model <file> --key <signing-key.json> --out <signature>`.2 unmodified lines`anet-micro-link --port <port> put <file> --signature <signature> --kind chat`, then`anet-micro-link --port <port> chat`.Replies stream as they are generated.
README.md+11-23