Reverse-Engineering RK3588 NPU: Open Compiler Runs GPT-2 at 36 tok/s
one_does_not_just · reddit · 2026-08-20
The author shares a year-long effort to reverse-engineer the RK3588 NPU. By cracking the register format and building an open-source compiler + runtime, they achieved model execution directly from PyTorch, ONNX, and JAX without the vendor SDK.
Results:
- Supports GPT-2 and SigLIP on RK3588 NPU.
- GPT-2 inference speed reaches 36 tok/s.
- A detailed technical blog and report are provided, covering everything from memory hacking to compiler architecture.
More from Infra
- Air New Zealand to offer free Starlink Wi-Fi across entire fleet by end of 2028 — elonmusk · 2026-11-30
- From Scratch to Trained Video Model in 10 Minutes With Pure C++/CUDA — gandamu_ml · 2026-11-30
- Study: 603 data center restrictions in 445 US counties, all 42 ballot proposals rejected — huggingface · 2026-11-30
- Google Colab hands users a G4 Blackwell GPU, user reports — MickeySteamboat · 2026-11-30
- 19 GitHub Actions Runner Providers Benchmarked: Speed and Cost, Updated Weekly — DanielLockyer · 2026-11-30
- Learn Inference: An Interactive Guide to Serving Generative Models in Production — attentionmech · 2026-11-30