News for hackers. Stuff that matters.
Re:Oracle-samples/sd4j: Stable Diffusion pipeline in Java us... by rvz on Monday January 01, 2024 @10:32AM (#38832455)
Performance in AI with Java is an oxymoron.
Re:Oracle-samples/sd4j: Stable Diffusion pipeline in Java us... by lbalazscs on Monday January 01, 2024 @10:37AM (#38832510)
The ONNX Runtime is written in C++ and it uses the GPU. And Java is certainly much faster than Python.
Re:Oracle-samples/sd4j: Stable Diffusion pipeline in Java us... by rvz on Monday January 01, 2024 @01:02PM (#38833750)
That means nothing if one uses an inefficient language for both inference and training and the slower language will still bottleneck the ONNX runtime FFI calls and on top of Java's own garbage collector.

For those that care about performance know that the worst case is taken into account regardless if it is written in C++ for both memory and runtime performance.

Re:Oracle-samples/sd4j: Stable Diffusion pipeline in Java us... by pjmlp on Monday January 01, 2024 @12:23PM (#38833430)
At least Java cares about JIT and AOT compilers, unlike Python that needs to ping back into C, C++ or Fortran for anything beyond UNIX scripting.