Back to directory

Atome LM

A reference implementation of a ternary-weight tiny language model with a bit-exact Python-to-C99 inference engine, sized to run inside a microcontroller's RAM budget.

Atome LM

Atome LM combines three published ideas into one integration: ternary weights following BitNet b1.58, a hybrid state-space, sparse-attention and local-convolution block routed per token following Hymba and MossNet, and a byte tokenizer at very small scale. The repository provides a complete path from training through ternary export, base-3 weight packing, and a C99 inference engine, with bit-exact parity between the Python and C implementations enforced by tests.

A default 60K-parameter model can be trained from the included script in roughly 30 minutes on a CPU, or a bundled 944K-parameter checkpoint can be run immediately; the README describes that checkpoint as a narrow, sometimes-incoherent research demo meant to show the architecture runs, not a quality benchmark. Its QEMU ARM Cortex-M3 emulation matches FP32 to the expected precision, and the project also demonstrates real hardware inference on a physical ESP32-WROOM-32 board.

Training code, the C inference engine, benchmarks and trained weights are released under Apache-2.0; a separate paid secure-boot integration package is offered outside this repository.

More in Models

See all 405
  • mini-AGI

    github.com

    A continual learning language model that trains from scratch on a single 8 GB VRAM GPU, assembling its own architecture and adapting its size to the hardware and data available rather than shipping as a fixed pretrained model.

  • An open-source contrastive-embedding pipeline that maps technical CVE vulnerability descriptions to formal cybersecurity compliance controls in NIST SP 800-53 and CMMC, published with its model generation, fine-tuning and evaluation code.

  • peekaboolean

    github.com

    A small vision-language model, fine-tuned with LoRA on a 500-million-parameter backbone, that answers typed multiple-choice, ordinal-score and yes/no questions about an image with calibrated probabilities, in about 400 milliseconds on a laptop.