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
Model card for Antinet Codon Beta 1.0.0-beta.1
Browse files
README.md
CHANGED
|
@@ -1,3 +1,61 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
base_model: HuggingFaceTB/SmolLM2-135M-Instruct
|
| 7 |
+
tags:
|
| 8 |
+
- antinet
|
| 9 |
+
- esp32-s3
|
| 10 |
+
- microcontroller
|
| 11 |
+
- on-device
|
| 12 |
+
- air-gapped
|
| 13 |
+
- 2-bit
|
| 14 |
---
|
| 15 |
+
|
| 16 |
+
# Antinet Codon Beta
|
| 17 |
+
|
| 18 |
+
The 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.
|
| 19 |
+
|
| 20 |
+
| Field | Value |
|
| 21 |
+
|---|---|
|
| 22 |
+
| Name | Antinet Codon Beta |
|
| 23 |
+
| Version | `1.0.0-beta.1` (tag `v1.0.0-beta.1`) |
|
| 24 |
+
| File | `antinet-codon-1.0.0-beta.1-54m-2bit.bin` |
|
| 25 |
+
| SHA-256 | `fbbbad2d501a141888368de6262d61dade60ea9e3104d7db43727937c3f10c6c` |
|
| 26 |
+
| Size | 14,488,320 bytes |
|
| 27 |
+
| Parameters | 54 million stored, at 2 bits (ternary and 2-bit weights, int8 key-value cache) |
|
| 28 |
+
| Shape | 20 layers, width 576, feed-forward 768, 8 query heads sharing 1 key-value head, 24,576-token vocabulary, 512-token context |
|
| 29 |
+
| Source | Distilled from SmolLM2-135M-Instruct by a third party; file `model/model-cp-chat-512.ellm` of `github.com/ViezeVingertjes/esp32s3-chat-llm` at commit `880b2d86662e251460691b8d09eea688782eec11` |
|
| 30 |
+
| Copies | `huggingface.co/Antinet/codon-beta`, commit `54fa3d1dfaef6b1cf2e647aed4b60f29c89f168d`; the source repository above. Antinet's build fetches either and checks the SHA-256 |
|
| 31 |
+
| Runs on | Antinet's ESP32-S3 chat firmware: an ESP32-S3 with 16 MB of flash and 8 MB of octal PSRAM |
|
| 32 |
+
| 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 |
|
| 33 |
+
|
| 34 |
+
## Running it
|
| 35 |
+
|
| 36 |
+
The 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.
|
| 37 |
+
|
| 38 |
+
1. Check the download: `shasum -a 256 antinet-codon-1.0.0-beta.1-54m-2bit.bin` must print the SHA-256 above.
|
| 39 |
+
2. Sign it with the site's key: `anet-sign micro-model <file> --key <signing-key.json> --out <signature>`.
|
| 40 |
+
3. Flash the chat firmware, built with that key's device key: `micro/scripts/run-esp32s3-suite --chat <device key> --board <port>`.
|
| 41 |
+
4. Upload and chat from the host the board is plugged into:
|
| 42 |
+
`anet-micro-link --port <port> put <file> --signature <signature> --kind chat`, then
|
| 43 |
+
`anet-micro-link --port <port> chat`.
|
| 44 |
+
|
| 45 |
+
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.
|
| 46 |
+
|
| 47 |
+
## What it is for
|
| 48 |
+
|
| 49 |
+
Small talk at a machine: greetings and short questions, answered on the chip.
|
| 50 |
+
|
| 51 |
+
## What it cannot do
|
| 52 |
+
|
| 53 |
+
- 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.
|
| 54 |
+
- It holds 512 tokens of conversation; older turns are dropped as a conversation grows.
|
| 55 |
+
- A reply stops at 256 tokens.
|
| 56 |
+
- It cannot be retrained or rebuilt by Antinet: the tool that writes its file format is not published.
|
| 57 |
+
- 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.
|
| 58 |
+
|
| 59 |
+
## Accuracy
|
| 60 |
+
|
| 61 |
+
Not measured by Antinet yet. The source reports an IFEval score of 20.8, against 29.9 for the model it was distilled from. 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.
|