codon-beta / README.md
Ibz04's picture
Add config.json and library_name for download counting
24cf7f5 verified
|
Raw History Blame Contribute Delete
2.24 kB
---
license: apache-2.0
library_name: antinet
language:
- en
pipeline_tag: text-generation
tags:
- antinet
- esp32-s3
- microcontroller
- on-device
- air-gapped
- 2-bit
---
# Antinet Codon Beta
A 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 |
|---|---|
| Name | Antinet Codon Beta |
| Version | `1.0.0-beta.1` (tag `v1.0.0-beta.1`) |
| 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 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>`.
3. Flash the chat firmware, built with that key's device key: `micro/scripts/run-esp32s3-suite --chat <device key> --board <port>`.
4. Upload and chat from the host the board is plugged into:
`anet-micro-link --port <port> put <file> --signature <signature> --kind chat`, then
`anet-micro-link --port <port> chat`.
Replies stream as they are generated.