qxotic README

项目的 README,来自 github.com/qxoticai/qxotic。合并为一个 markdown 文件:README.md。

Quixotic AI

AI sovereignty for the JVM

Maven Central Devoxx Belgium 2026 talk License GraalVM Native Image Qxotic AI on X Qxotic AI on Bluesky

Quixotic AI provides a complete, open stack for local AI on the JVM.
From tokenizers and model formats to a full inference engine with multi-modal capabilities.

No Python. No ONNX. No external services. Just AI, in a jar.

Highlights

Quixotic: Pure Java Inference at Native Speed

Watch

Presented at Devoxx Belgium 2026

The Quixotic AI stack

Module What it is One-liner
jinfer AI inference engine Local AI inference for the JVM. Chat, vision, audio, embeddings, reranking, decisions, text-to-speech
toknroll LLM tokenization Token-perfect. Fast tokenizers for LLMs, pure Java, zero dependencies
jam Quantized matrix multiplication Just a matmul. Native implementations for several CPU ISAs
jota Tensor engine Write once, accelerate everywhere. Java, C, CUDA, HIP, Metal, OpenCL, Mojo
gguf GGUF reader/writer llama.cpp's model format, pure Java, zero dependencies
safetensors Safetensors reader/writer Hugging Face's model format, pure Java, zero dependencies

Demos

The demos need Java 25+ and JBang. The first run downloads the CLI and the model.

Chat

jbang jinfer@qxoticai chat -m LiquidAI/LFM2.5-350M-GGUF:Q8_0

OpenAI-compatible server

jbang jinfer@qxoticai server -m openbmb/MiniCPM5-2B-GGUF:Q4_K_M --context-capacity 16384

Then, from another terminal, any OpenAI client works against http://localhost:54154/v1:

curl -s http://localhost:54154/v1/chat/completions \
  -d '{"messages": [{"role": "user", "content": "What is the capital of France?"}]}'

Live transcription

Live speech transcription with jinfer-parakeet

Live transcription with jinfer-parakeet, running on the JVM.

Try it yourself. Run the command for your platform, start talking, and watch the words appear as you speak. ffmpeg captures the microphone:

# Linux
ffmpeg -nostats -loglevel error -f pulse -i default -ar 16000 -ac 1 -f s16le - \
  | jbang jinfer@qxoticai transcribe -m mudler/parakeet-cpp-gguf/tdt-0.6b-v3-q4_k.gguf - --raw-pcm

# macOS
ffmpeg -nostats -loglevel error -f avfoundation -i ":default" -ar 16000 -ac 1 -f s16le - \
  | jbang jinfer@qxoticai transcribe -m mudler/parakeet-cpp-gguf/tdt-0.6b-v3-q4_k.gguf - --raw-pcm

On Linux and macOS these use the system's default microphone. On Windows, ffmpeg has no default input, so it needs the microphone's name. List the devices first:

ffmpeg -hide_banner -list_devices true -f dshow -i dummy

Then put the name of the (audio) entry in audio="...", and run from cmd or PowerShell 7.4+:

ffmpeg -nostats -loglevel error -f dshow -i audio="Microphone (Realtek(R) Audio)" -ar 16000 -ac 1 -f s16le - ^
  | jbang jinfer@qxoticai transcribe -m mudler/parakeet-cpp-gguf/tdt-0.6b-v3-q4_k.gguf - --raw-pcm

Build and test

Requires a JDK 25 and Maven 3.9; cmake and a C compiler to build the native jam kernels.

make test-fixtures   # once after cloning: tokenizer vocabularies, golden truth, enwik8, Parakeet speech
make test            # the default suite: no models, no network
make ci              # what a pull request runs: formatting, the suite, the corpus tests, the release shape

make help lists the rest. The suites that need models or hardware are opt-in; each module's README describes how to run them.
See CONTRIBUTING.md before opening a pull request.

License

The source code is licensed under the Apache License 2.0. The native artifacts, the jinfer command and the libjinfer and libtoknroll libraries in every package they ship in, are built with Oracle GraalVM and carry its runtime under the GraalVM Free Terms and Conditions: free to use, commercially too, but a product sold for a fee that bundles them is not covered. See the NOTICE files of libjinfer and libtoknroll.

qxotic (qxoticai/qxotic)

正在搜索数据库…

这是什么?Qxotic 是一个专为 JVM 构建的开源 AI 技术栈,为 Java 应用提供本地 AI 推理——聊天、视觉、音频、嵌入向量、重排序和文本转语音——无需 Python 或 ONNX。
它是一个库,还是多个库的组合?它是一个由六个模块组成的技术栈——jinfer(推理引擎)、toknroll(分词器)、jam(量化矩阵乘法)、jota(张量引擎)以及 gguf/safetensors 读写器——共同覆盖从分词到模型加载和推理的全流程。
怎么构建和使用它?用 Maven 构建,它会拉取你需要的模块;原生 jam 内核还需要 cmake 和 C 编译器,`make help` 列出了可用的构建目标。
运行它需要 Python 或 ONNX 吗?不需要——一切都端到端运行在 JVM 上,零外部服务,Python 和 ONNX 永远不会出现在流水线中。
运行它需要 GPU 加速吗?不需要,原生 GPU 加速是可选的——张量引擎默认在 CPU 上运行,在具备 CUDA、HIP、Metal 或 OpenCL 硬件时也可以加速。
GraalVM Native Image 支持是做什么用的?它让 Qxotic 应用可以编译为自包含的原生二进制文件,占用小、毫秒级启动,而不必运行在预热好的完整 JVM 上。
它能读取哪些模型格式?它自带纯 Java、零依赖的 GGUF(llama.cpp 的格式)和 Safetensors(HuggingFace 的格式)读写器。
支持哪些 GPU 后端?jota 张量引擎面向 CUDA、HIP、Metal 和 OpenCL,jam 模块还提供针对多种 CPU 指令集的原生 C 内核。
为什么要构建它,而不是从 Java 调用 llama.cpp?Qxotic 从第一性原理出发为 JVM 设计,让 AI 端到端原生运行,无需伴随服务器、IPC 或 JNI 胶水代码——分词、模型加载和推理全部留在 Java/原生 JVM 代码中。
作者
qxoticai
大小
19.7 MB
星标
197
更新
提交Nov 18
时长
8个月
提交 · 90 天