Show HN: Timber – Ollama for classical ML models, 336x faster than Python
Hacker News
Timber is an AOT compiler that converts tree-based models like XGBoost and scikit-learn into native C99 code, providing a high-performance local HTTP API for inference that is up to 336x faster than Python.
Show HN:Timber – 傳統機器學習模型的 Ollama,比 Python 快 336 倍
此外,技術實作路徑也引發了資深開發者的質疑。有觀點認為,既然 Timber 的核心訴求是極致效能,為何選擇透過獨立進程與 HTTP API 進行通訊,而非採用共享函式庫(Shared Library)的形式供 Python、R 或 Julia 直接調用。批評者擔心資料序列化帶來的額外開銷可能會抵消編譯代碼帶來的效能優勢。對此,另一派觀點則反駁,認為 HTTP API 的設計雖然在極限效能上有所妥協,卻換取了極佳的跨平台移植性與部署便利性,對於許多應用場景而言,這種效能與易用性的平衡點已經足夠。