Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2026 (5)
20082026
  1. …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
  2. …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…
  3. …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.)
  4. 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…
  5. …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