Documentation for v0.24.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.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.

0.23.1#

  • Block llama.cpp GPU loads on Android when an Imagination PowerVR proprietary Vulkan device is registered, as for Qualcomm: ComputeDevice.gpu throws LlamaUnsupportedException and automatic GPU attempts fall back to CPU with a warning.
  • Keep the persistent CPU threadpool for llama.cpp CPU loads, including Android Vulkan fallback. With llamadart-native v1.1.0-2, Qwen3.5-0.8B decode on tested Tensor G6 devices rose from about 4 to about 58 tokens/s.
  • Keep the loaded llama.cpp model if setModelFromFileDescriptor rejects the load parameters, and reject out-of-range descriptors before truncation. Android Qwen3.5-0.8B descriptor loads keep their multimodal projector on CPU, like path loads.
  • Fix LiteRT-LM chats failing after an assistant turn that contains only thinking.
  • Fix LiteRT-LM GPU loads falling back to CPU or failing when numberOfThreads is set. Reject prefillChunkSize or dispatchLibDir that contradicts an explicit device during load.
  • Keep the published Apple llama.cpp companion 0.23.0 compatible with core 0.23.1. Upgrade the companion to 0.23.1 to enable the persistent CPU threadpool.
  • Keep default WebGPU bridge assets at v0.1.96 (unchanged from 0.23.0).

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

0.23.0#

  • Add GenerationParams.dryMultiplier, dryBase, dryAllowedLength, dryPenaltyLastN and drySequenceBreakers (DRY repetition penalty) for native llama.cpp, reported by LlamaEngineCapabilities.samplerControls; WebGPU and LiteRT-LM reject them. Native llama.cpp rejects a dryAllowedLength at or above the DRY window (capped at the context size) and settings that can exhaust a token allow-list with LlamaArgumentException, and a failure inside DRY sampler setup becomes LlamaInferenceException instead of ending the process (llamadart-native v1.1.0-1 and later).
  • Add LlamaEngine.setModelFromFileDescriptor to load a single-file GGUF from an open file descriptor without a copy (Android document grants, user-picked iOS/macOS files); it throws LlamaUnsupportedException on Windows, the Web, LiteRT-LM and native runtimes older than llamadart-native v1.1.0-1.
  • Adopt llamadart-native v1.1.0-1 (llama.cpp v1.1.0). Native runtime overrides must now be built from llama.cpp v1.1.0; v1.0.0 builds throw LlamaUnsupportedException. On Linux x64, the HIP backend needs ROCm 6.3 or newer.
  • Aligned default WebGPU bridge assets to v0.1.96 (llama.cpp v1.1.0). Web model loading now recovers after a failed load instead of retiring the core, reads models on demand from OPFS and Cache Storage, uses a 16 MiB tensor read buffer and normalizes GPU-layer settings.
  • Block llama.cpp GPU loads on Android when a Qualcomm proprietary Vulkan device is registered: ComputeDevice.gpu throws LlamaUnsupportedException and automatic GPU attempts fall back to CPU with a warning.
  • Unsupported sampler errors now name the tuning fields to reset after disabling XTC, dynamic temperature, or Mirostat.
  • Show backend-reported per-request token counts and timings in the example chat app.

Runtime baseline: native llama.cpp v1.1.0-1 and Web use upstream v1.1.0@171527522610996f5f0acf12334e185156ca8f44; native LiteRT-LM uses v0.20.0 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.