exabrial/petrify
View on GitHub ↗ ★ 18 Java
Compile your ML Models/ONNX Decision Trees (XGBoost, LightGBM, SciKit-Learn) straight to JVM Bytecode
5 mentions on Hacker News by 1 person: 0 stories, 5 comments · first 2026-04-12 · latest 2026-05-28
20082026
-
…harder to use IMHO though. What got me into this is I just finished a major release of Petrify ( https://github.com/exabrial/petrify ) that compiles ML Models to JVM Bytecode. It requires Jdk25 to do the compilation, but the compiled…
comment by exabrial · 2026-05-28 · in Endive: A JVM native WebAssembly runtime -
…through the JVM's compiler. I've also authored a Machine Learning Model compiler for the JVM: https://github.com/exabrial/petrify . This allows you to take Many Trees/Ensembles/Regressors/Classifiers/etc and compile them as regular Java…
comment by exabrial · 2026-05-18 · in Ask HN: Is Java the ideal language for LLM-assisted coding? -
…into the neural net side of things yet, mainly because I don't have any models to run in prod.( https://github.com/exabrial/petrify if anyone is interested.)
comment by exabrial · 2026-05-03 · in Show HN: Apple's SHARP running in the browser via ONNX runtime web -
https://github.com/exabrial/petrify Petrify is a machine learning model compiler for the the JVM. It reads your model from an ONNX or other model format, walks the Trees or Linear models, and encodes the model in equivalent JVM bytecode as…
comment by exabrial · 2026-04-12 · in Ask HN: What Are You Working On? (April 2026) -
…with no massive runtime needed) still in the works, but its here for those interested: Petrify: https://github.com/exabrial/petrify
comment by exabrial · 2026-04-12 · in JVM Options Explorer