Documentation for v0.25.0, an older release. Read v0.25.1, the latest release

Recent releases

Release notes for the current and previous llamadart minor, with a link to the full changelog for older releases.

On this page

This page keeps the current and previous minor releases. Notes for every older release are in CHANGELOG.md.

For upgrade planning, combine this page with the Upgrade Checklist. For breaking changes, validate against the exact release tag notes.

0.25.0#

  • Add native llama.cpp fill-in-the-middle (infill) completion API with extra-context framing and the infill sampler.
  • Add experimental opt-in Android arm64 Qualcomm Hexagon HTP (HTP0) support for llama.cpp via ComputeDevice.npu, ModelParams.hexagonAssetsDir and probeLlamaCppHexagon(). The build hook packages the digest-verified sidecar only when explicitly selected.
  • Add experimental opt-in llama.cpp OpenVINO NPU on Linux x64 with ComputeDevice.npu, a model-free probe, an optional compiled-graph cache and typed diagnostics (#2554).
  • Fix Linux x64 OpenVINO hook opt-in to bundle the verified sidecar, preserve plugins.xml and report redistribution notices.
  • Reject ComputeDevice.npu combined with any non-GpuBackend.auto preferredBackend in ModelParams.validate() across all runtimes, including LiteRT-LM.
  • Discover the installed LiteRT-LM NPU dispatcher on Android arm64 for explicit NPU loads and add a model-free probe for dispatch availability and packaging failures.
  • Stream explicit Android LiteRT-LM NPU replies after observed participation, preserve final placement checks, and pin litert-lm-native v0.20.0-2.
  • Refuse unsupported Android firmware for the LiteRT-LM Google Tensor NPU and remember unfinished native engine creation across app restarts, with an explicit retry option.
  • Throw LlamaUnsupportedException for unavailable LiteRT-LM NPU requests in native and Web contextCreate and for deprecated explicit-NPU engine creation failures, clearing the Google Tensor attempt marker consistently.
  • Expose typed image model memory refusals with byte counts and a public memory estimator.
  • Update the default llama.cpp native runtime to llamadart-native v1.1.0-6 (same upstream llama.cpp commit), which adds the grammar top-k/top-p wrapper, the OpenVINO owner API with its linux-x64-openvino sidecar and the Android arm64 Hexagon sidecar.
  • Route eligible strict grammars on large native llama.cpp vocabularies through the v1.1.0-5 progressive top-k/top-p/min-p wrapper with legacy fallback and bit-exact seeded parity.
  • The Android Hexagon probe reports when host-library SHA-256 verification requires JNI extraction.
  • Document tested Android NPU devices, firmware, dispatchers and models, LiteRT-LM NPU packaging for install-time and on-demand feature modules, Hexagon release APK packaging and its forced-exit limitations, and CPU-first llama.cpp guidance for Tensor phones.
  • Studio (the unpublished app in this repository) adds opt-in Android NPU kits for Tensor G6, MediaTek MT6989 and Qualcomm Hexagon, Model Hub fit filters and sorting (including system RAM fit for Hexagon GGUF chat models), and automatic tool calling and opt-in reasoning for Gemma 4 E2B on Tensor G6. Built-in presets and older saved settings keep Think off unless the user has explicitly opted in.
  • Keep default WebGPU bridge assets at v0.1.96 (unchanged from 0.24.0).

Runtime baseline: native llama.cpp v1.1.0-6 and Web use upstream v1.1.0@171527522610996f5f0acf12334e185156ca8f44; native LiteRT-LM uses v0.20.0-2 and stable-diffusion uses v0.4.0-1. Web LiteRT-LM uses @litert-lm/core@0.20.0. Manifest SHA-256: 0cafdc729d985d61407f66b07c99c53ac935bef4572c9d596c2a3704c21b68c0.

0.24.0#

  • Add LlamaEngine.getLoadReport() to report the resolved device, threads, context and typed fallback reasons for the loaded model.
  • Add native llama.cpp generation from exact token IDs, including prefill without sampling and token-prompt observation.
  • Adopt llamadart-native v1.1.0-4 (llama.cpp v1.1.0). Android model downloads verify SHA-256 with the native runtime when it supports file hashing, with Dart verification on older runtimes.
  • Update native LiteRT-LM to v0.20.0-1, which includes the Android NPU placement ABI v1 exports.
  • Reduce strict grammar sampling cost on large native GGUF vocabularies while preserving greedy and seeded output. Eligible greedy requests use the shortlist at any topK.
  • Model downloads back off between retries and reset the retry budget after resumable progress, batch file writes while preserving progress events and resumable partial files, and reuse a successful SHA-256 verification on app-private cache hits.
  • Expose LlamaSpeculativeDecodingUnsupportedException when native llama.cpp cannot initialize a speculative-decoding session, explain the built-in MTP layer requirement when no drafter is supplied, and document Gemma 4 MTP setup and measured Android performance.
  • Throw LlamaInferenceException when native llama.cpp sampling returns LLAMA_TOKEN_NULL without a C++ exception message.
  • Resolve native llama.cpp thinking-budget symbols through the selected code asset so sealed desktop CLI and in-process Apple bundles can report and apply thinking budgets without filesystem fallback lookups.
  • Document LiteRT-LM CPU and GPU latency and throughput across four Pixel devices and explain how to select CPU on Android.
  • Includes every fix published in 0.23.1.
  • Keep the example chat app’s typewriter in step with fast replies so the end of the turn does not reveal a large backlog at once.
  • Studio improves model-fit estimates and GGUF vision resolution, prewarms native Gemma 4 Chat, clarifies MTP fallback and reasoning recovery, smooths streaming, and improves runtime device, context and token reporting in the app and Markdown exports.
  • Explicit Android LiteRT-LM NPU requests now throw LlamaUnsupportedException when engine admission or turn participation cannot be confirmed. An explicit NPU turn streams nothing until it ends because placement ABI 1 reports participation only at turn completion.
  • Expose LiteRT-LM NPU partition admission and latest-turn placement in the load report and runtime client.
  • Support byte-backed image tool results on WebGPU with a compatible vision projector, chat template and bridge.
  • Support image tool results with Qwen3.5 XML chat templates and a vision projector on native llama.cpp.
  • Support image tool results with Gemma 4 chat templates and a vision projector on native llama.cpp.
  • [Studio] Bundle the Google Tensor G6 Android arm64 dispatch and notices, add the verified Gemma 4 E2B G6 download, show observed TPU placement in the Inspector, and cap the G6 bundle at its compiled 4,096-token context.
  • Document Android LiteRT-LM NPU setup, Google Tensor G6 dispatch packaging and per-turn placement checks, including the install-time split verified with bundletool and the qualified Studio app-packaged setup.
  • Keep default WebGPU bridge assets at v0.1.96 (unchanged from 0.23.0).

Runtime baseline: native llama.cpp v1.1.0-4 and Web use upstream v1.1.0@171527522610996f5f0acf12334e185156ca8f44; native LiteRT-LM uses v0.20.0-1 and stable-diffusion uses v0.4.0-1. Web LiteRT-LM uses @litert-lm/core@0.20.0. Manifest SHA-256: 0cafdc729d985d61407f66b07c99c53ac935bef4572c9d596c2a3704c21b68c0.

Searches the latest release. Esc to close.