Skip to content

Learned lookahead prediction + int2 compensation: 5.5x speedup on 3 GB/s NVMe #233

Description

@deepak282886

Hi — I forked colibri and added a single file (learned.py) that replaces
the PILOT=1 heuristic with a trained lookahead predictor and adds int2
quantization with learned compensation.

Results on OLMoE-1B-7B (simulated 3.0 GB/s NVMe):

  • Baseline: 1.14 tok/s
  • System: 6.24 tok/s
  • Speedup: 5.47x

Three components:

  1. Autoregressive lookahead predictor — 0.72 recall @ L+3 (vs 0.716 for PILOT=1 heuristic)
  2. int2 quantization — 8x smaller experts, faster streaming
  3. Per-layer linear compensator — recovers 85% of int2 quality loss

Key finding: predictors must be trained on autoregressive generation data,
not fixed text chunks. Training on chunks gave 0.49 recall.
Training on generation data gave 0.72+.

Repo: https://github.com/deepak282886/colibri-learned

Next steps: validate on GLM-5.2, C runtime, target 50 tok/s on TUF 15 + 4060.

Happy to discuss or contribute back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceVelocità / tok-s / ottimizzazioni

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions