🦙Freshcollected in 2h

SHADOW-250M Fits an LLM in 60MB

PostLinkedIn
🦙Read original on Reddit r/LocalLLaMA
#quantization#edge-ai#long-context#cpu-inferenceshadow-250mshadow-250mfinewebhugging-facellama.cpp

💡See how a 250M model reaches 400 tok/s in 60MB with disk-backed long-context retrieval.

⚡ 30-Second TL;DR

What Changed

The 250M-parameter model was trained from scratch on 30B FineWeb tokens.

Why It Matters

SHADOW-250M demonstrates a practical direction for extremely small, CPU-first language-model deployments and long-term external memory. Its modest parameter count and stated limitations mean it is better suited to narrow retrieval and embedded use cases than broad reasoning or open-domain assistance.

What To Do Next

Clone the SHADOW-250M GitHub repository and benchmark its CPU throughput, RAM usage, and archive retrieval accuracy on your own edge-device workload.

Who should care:Developers & AI Engineers

Key Points

  • The 250M-parameter model was trained from scratch on 30B FineWeb tokens.
  • Sub-2-bit quantization reduces deployment size to 60MB and runtime RAM usage to about 80MB.
  • The model runs at approximately 400 tokens per second on a normal laptop CPU without a GPU or heavyweight framework.
  • Older context is compressed to one bit and stored on disk, enabling retrieval from archives of up to 100M tokens.
  • The held-out evaluation reports 3.15 nats per token and 23.3 perplexity on English web text.

🧠 Deep Insight

Background and context from public sources — not the original article. 13 sources cited.

🔑 Enhanced Key Takeaways

  • The model utilizes a fixed 512-bit code for its 131k-token vocabulary, requiring only 8.4 MB of storage and zero trained parameters for the embedding layer.
  • SHADOW-250M employs a hybrid memory architecture that keeps the most recent 2,048 tokens in fp16 precision while offloading older context to disk as 1-bit compressed data.
  • The project is split into two distinct repositories: the runnable inference engine hosted at QLNI/SHADOW-250M-Instruct and the master weights for fine-tuning at NODEMIND/SHADOW-250M.
  • The model's design prioritizes retrieval-augmented generation over complex reasoning, specifically enabling the querying of archives containing up to 100 million tokens.
  • The development represents a shift toward 'extreme' local AI, focusing on architectural optimization and data representation efficiency rather than scaling parameter counts.
📊 Competitor Analysis▸ Show
FeatureSHADOW-250MTinyLlama-1.1BPhi-3-mini (3.8B)
Size60MB~600MB (Q4)~1.8GB (Q4)
RAM Usage~80MB~800MB~2GB
Context100M tokens (Disk)2k-4k tokens128k tokens
HardwareLaptop CPULaptop CPUModern CPU/GPU

🛠️ Technical Deep Dive

  • Architecture: Hybrid memory system using fp16 for active context and 1-bit disk-based compression for long-term storage.
  • Vocabulary: Fixed 512-bit code mapping for 131,072 tokens, occupying 8.4 MB total.
  • Quantization: Sub-2-bit per parameter implementation optimized for CPU-only execution.
  • Inference: Optimized C++ runtime bypassing standard heavyweight frameworks like PyTorch or TensorFlow.

🔮 Future ImplicationsAI analysis grounded in cited sources

Sub-100MB models will become the standard for edge-device personal assistants.
The success of SHADOW-250M proves that high-speed, low-memory inference is viable for basic retrieval tasks on commodity hardware.
Disk-based context retrieval will replace massive KV caches in consumer-grade LLMs.
The ability to access 100M tokens via disk compression significantly lowers the hardware barrier for long-context applications compared to RAM-heavy KV caching.

Timeline

2026-08
Public release of SHADOW-250M on GitHub and Hugging Face.

📎 Sources (13)

Factual claims are grounded in the sources below. Forward-looking analysis is AI-generated interpretation.

  1. reddit.com
  2. youtube.com
  3. reddit.com
  4. reddit.com
  5. reddit.com
  6. reddit.com
  7. reddit.com
  8. reddit.com
  9. reddit.com
  10. reddit.com
  11. oligo.security
  12. toriihq.com
  13. infosecurity-magazine.com
📰

Weekly AI Recap

Read this week's curated digest of top AI events →

👉Related Updates

AI-curated news aggregator. All content rights belong to original publishers.
Original source: Reddit r/LocalLLaMA

This is a summary, not the original. Read the source, or get the weekly briefing.

Weekly AI briefing

One email a week. Unsubscribe anytime.

SHADOW-250M Fits an LLM in 60MB | Reddit r/LocalLLaMA | SetupAI | SetupAI