KryonOSDocs

On-Device AI Overview

Technical specifications, architectures, and training pipelines for local INT8 neural networks on ESP32-S3.

KryonOS On-Device AI Documentation

Technical specifications, architecture diagrams, training pipelines, and deployment guides for neural network models running locally on ESP32-S3 silicon (e.g., N16R8 Octal PSRAM).


Directory Structure

Browse the full source files on GitHub: Documentation/OnDeviceAI-Docs.

Documentation/OnDeviceAI-Docs/
├── README.md                      # On-Device AI Hub Overview
├── Local_AI_API_Guide.md          # JavaScript Engine & C++ Kernel API Reference
├── Text-Models/                   # Autoregressive INT8 Transformer Models
│   ├── README.md                  # Text Model Development & Architecture Guide
│   ├── KryonAI_3M_Model_Trainer.ipynb  # Ready-to-run Google Colab Notebook (T4 GPU)
│   └── KryonAI_Colab_Trainer.py   # Standalone Python Training & INT8 Exporter
└── Image-Models/                  # Conditional INT8 Image Generation Models
    ├── README.md                  # Image Model Development & Architecture Guide
    ├── KryonImage_3M_Model_Trainer.ipynb # Ready-to-run Google Colab Notebook (T4 GPU)
    └── KryonImage_Colab_Trainer.py # Standalone Python Training & INT8 Exporter

Subdirectories and Documents

1. Text-Models/

2. Image-Models/

  • Model Family: 4.0 Million Parameter Conditional DCGAN / VAE Generator (kryonimage_3m_96_800.krai).
  • Classes: 18 Pokémon Elemental Types (Normal, Fire, Water, Grass, Electric, Ice, Fighting, Poison, Ground, Flying, Psychic, Bug, Rock, Ghost, Dragon, Steel, Fairy, Dark).
  • Resolution: 96x96 RGB565 direct-to-glass DMA blit.
  • Notebook: KryonImage_3M_Model_Trainer.ipynb
  • Python Script: KryonImage_Colab_Trainer.py
  • Technical Guide: Image-Models/README.md

3. Local_AI_API_Guide.md

  • Reference for System.ai JavaScript bindings (load, generate, reset, unload, setParam, getInfo).
  • Dual-core FreeRTOS task pinning (Core 0 Duktape UI + Core 1 Neural Worker).
  • SIMD INT8 vector dot-product acceleration.

Execution Architecture Summary

ComponentTarget LocationDescription
Weights PayloadOctal PSRAM16-byte aligned INT8 quantized weight tensors
Vocabulary TableOctal PSRAMEmbedded token/class string table
Frame & KV BuffersOctal PSRAMDMA framebuffer (96x96 / 128x128 RGB565) and Layer KV-caches
Working BuffersInternal SRAMScratchpads for LayerNorm, Softmax LUT, and GEMV
Compute CoreXtensa LX7 Core 1Dedicated non-blocking worker thread pinned via FreeRTOS
UI & Host VMXtensa LX7 Core 0Duktape JavaScript engine & DMA display blitting