All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Timber: AOT Compiler Converts Classical ML Models to Native C99 Code for High-Performance Inference

By

kossisoroyce

3mo ago· 8 min readenCode

Summary

Timber is an open-source tool that compiles classical machine learning models (XGBoost, LightGBM, scikit-learn, CatBoost, ONNX) into native C99 inference code with zero runtime dependencies. It features an AOT (ahead-of-time) compiler that optimizes models and includes a built-in HTTP server with Ollama-compatible API for serving models. The tool claims 336x faster inference than Python and microsecond-level latency for single-sample inference.

Key quotes

· 4 pulled
Timber takes a trained ML model — XGBoost, LightGBM, scikit-learn, CatBoost, ONNX (tree ensembles, linear models, SVMs), or a URDF robot description — runs it through a multi-pass optimizing compiler, and emits a self-contained C99 inference artifact with zero runtime dependencies.
A built-in HTTP server (Ollama-compatible API) lets you serve any model — local file or remote URL — in one command.
~2 µs single-sample inference
336x faster than Python inference
Snippet from the RSS feed
Ollama for classical ML models. AOT compiler that turns XGBoost, LightGBM, scikit-learn, CatBoost & ONNX models into native C99 inference code. One command to load, one command to serve. 336x f...

You might also wanna read