MarioSieg/magnetron
A machine learning runtime written in C with a Python API, implementing tensors, autograd, operators, and execution engine from scratch.

Velocity · 7d
+1.3
★ / day
Trend
→steady
star history
Magnetron is a compact ML framework that reimplements core ML infrastructure including tensor system, autograd engine, operators, and execution model in C with a Python interface. It targets developers who want full control over execution and memory without the complexity of larger frameworks. Includes example implementations for running real models including Qwen3 and GPT-2 inference.