OchreML v0.3.7 · Rust + PyO3

Heavyweight ML, without the weight.

63 Classical ML estimators, ochreml.nn deep learning, a zero-Python CLI, and a pure-stdlib MCP server — in one 21.8 MB wheel.

Read the Docs
$uv add ochreml

Everything in one wheel

Classical ML, Deep Learning, CLI & MCP

0.61 ms import62/62 CPU wins~21.8 MB · 0 deps

ochreml Core — 63 Classical ML Estimators

1-line Scikit-Learn migration with 100% CPU win rate (62/62), 4.03x median speedup, 0.61 ms PEP 562 cold import, and 100M-row streaming.

ochreml.nn

Zero-GIL Sequential.fit(), Conv2d without cuDNN, RNN/GRU/LSTM, and CausalLM + LoRA. Up to 80.2x vs PyTorch CUDA.

ochreml CLI

Profile CSV/Parquet, run CV AutoML with compare, verify .dit binaries, and serve HTTP /predict without writing Python.

ochreml mcp

Zero-dependency JSON-RPC 2.0 MCP server over stdio with 9 ML tools, 2 live API catalogs, and strict --root containment.

4 Hardware Backends

15 shared Rust primitives across CPU Rayon, CUDA Multi-GPU, wgpu, and Google Cloud TPU PJRT with automatic fallback.

.dit Binary Persistence

Custom DIT\x01 binary format with 102 additive tags, zero pickle RCE surface, and one ~21.8 MB zero-dependency wheel.

Measured .fit() Latency · CPU 4-Core (v0.3.7)

Life is too short to wait for .fit()

OPTICS().fit(X) · shape (350, 8)lower is faster
scikit-learn378.55 ms
ochreml3.67 ms (103.0x)
3.67 ms103.0x faster
095ms189ms284ms379ms

fit() duration

Exact numerical parity · 62/62 CPU wins · 0 external depsFull Benchmark Suite

Peak RAM Delta · CPU 4-Core (v0.3.7)

A mountain of RAM vs. a gentle ochre hill

Sequential.fit(X, y) · shape (1024, 32)lower peak RAM delta is better
86 MB65 MB43 MB22 MB0 MB
PyTorch: 86.23 MB
454x less RAMochreml: 0.19 MB
PyTorch
ochreml
Zero-copy PyO3 buffers · Native Rust memory layout · No Python heap bloatInspect Memory Benchmarks

One AI brain. Eight tentacles on real ML.

Connect Claude, Cursor, or Antigravity directly to OchreML's zero-dependency MCP server. Hover or click any tentacle to inspect the live JSON-RPC call.

$ ochreml mcp --root ./workspace
200 OK · 277 msMCP Docs
stdin -> ochreml_compare
{"method":"tools/call","params":{"name":"ochreml_compare","arguments":{"path":"housing.csv","target":"price","cv":5}}}
stdout <- result
{"best":"HistGradientBoostingRegressor","r2":0.9412,"runner_up":"RandomForestRegressor","saved":"best.dit"}

Sponsor & Donate · Independent Open Source

Keep the sails up.

OchreML is built and maintained independently with zero corporate backing. If this 21.8 MB wheel saves your team compute time, fuel the next release on Trakteer (^▽^)

Trakteerochreml · FUNDING.yml100% OSS
LicenseMIT OR Apache-2.0
Corporate backingNone (Indie)
Runtime deps0 packages
Tip jartrakteer.id/arufafa

Something big is coming.

Beyond the horizon, the next chapter is already taking shape. Details remain sealed until launch.

CODENAME████████████SURFACE█████████ETA████ · 2026