~/talk

Practical LLM Inference in Modern Java

Talkat Voxxed Days Zürich 2025 · on Tuesday, 2025-03-25· [large-language-models, java]
links:none on file
slides:none on file

Single-file Java engine implements local Llama 2/3 inference (2,500 line l3.java) with tokenizers, GGUF parser and Q8/Q4 and FP16/BF16 quantizations, uses Panama memory segments and the Vector API, and targets Java 21+ and GraalVM native-image. Benchmarks show CPU-only runs hitting around 40 tokens/sec (authors aim for 5–8 as minimally acceptable), native-image builds produce a ~23 MB binary and can achieve zero-ms startup when model metadata is pre-baked, and performance sits in the same ballpark as llama.cpp/ollama while remaining pure Java and integrable with LangChain4j.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:08Project overview
  3. 2:06History and technical scope
  4. 4:58LLMs in the modern ecosystem
  5. 8:27First project demo
  6. 11:04Benefits of local Java inference
  7. 13:51Core architecture and mechanics
  8. 18:50Memory bandwidth and performance
  9. 23:24Quantization and speed targets
  10. 29:22Optimizing with GraalVM
  11. 33:43Advanced demos and benchmarks
  12. 39:42Conclusion and future outlook
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.