6 comments

  • mikepapadim4 hours ago
    <a href="https:&#x2F;&#x2F;github.com&#x2F;beehive-lab&#x2F;TornadoVM" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;beehive-lab&#x2F;TornadoVM</a> this is main repo.<p>You can use it with any JDK21+ and Nvidia or Apple hardware and their Nvidia libs or MLX libs.
    • Akseleu_omirbay3 hours ago
      And what about TPU support? Is it compatible with Google TPUs or strictly limited to gpu backends like CUDA and Metal?
      • mikepapadim3 hours ago
        no TPU support yet, just NVIDIA, Apple and any other HW thats supports OpenCL
  • the_arun4 hours ago
    Does this mean we can use Java to build AI infrastructure?
    • vlowrian4 hours ago
      Or an abstract AI infrastructure factory?
      • mikepapadim4 hours ago
        <a href="https:&#x2F;&#x2F;github.com&#x2F;beehive-lab&#x2F;jitllm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;beehive-lab&#x2F;jitllm</a> there is already an vllm-like inference engine that uses tornadovm as the GPU backend all written in java
      • keeda3 hours ago
        That’s probably the next thing after Software Factories.
      • kitd3 hours ago
        I&#x27;ll be disappointed if this isn&#x27;t named AbstractAiInfrastructureFactory
        • pjmlp3 hours ago
          These kind of complaints get tiresome, here for some Objective-C fun,<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Quotation&#x2F;LongestCocoa" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Quotation&#x2F;LongestCocoa</a>
    • mike_hearn2 hours ago
      Yes (or any JVM lang). There is also this:<p><a href="https:&#x2F;&#x2F;qxotic.ai&#x2F;" rel="nofollow">https:&#x2F;&#x2F;qxotic.ai&#x2F;</a><p>... 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. It works not only for LLMs but also image models, video models and speech.<p>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.<p>It&#x27;s impressive stuff.
  • amir734jj4 hours ago
    Basically JAX for Java instead of Python
    • mikepapadim4 hours ago
      Many components for a jax for java are already tested in <a href="https:&#x2F;&#x2F;github.com&#x2F;beehive-lab&#x2F;jitllm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;beehive-lab&#x2F;jitllm</a>
  • karolosLykos4 hours ago
    [dead]
  • mathisfun1231 hour ago
    &quot;your scientists were so preoccupied with whether they could they didn&#x27;t stop to think if they should&quot;