Skip to content

v0.19.3

Choose a tag to compare

@github-actions github-actions released this 10 Nov 03:25
· 229 commits to main since this release
221fd0f
  • Ship the 0.19.2 changes below, which never reached pub.dev: pub.dev rejected the 0.19.2 CHANGELOG.md as larger than 256 KiB, so notes for releases before 0.10.0 moved to the changelog archive.
  • Keep the default WebGPU bridge assets at v0.1.83 (unchanged from 0.19.1).
  • Fix dart run llamadart:doctor_native --runtime litert_lm on macOS reporting ASSET_NOT_DECLARED for a working runtime: it now checks the runtime the build hook keeps in its cache and reports target_source: build_hook_cache (#1855).
  • Send the prompt unchanged from native LiteRT-LM generate(), like other backends, instead of wrapping it in the bundle's chat turn, so create() requests that fall back to a rendered prompt are no longer templated twice. A prompt that already starts with the model's start token, such as Gemma's <bos>, no longer gets a second one; an empty prompt throws LlamaArgumentException; and pre-1.0 runtime overrides without the conversation template setter refuse raw generate() with LlamaUnsupportedException (#1853).
  • Report the template native LiteRT-LM renders, such as the embedded Qwen3.5 or Gemma bundle template, in getMetadata()['tokenizer.chat_template'] and engine.chatTemplate(...), whose tokenCount matches the runtime's prefill for Gemma 4 and Qwen3.5. Format detection and parsing keep the file-name template, now reported as llamadart.chat_template.parsing, so code that detects the format from tokenizer.chat_template should read that key first. Native JSON Schema chat now refuses bundles whose text chats the runtime renders with its own template, matching generation (#1836).
  • Fix native LiteRT-LM chat failing with "Failed to apply template" on a bundle whose chat template concatenates message content as a string; llamadart now adapts such a template on the bundled C API 1.0 runtime too (#1867).
  • Keep the start of a tag a finished reply ends in, such as </thi when generation stops mid-tag, in an unended thought's reasoning, as llama.cpp v0.9.0 does; it used to be dropped (#1531).
  • Keep a </think> that comes before any <think> in a Hermes, Qwen3-Coder XML or DeepSeek V3 reply as content, with every thinking tag after it, when the prompt opened no thought (such as Qwen3 with thinking on), as llama.cpp does. The result used to depend on how the stream was chunked and could repeat the text before the tag as both content and reasoning (#1858).

Runtime baseline: native llama.cpp v0.9.0 and Web use upstream v0.9.0@cd959bae99ff4bed22bef2604f45241c09bbb8c8; native LiteRT-LM uses v0.19.1-2 and stable-diffusion uses v0.3.0-3. Web LiteRT-LM uses @litert-lm/core@0.19.0. Manifest SHA-256: ae6f488408672f9ba28d8f9e664a2b85f4e12048f290e259e18dd0b750c038e5.