Add the Apple backend
dependencies {
implementation("com.integrallis:backend-apple:0.2.6")
}
On-device system model
Use Apple's OS-managed SystemLanguageModel directly inside a Java 25
application through the
Models JVM inference library.
Prompts and responses stay on the Mac.
Apple Foundation Models is not a downloadable ModelJAR. Apple supplies and updates the private model weights with the operating system. Models connects Java to Apple's Foundation Models framework through the final FFM API and a small Models-owned Swift binary.
This OS-managed runtime has its own page so it does not interfere with the searchable
catalog of versioned model artifacts. It still implements Models'
TextGenerationModel contract, including the LangChain4J and Spring AI
adapters.
dependencies {
implementation("com.integrallis:backend-apple:0.2.6")
}
import com.integrallis.models.backend.apple.AppleFoundationModels;
try (var client = AppleFoundationModels.create()) {
var status = client.availability();
if (!status.available()) {
throw new IllegalStateException(status.reason());
}
var answer = client.generate(
"Summarize this locally.").text();
}
Launch with --enable-native-access=ALL-UNNAMED. Always check
availability(); hardware support, Apple Intelligence settings, and model
readiness can differ by machine and user.