AviBook
System Architecture

AviGPT: Architecting a 183M Parameter Decoupled Transformer in 0.4GB RAM via 1.18ms NVMe Bus Streaming

How decoupling attention projection matrices from feed-forward networks achieves full FP16 edge inference on consumer NVMe hardware without quantization loss.

By Yadlapalli Avinash Ricky • September 22, 2026 • 8 min read
#AviGPT#Transformers#Edge AI#NVMe Streaming#Open Source#Zenodo

Deploying generative language models to edge gateways, single-board computers, and local laptops has historically faced an unyielding hardware wall: unified DRAM capacity. Even sub-billion parameter Small Language Models (SLMs) such as TinyLlama-1.1B or SmolLM-135M demand between 1.2 GB and 2.8 GB of resident memory once activation buffers, KV-caches, and framework overheads are allocated. For resource-constrained hardware running parallel operating system tasks, this creates immediate Out-Of-Memory (OOM) faults.

To solve this bottleneck, I designed and open-sourced AviGPT on GitHub—a 183-million parameter decoupled transformer architecture that restricts resident system RAM usage to just 0.4 GB (400 MB) while preserving full 16-bit weight precision. The model streams dormant feed-forward tensor blocks on demand across a 1.18 ms NVMe hardware bus pipeline, demonstrating that modern solid-state storage can function as an active compute memory bus.

★ Persistent Scientific Citation & Open Source Code

The architecture, weight matrices, and reproducible benchmark suites for AviGPT are permanently archived under Zenodo DOI: 10.5281/zenodo.22856047. The source code is publicly accessible on GitHub at github.com/Avinashricky211/AviGPT.

The Memory Dilemma: Why Monolithic Transformers OOM at the Edge

In a standard transformer decoder, every linear projection and feed-forward weight matrix is locked into unified system memory during initialization. In models below 300 million parameters, aggressively quantizing to 4-bit or 2-bit representations causes catastrophic perplexity degradation, destroying grammatical coherence and mathematical reasoning.

In Chapter 2 of The Art of AI Prompts, I dissect how attention heads evaluate token probability distributions. The crucial empirical insight is that attention projections (Wq, Wk, Wv, Wo) require continuous high-frequency memory access, whereas feed-forward blocks (W1, W2, W3) are accessed sequentially once per forward pass. Keeping dormant FFN blocks permanently resident in expensive DRAM is an unnecessary memory tax.

[AviGPT-183M Decoupled Core] AviGPT Edge Quickstart & Local Inference
# 1. Clone the repository and install lightweight dependencies
git clone https://github.com/Avinashricky211/AviGPT.git
cd AviGPT
pip install -r requirements.txt

# 2. Launch the AviGPT runtime with 0.4GB RAM ceiling & NVMe hardware bus
python app.py

The Decoupled Architecture & The 1.18ms NVMe Bus

AviGPT partitions the 183M parameters into two discrete physical tiers: the Persistent Active Cache (95 MB resident in RAM containing input embeddings, LayerNorm tensors, and key-query attention projections) and the Transient Streaming Store (271 MB of page-aligned FFN parameters residing on an NVMe partition).

Using zero-copy memory mapping (mmap) with synchronized page pre-fetching (madvise), AviGPT pulls each layer's feed-forward weights into execution registers in 1.18 milliseconds. Because modern vector engines require approximately 1.2 to 1.5 milliseconds to compute preceding attention matrix multiplications, the NVMe bus transfer happens concurrently with compute, introducing zero observable pipeline stalls.

★ ⭐ Support Open-Source Research

If you believe in lightweight, edge-native AI architectures, please consider giving AviGPT a Star on GitHub and exploring the model card at Hugging Face (AvinashRicky/AViGPT).

Empirical Benchmarks: Sustained 38.6 Tokens/Sec in 400MB RAM

Tested against competitive sub-billion parameter models on edge testbeds (including Raspberry Pi 5 and standard PCIe Gen4 x4 laptops), AviGPT demonstrated superior operational stability:

• AviGPT 183M: 0.4 GB RAM footprint | 1.18 ms NVMe Bus Latency | 22.4 ms TTFT | 38.6 tokens/sec (Full FP16 fidelity). • SmolLM 135M: 1.15 GB RAM footprint | Traditional DRAM loading | 18.2 ms TTFT | 42.1 tokens/sec (High memory pressure). • Pythia 160M: 1.38 GB RAM footprint | Traditional DRAM loading | 24.5 ms TTFT | 34.2 tokens/sec (Requires heavy swap). • TinyLlama 1.1B: 2.45 GB RAM footprint | Traditional DRAM loading | 68.0 ms TTFT | 14.5 tokens/sec (Frequent OOM on 2GB nodes).

Executive Summary & Key Takeaways

AviGPT demonstrates that the future of edge AI is hardware-aware memory architecture, not merely aggressive parameter truncation. To experiment with the weights or cite the research, refer to Zenodo DOI: 10.5281/zenodo.22856047 and star the repository at github.com/Avinashricky211/AviGPT.