Modules And Dependencies
Implemented Modules
| Module | Purpose |
|---|---|
|
Application-facing facade for the API and generation runtime |
|
Backend SPI, tokenizer, sampling, streaming, metadata, diagnostics, and backend configuration |
|
Generation loop and sampling implementation |
|
In-process text-to-speech runtimes, PCM streaming, and WAV encoding |
|
Pure-Java ONNX graph reader and eager executor, used by
|
|
Framework-neutral guarded RAG policy |
|
Pure-Java WordTour lookup and blurred bag-of-words |
|
Adaptive, explainable model selection and provider-neutral execution across local and hosted clients |
|
GGUF parser, tokenizers, model graph, KV cache, and Java kernels |
|
Optional Models-owned Rust kernels compiled to PTX for qualified NVIDIA GPUs: K-quant projections and grouped-query decode attention, opt-in, with CPU fallback |
|
Java 25 and Vector API backend with selective Rust kernel acceleration through FFM |
|
Apple Foundation Models bridge through Java FFM and a small Swift C ABI |
|
LangChain4j blocking and streaming chat, embedding, and scoring adapters |
|
Blocking and streaming Spring AI chat, embedding, and document-reranking
adapters with qualified |
|
Spring Boot auto-configuration for the Models-backed Spring AI chat model |
|
Optional bridge to Vectors storage and semantic caching |
|
Local model and kernel benchmarks |
|
Controlled plain Java, LangChain4j, Spring AI, Ollama, llama.cpp, and hosted RAG comparisons |
The Spring and LangChain4j adapters use the same backend and diagnostics contracts as plain Java. Compatibility CI composes each adapter with the matching Vectors integration in a real retrieval-and-generation flow.
Planned Or Scaffolded Modules
| Module | Intended purpose |
|---|---|
|
Quarkus integration |
|
Semantic Kernel chat adapter |
|
Reusable downstream integration-test support |
Scaffolded modules are not part of the initial Maven Central publication.
Dependency Direction
models-api
<- models-runtime
<- models
<- backend-java <- vectors-core
<- backend-cuda <- Models Rust PTX kernels through FFM
<- backend-native <- Models Rust kernels through FFM
<- backend-apple <- Apple's Foundation Models framework through FFM
<- models-router <- vectors-db
<- models-langchain4j <- LangChain4j
<- models-spring-ai <- Spring AI
<- models-spring-boot-starter
<- models-embedding <- Vectors database modules
models-semantic-order
Models has no dependency on a model catalog. Independently published ModelJar artifacts carry model bytes and metadata without depending on Models. An application or downstream adapter composes a selected model artifact with the Models runtime.
Release Surface
The release build publishes only implemented modules whose dependency graphs can be resolved from the target repository. Benchmark applications, internal test fixtures, and placeholders are not library publications.
Application dependencies use:
-
com.integrallis:models -
com.integrallis:backend-java -
com.integrallis:backend-cuda -
com.integrallis:backend-native -
com.integrallis:backend-apple -
com.integrallis:models-audio -
com.integrallis:models-backend-onnx -
com.integrallis:models-router -
com.integrallis:models-langchain4j -
com.integrallis:models-spring-ai -
com.integrallis:models-spring-boot-starter
Native platform resources are assembled by CI for:
-
Linux x86-64
-
Linux AArch64
-
macOS x86-64
-
macOS AArch64
-
Windows x86-64
-
Windows AArch64
The runtime selects a bundled library by operating system and architecture and verifies its resource checksum before loading it.
