Skip to content

Combined strategy: compaction + MoE paging — fit any model anywhere #497

Closed

Description

@joelteply

Goal

Combine plasticity compaction (#492) with MoE expert paging (#433) for a two-tier approach: compact what you can, page the rest from HuggingFace.

Why

Compaction alone might get 3x. But some models are so large that even 3x is not enough for MacBook Air. The combined strategy:

  1. Compact the base + most-used experts (fit in VRAM)
  2. Page rarely-used experts from HuggingFace on demand
  3. Cache recently-paged experts on disk (L2 cache)

This means ANY model can run on ANY hardware — the question is just latency for cold expert loads.

Architecture

VRAM (L1): compacted base + top-K experts (fits in 8-16GB)
Disk (L2): recently paged experts (SSD cache, ~50GB)
HuggingFace (L3): full expert library (unlimited)

Performance Profile

  • Hot path (common tasks): all in VRAM, full speed
  • Warm path (recent specialty): disk load, ~100ms
  • Cold path (rare expert): HF download, seconds (first time only)

Implementation

  • Extend genome/paging infrastructure to work with compacted models
  • Compaction metadata tells the pager which experts were kept vs pruned
  • Pruned experts can be paged back from HF when needed (graceful degradation)

Dependencies

Activity

  1. joelteply commented on Mar 30, 2026

    @joelteply
    ContributorAuthor

    Tracked in grid + plasticity roadmap. Compaction works (published models). MoE paging is #433/#580 (closed). Combined strategy emerges from individual pieces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions