ChromeLLM provides an independent Java 21 model runtime with explicit local CLI/JNI and hosted Gemini providers. It has no browser code: the installed-Chrome provider, the WebMCP browser adapter and the chat bridge to a Chrome-served model were removed on 2026-11-17. Historical fork attribution remains in LICENSE, NOTICE, THIRD_PARTY.md and Git history.
- standalone/ is a separately built JDK-only Java 21 module using
java.baseandjava.net.http. Select local llama.cpp through CLI/JNI, Gemini 4 Hydrogen through the Gemini API. Native inference can explicitly select the existing Dawn/WebGPU provider in llama.cpp. src/main/java/io/synexia/chromellm/owns separate diffusion/GPU/vision/video/media functionality; the diffusion CLI no longer calls Chrome.native/and the root CMake build contain media JNI adapters;standalone/native/contains the independent llama.cpp JNI library with a test-only synthetic backend.
Run mvn -f standalone/pom.xml verify with JDK 21 and Maven to compile the module and run its local-process, loopback HTTP, protocol and provider-selection contract tests. These tests require no API key or downloaded model.
Download and test native binaries with Maven: mvn -f standalone/pom.xml -Pdawn-binary verify downloads the pinned Linux x86_64 Dawn package and tests real
Vulkan/WGSL compute. Add -Preal-model to a native source build to fetch the pinned
GGUF and run Java/JNI inference. Downloads use a reverified SHA-256 cache and honor
Maven offline mode. See the binary build guide.
Fork-native Maven smart build: -Pfork-native verifies an explicitly pinned
local synexia-llmcpp source checkout and compiles the JNI bridge through CMake,
with optional separately installed Dawn/WebGPU. -Psmart-build runs an explicit
Java 21 local-inference recipe during Maven verify and writes a hash-bound
candidate only under standalone/target/smart-build/. Neither profile needs
a browser. The ordinary Maven build remains unchanged. See
the fork-native build contract.
| Selection | Execution | Required input |
|---|---|---|
--backend cli (default) |
Local llama.cpp process | Executable and licensed GGUF model |
--backend jni |
Local in-process llama.cpp | JNI library and licensed GGUF model |
--backend jni --compute-backend webgpu |
Local llama.cpp with its Dawn/WebGPU provider | WebGPU-enabled native build and positive --gpu-layers |
--backend gemini |
Hosted Gemini API, default gemini-4-hydrogen |
GEMINI_API_KEY environment variable |
For Hydrogen, after setting GEMINI_API_KEY in the process environment:
java --module-path standalone/target/chromellm-standalone-0.1.0-SNAPSHOT.jar \
--module io.synexia.chromellm.standalone/io.synexia.chromellm.standalone.StandaloneMain \
--backend gemini --thinking-level high --prompt-file /path/to/request.txtProvider selection is explicit. Local inference never switches to a remote API, and a missing WebGPU provider is an error when WebGPU was requested. The Hydrogen adapter uses Google's hosted model; Dawn accelerates independently supplied local models. See the standalone README for builds, options, limits and verification commands.
A passing synthetic JNI test proves binding/lifecycle behavior only, not trained model correctness, GPU acceleration, or OS qualification. Older ChromeML documentation is historical. Transform recipes and fixed-point source qualification are owned by hsoliwal/com.synexia; downstream M3jdk21 imports only separately qualified implementation outputs. The optional Chrome adapter's Apache-2.0 attribution is in standalone/NOTICE.md.
The opt-in Maven fork-native, real-model-test and smart-build profiles compose
a pinned source build, digest-verified lazy model download, real JNI inference and
a bounded candidate-producing build recipe. The existing Java and synthetic JNI
profiles remain available. See Maven model verification
and fork-backed smart recipes.
mvn -f standalone/pom.xml -Pnative verify builds the pinned native fork and attaches a CPU platform JAR. Add -Dchromellm.native.backend=webgpu for the Dawn-backed artifact. The existing native-fork, fork-native, native-synthetic and smart-build entry points remain available. -Psmart-native-download,smart-build lets Maven resolve an already-published native classifier and execute the selected recipe. Native resource artifacts load lazily through the Java/JNI API; the smart-build recipe can acquire a SHA-256-pinned model before actual inference. See native Maven builds and smart-build recipes.