You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Looking for feedback on a Rust + Metal inference runtime for Apple Silicon
#4875
I've been working on KriyaRT, a native LLM inference runtime written in Rust for Apple Silicon.
The project started as an experiment. I wanted to understand how local LLM inference works and explore whether I could build a runtime around Apple's Metal framework.
KriyaRT currently supports:
Q4 quantized weights.
MLX checkpoint ingestion.
Metal-based GPU execution.
KV-cache and inference components.
An OpenAI-compatible API with streaming support.
I've released the first version, v0.1.0.
How does it compare with MLX?
I've run some early benchmarks against MLX.
The results are mixed. KriyaRT shows competitive decode performance on Qwen 2.5 3B at some context lengths. However, its prefill performance is still slower than MLX.
I don't claim that KriyaRT is better than MLX. There is still a lot of work to do.
Why am I posting here?
MLX has been an important reference point during this project. I'd like to learn from people who understand its internals and work with it regularly.
I'd especially appreciate feedback on:
MLX checkpoint handling and quantization.
Metal kernel design and optimization.
KV-cache implementation.
Benchmarking methods and performance bottlenecks.
I'm also open to collaboration. Anyone interested in experimenting with a new inference runtime is welcome to take a look.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I've been working on KriyaRT, a native LLM inference runtime written in Rust for Apple Silicon.
The project started as an experiment. I wanted to understand how local LLM inference works and explore whether I could build a runtime around Apple's Metal framework.
KriyaRT currently supports:
I've released the first version, v0.1.0.
How does it compare with MLX?
I've run some early benchmarks against MLX.
The results are mixed. KriyaRT shows competitive decode performance on Qwen 2.5 3B at some context lengths. However, its prefill performance is still slower than MLX.
I don't claim that KriyaRT is better than MLX. There is still a lot of work to do.
Why am I posting here?
MLX has been an important reference point during this project. I'd like to learn from people who understand its internals and work with it regularly.
I'd especially appreciate feedback on:
I'm also open to collaboration. Anyone interested in experimenting with a new inference runtime is welcome to take a look.
GitHub: https://github.com/RISHI5991/kriya-rt
Release: https://github.com/RISHI5991/kriya-rt/releases/tag/v0.1.0
Install using Homebrew:
This is an early-stage project, and I would genuinely value your feedback.
Thanks for stopping by..!
All reactions