5 comments

  • mikepapadim 3 hours ago
    https://github.com/beehive-lab/TornadoVM this is main repo.

    You can use it with any JDK21+ and Nvidia or Apple hardware and their Nvidia libs or MLX libs.

    • Akseleu_omirbay 1 hour ago
      And what about TPU support? Is it compatible with Google TPUs or strictly limited to gpu backends like CUDA and Metal?
      • mikepapadim 1 hour ago
        no TPU support yet, just NVIDIA, Apple and any other HW thats supports OpenCL
  • the_arun 3 hours ago
    Does this mean we can use Java to build AI infrastructure?
    • vlowrian 3 hours ago
      Or an abstract AI infrastructure factory?
    • mike_hearn 29 minutes ago
      Yes (or any JVM lang). There is also this:

      https://qxotic.ai/

      ... which is a single JAR that does SIMD accelerated inferencing of local models, dependency free. Everything is written in Java from the tokenizer up. It can also use Metal on macOS. Small models can be surprisingly powerful these days and all you need is a fast CPU.

      Remarkably, it is significantly faster than llama.cpp on some tasks like prefill (decode is memory bandwidth constrained so language hardly makes a difference). At least as long as you run on GraalVM (JVM or native image, both work). So you can actually beat C++ performance for AI in Java.

      It's impressive stuff.

  • amir734jj 3 hours ago
    Basically JAX for Java instead of Python
  • karolosLykos 2 hours ago
    [dead]