Modules And Dependencies

Implemented Modules

Module Purpose

models

Application-facing facade for the API and generation runtime

models-api

Backend SPI, tokenizer, sampling, streaming, metadata, diagnostics, and backend configuration

models-runtime

Generation loop and sampling implementation

models-audio

In-process text-to-speech runtimes, PCM streaming, and WAV encoding

models-backend-onnx

Pure-Java ONNX graph reader and eager executor, used by models-audio for ONNX-only speech models; no ONNX Runtime

models-rag

Framework-neutral guarded RAG policy

models-semantic-order

Pure-Java WordTour lookup and blurred bag-of-words

models-router

Adaptive, explainable model selection and provider-neutral execution across local and hosted clients

backend-java

GGUF parser, tokenizers, model graph, KV cache, and Java kernels

backend-cuda

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

backend-native

Java 25 and Vector API backend with selective Rust kernel acceleration through FFM

backend-apple

Apple Foundation Models bridge through Java FFM and a small Swift C ABI

models-langchain4j

LangChain4j blocking and streaming chat, embedding, and scoring adapters

models-spring-ai

Blocking and streaming Spring AI chat, embedding, and document-reranking adapters with qualified ChatClient tool execution

models-spring-boot-starter

Spring Boot auto-configuration for the Models-backed Spring AI chat model

models-embedding

Optional bridge to Vectors storage and semantic caching

models-bench

Local model and kernel benchmarks

models-rag-bench

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

models-quarkus

Quarkus integration

models-semantic-kernel

Semantic Kernel chat adapter

models-test

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.

Requirements

  • JDK 25 or newer

  • Gradle 9.4 or newer for source builds

Java 25 is the minimum runtime. Measured model profiles may recommend a newer JDK when it provides a verified performance improvement.