-
Notifications
You must be signed in to change notification settings - Fork 0
CPU AI Runtime
This page describes the CPU-only model runtime assumptions for OSAI.
- CPU-Only Model Serving
- Shared Weights and Private State
- Model Loader
- Tokenizer Boundary
- Acceleration Boundary
OSAI targets CPU-bound AI models. The runtime should support quantized local models and predictable inference loops without CUDA, Metal, GPU, or NPU dependency.
The first runtime should be minimal and measurable. It does not need to support every model format before the OS proves boot, memory, core isolation, networking, and telemetry.
Shared read-only model weights are central to OSAI. A host running many app agents should avoid loading duplicate copies of the same model.
Each agent gets:
- a shared model-weight mapping;
- private KV/cache arenas;
- private tokenizer/request state;
- private source-code context;
- explicit permissions.
The loader should:
- validate model metadata;
- map weights read-only;
- prefer hugepage/large-page mappings where available;
- prefault hot regions before READY;
- expose model identity for sharing;
- report memory placement and faults.
Tokenization can run outside the hottest inference loop if that improves isolation. Tokenizer memory and source-context memory should be accounted separately from model weights and KV/cache.
Architecture-specific CPU acceleration is allowed through generic fallbacks:
- scalar fallback first;
- x86-64 vector paths where available;
- AArch64 vector paths where available;
- AMX or similar matrix extensions only behind feature detection.
GPU acceleration is not a requirement and must not be necessary for correctness.
This page defines the GitHub Wiki navigation sidebar.
- Architecture
- AI Cells
- CPU AI Runtime
- App Agents
- Memory System
- Networking
- Scheduler and Core Isolation
- Filesystem and Storage
- Driver Model
- Security Model
- Build System
- Build System
- Project Tracker
- Implementation Plan
- QEMU Full OS Core Workdown
- QEMU 100 Completion Plan
- Example Apps
- Codex Work Packages
- Testing and Benchmarking