From a163bd372c7c27a80f3959d61bbafd757d67da36 Mon Sep 17 00:00:00 2001 From: Jhin Lee Date: Mon, 9 Nov 2026 15:21:12 -0500 Subject: [PATCH] Prepare 0.19.2 release --- CHANGELOG.md | 19 +++++++++++-------- README.md | 10 +++++----- example/chat_app/pubspec.lock | 8 ++++---- .../llamadart_litert_lm_flutter/CHANGELOG.md | 4 ++++ .../llamadart_litert_lm_flutter/README.md | 4 ++-- .../llamadart_litert_lm_flutter/pubspec.yaml | 2 +- .../llamadart_llama_cpp_flutter/CHANGELOG.md | 4 ++++ .../llamadart_llama_cpp_flutter/README.md | 4 ++-- .../llamadart_llama_cpp_flutter/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 ++++ .../README.md | 4 ++-- .../pubspec.yaml | 2 +- packages/llamadart_validation/pubspec.lock | 2 +- pubspec.yaml | 2 +- website/docs/changelog/recent-releases.md | 17 ++++++++++------- website/docs/getting-started/installation.md | 10 +++++----- website/examples/observability/pubspec.lock | 2 +- 17 files changed, 59 insertions(+), 41 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de4702ddd..435b85fe9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,14 @@ -## Unreleased - -- Fix `dart run llamadart:doctor_native --runtime litert_lm` on macOS reporting `ASSET_NOT_DECLARED` for a working runtime: it now checks the LiteRT-LM runtime the build hook keeps in its cache and reports `target_source: build_hook_cache` ([#1855](https://github.com/leehack/llamadart/issues/1855)). -- Native LiteRT-LM `generate()` now sends the prompt unchanged, like other backends, instead of wrapping it in the bundle's chat turn, so `create()` requests that fall back to a rendered prompt (a trailing system message, `parallelToolCalls: true`) are no longer templated twice. A prompt that starts with the model's start token, such as Gemma's ``, no longer gets a second one; an empty prompt throws `LlamaArgumentException`; and pre-1.0 LiteRT-LM runtime overrides without the conversation template setter refuse raw `generate()` with `LlamaUnsupportedException` ([#1853](https://github.com/leehack/llamadart/issues/1853)). -- Native `.litertlm` `getMetadata()['tokenizer.chat_template']` and `engine.chatTemplate(...)` now show the template the LiteRT-LM runtime renders, such as the embedded Qwen3.5 or Gemma bundle template; 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 their own template, matching generation ([#1836](https://github.com/leehack/llamadart/issues/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, as documented ([#1867](https://github.com/leehack/llamadart/issues/1867)). -- Keep the start of a tag that a finished reply ends in, such as `` that comes before any `` 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 stream used to depend on how the reply was chunked and could repeat the text before the tag as both content and reasoning ([#1858](https://github.com/leehack/llamadart/issues/1858)). +## 0.19.2 + +- 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](https://github.com/leehack/llamadart/issues/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 ``, 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](https://github.com/leehack/llamadart/issues/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(...)`. 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](https://github.com/leehack/llamadart/issues/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](https://github.com/leehack/llamadart/issues/1867)). +- Keep the start of a tag a finished reply ends in, such as `` that comes before any `` 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](https://github.com/leehack/llamadart/issues/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`. ## 0.19.1 diff --git a/README.md b/README.md index 47b0bf9b9..5cf52aae4 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ LFM2 replies cut off at a reported length limit expose raw `partialToolCalls` di ```yaml dependencies: - llamadart: ^0.19.1 + llamadart: ^0.19.2 ``` ```bash @@ -55,10 +55,10 @@ companion shares its core's `MAJOR.MINOR` and constrains `llamadart` to it. ```yaml dependencies: - llamadart: ^0.19.1 - llamadart_llama_cpp_flutter: ^0.19.1 # GGUF / llama.cpp - llamadart_litert_lm_flutter: ^0.19.1 # Apple .litertlm / LiteRT-LM targets - llamadart_stable_diffusion_flutter: ^0.19.1 # Apple image generation, opt-in + llamadart: ^0.19.2 + llamadart_llama_cpp_flutter: ^0.19.2 # GGUF / llama.cpp + llamadart_litert_lm_flutter: ^0.19.2 # Apple .litertlm / LiteRT-LM targets + llamadart_stable_diffusion_flutter: ^0.19.2 # Apple image generation, opt-in ``` Pairing rules, the SwiftPM bootstrap and the privacy manifest are in diff --git a/example/chat_app/pubspec.lock b/example/chat_app/pubspec.lock index 98171f04e..bfe4e5286 100644 --- a/example/chat_app/pubspec.lock +++ b/example/chat_app/pubspec.lock @@ -421,28 +421,28 @@ packages: path: "../.." relative: true source: path - version: "0.19.1" + version: "0.19.2" llamadart_litert_lm_flutter: dependency: "direct main" description: path: "../../packages/llamadart_litert_lm_flutter" relative: true source: path - version: "0.19.1" + version: "0.19.2" llamadart_llama_cpp_flutter: dependency: "direct main" description: path: "../../packages/llamadart_llama_cpp_flutter" relative: true source: path - version: "0.19.1" + version: "0.19.2" llamadart_stable_diffusion_flutter: dependency: "direct main" description: path: "../../packages/llamadart_stable_diffusion_flutter" relative: true source: path - version: "0.19.1" + version: "0.19.2" llamadart_validation: dependency: "direct main" description: diff --git a/packages/llamadart_litert_lm_flutter/CHANGELOG.md b/packages/llamadart_litert_lm_flutter/CHANGELOG.md index 88c03982f..f7deb56f3 100644 --- a/packages/llamadart_litert_lm_flutter/CHANGELOG.md +++ b/packages/llamadart_litert_lm_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.19.2 + +- Refresh README installation guidance for core `0.19.2`; Apple SwiftPM stays pinned to `leehack/litert-lm-native@v0.19.1-2`. + ## 0.19.1 - Pair with core `>=0.19.1 <0.20.0`; update Apple SwiftPM to diff --git a/packages/llamadart_litert_lm_flutter/README.md b/packages/llamadart_litert_lm_flutter/README.md index 7e4886928..17518f23a 100644 --- a/packages/llamadart_litert_lm_flutter/README.md +++ b/packages/llamadart_litert_lm_flutter/README.md @@ -27,8 +27,8 @@ also request an x86_64 Simulator slice must exclude x86_64 for LiteRT-LM builds. ```yaml dependencies: - llamadart: ^0.19.1 - llamadart_litert_lm_flutter: ^0.19.1 + llamadart: ^0.19.2 + llamadart_litert_lm_flutter: ^0.19.2 ``` This package has no runtime Dart API of its own. Import `package:llamadart` diff --git a/packages/llamadart_litert_lm_flutter/pubspec.yaml b/packages/llamadart_litert_lm_flutter/pubspec.yaml index 30ee0a353..0a372134c 100644 --- a/packages/llamadart_litert_lm_flutter/pubspec.yaml +++ b/packages/llamadart_litert_lm_flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: llamadart_litert_lm_flutter description: Flutter Apple SwiftPM runtime companion package for llamadart LiteRT-LM support. -version: 0.19.1 +version: 0.19.2 repository: https://github.com/leehack/llamadart/tree/main/packages/llamadart_litert_lm_flutter homepage: https://github.com/leehack/llamadart issue_tracker: https://github.com/leehack/llamadart/issues diff --git a/packages/llamadart_llama_cpp_flutter/CHANGELOG.md b/packages/llamadart_llama_cpp_flutter/CHANGELOG.md index 514623c69..ba72ede22 100644 --- a/packages/llamadart_llama_cpp_flutter/CHANGELOG.md +++ b/packages/llamadart_llama_cpp_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.19.2 + +- Refresh README installation guidance for core `0.19.2`; Apple SwiftPM stays pinned to `leehack/llamadart-native@v0.9.0`. + ## 0.19.1 - Raise the Flutter floor to `>=3.38.6`, the first Flutter whose Dart (3.10.7) diff --git a/packages/llamadart_llama_cpp_flutter/README.md b/packages/llamadart_llama_cpp_flutter/README.md index cab0dec64..987b3d598 100644 --- a/packages/llamadart_llama_cpp_flutter/README.md +++ b/packages/llamadart_llama_cpp_flutter/README.md @@ -13,8 +13,8 @@ with core `0.19.x`. Upgrade both together. Earlier pairings are in the ```yaml dependencies: - llamadart: ^0.19.1 - llamadart_llama_cpp_flutter: ^0.19.1 + llamadart: ^0.19.2 + llamadart_llama_cpp_flutter: ^0.19.2 ``` This package has no runtime Dart API of its own. Import `package:llamadart` diff --git a/packages/llamadart_llama_cpp_flutter/pubspec.yaml b/packages/llamadart_llama_cpp_flutter/pubspec.yaml index d8ca1285d..9f44f22fe 100644 --- a/packages/llamadart_llama_cpp_flutter/pubspec.yaml +++ b/packages/llamadart_llama_cpp_flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: llamadart_llama_cpp_flutter description: Flutter Apple SwiftPM runtime companion package for llamadart llama.cpp and GGUF support. -version: 0.19.1 +version: 0.19.2 repository: https://github.com/leehack/llamadart/tree/main/packages/llamadart_llama_cpp_flutter homepage: https://github.com/leehack/llamadart issue_tracker: https://github.com/leehack/llamadart/issues diff --git a/packages/llamadart_stable_diffusion_flutter/CHANGELOG.md b/packages/llamadart_stable_diffusion_flutter/CHANGELOG.md index 3fb628a7f..46ebd0d89 100644 --- a/packages/llamadart_stable_diffusion_flutter/CHANGELOG.md +++ b/packages/llamadart_stable_diffusion_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.19.2 + +- Refresh README installation guidance for core `0.19.2`; Apple SwiftPM stays pinned to `leehack/stable-diffusion-native@v0.3.0-3`. + ## 0.19.1 - Raise the Flutter floor to `>=3.38.6`, the first Flutter whose Dart (3.10.7) diff --git a/packages/llamadart_stable_diffusion_flutter/README.md b/packages/llamadart_stable_diffusion_flutter/README.md index 71e6f96d1..939b3c9bc 100644 --- a/packages/llamadart_stable_diffusion_flutter/README.md +++ b/packages/llamadart_stable_diffusion_flutter/README.md @@ -19,8 +19,8 @@ with core `0.19.x`. Upgrade both together. Earlier pairings are in the ```yaml dependencies: - llamadart: ^0.19.1 - llamadart_stable_diffusion_flutter: ^0.19.1 + llamadart: ^0.19.2 + llamadart_stable_diffusion_flutter: ^0.19.2 ``` Adding the package selects the `stable_diffusion` runtime for Flutter iOS and diff --git a/packages/llamadart_stable_diffusion_flutter/pubspec.yaml b/packages/llamadart_stable_diffusion_flutter/pubspec.yaml index 085d235a4..df82d6e53 100644 --- a/packages/llamadart_stable_diffusion_flutter/pubspec.yaml +++ b/packages/llamadart_stable_diffusion_flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: llamadart_stable_diffusion_flutter description: Flutter Apple SwiftPM runtime companion package for llamadart stable-diffusion.cpp image generation. -version: 0.19.1 +version: 0.19.2 repository: https://github.com/leehack/llamadart/tree/main/packages/llamadart_stable_diffusion_flutter homepage: https://github.com/leehack/llamadart issue_tracker: https://github.com/leehack/llamadart/issues diff --git a/packages/llamadart_validation/pubspec.lock b/packages/llamadart_validation/pubspec.lock index 354610761..d204ea004 100644 --- a/packages/llamadart_validation/pubspec.lock +++ b/packages/llamadart_validation/pubspec.lock @@ -215,7 +215,7 @@ packages: path: "../.." relative: true source: path - version: "0.19.1" + version: "0.19.2" logging: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 405bbac9a..937f71aa2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: llamadart description: Cross-platform, on-device LLM inference for Dart and Flutter. Run GGUF (llama.cpp) and LiteRT-LM models locally on Android, iOS, macOS, Windows, Linux and web. -version: 0.19.1 +version: 0.19.2 homepage: https://llamadart.leehack.com repository: https://github.com/leehack/llamadart issue_tracker: https://github.com/leehack/llamadart/issues diff --git a/website/docs/changelog/recent-releases.md b/website/docs/changelog/recent-releases.md index f0ffd4768..1320e4ac5 100644 --- a/website/docs/changelog/recent-releases.md +++ b/website/docs/changelog/recent-releases.md @@ -11,14 +11,17 @@ For upgrade planning, combine this page with the [Upgrade Checklist](../migration/upgrade-checklist). For breaking changes, validate against the exact release tag notes. -## Unreleased +## 0.19.2 -- Fix `dart run llamadart:doctor_native --runtime litert_lm` on macOS reporting `ASSET_NOT_DECLARED` for a working runtime: it now checks the LiteRT-LM runtime the build hook keeps in its cache and reports `target_source: build_hook_cache` ([#1855](https://github.com/leehack/llamadart/issues/1855)). -- Native LiteRT-LM `generate()` now sends the prompt unchanged, like other backends, instead of wrapping it in the bundle's chat turn, so `create()` requests that fall back to a rendered prompt (a trailing system message, `parallelToolCalls: true`) are no longer templated twice. A prompt that starts with the model's start token, such as Gemma's ``, no longer gets a second one; an empty prompt throws `LlamaArgumentException`; and pre-1.0 LiteRT-LM runtime overrides without the conversation template setter refuse raw `generate()` with `LlamaUnsupportedException` ([#1853](https://github.com/leehack/llamadart/issues/1853)). -- Native `.litertlm` `getMetadata()['tokenizer.chat_template']` and `engine.chatTemplate(...)` now show the template the LiteRT-LM runtime renders, such as the embedded Qwen3.5 or Gemma bundle template; 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 their own template, matching generation ([#1836](https://github.com/leehack/llamadart/issues/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, as documented ([#1867](https://github.com/leehack/llamadart/issues/1867)). -- Keep the start of a tag that a finished reply ends in, such as `` that comes before any `` 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 stream used to depend on how the reply was chunked and could repeat the text before the tag as both content and reasoning ([#1858](https://github.com/leehack/llamadart/issues/1858)). +- Keep 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](https://github.com/leehack/llamadart/issues/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 ``, 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](https://github.com/leehack/llamadart/issues/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(...)`. 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](https://github.com/leehack/llamadart/issues/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](https://github.com/leehack/llamadart/issues/1867)). +- Keep the start of a tag a finished reply ends in, such as `` that comes before any `` 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](https://github.com/leehack/llamadart/issues/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`. ## 0.19.1 diff --git a/website/docs/getting-started/installation.md b/website/docs/getting-started/installation.md index 1ef2953ba..0bd731ce7 100644 --- a/website/docs/getting-started/installation.md +++ b/website/docs/getting-started/installation.md @@ -23,7 +23,7 @@ For Genkit or Flutter Edge AI integration setup, see ```yaml dependencies: - llamadart: ^0.19.1 + llamadart: ^0.19.2 ``` Then resolve packages: @@ -42,10 +42,10 @@ Apple XCFrameworks: ```yaml dependencies: - llamadart: ^0.19.1 - llamadart_llama_cpp_flutter: ^0.19.1 # GGUF / llama.cpp - llamadart_litert_lm_flutter: ^0.19.1 # Apple .litertlm / LiteRT-LM targets - llamadart_stable_diffusion_flutter: ^0.19.1 # Apple image generation, opt-in + llamadart: ^0.19.2 + llamadart_llama_cpp_flutter: ^0.19.2 # GGUF / llama.cpp + llamadart_litert_lm_flutter: ^0.19.2 # Apple .litertlm / LiteRT-LM targets + llamadart_stable_diffusion_flutter: ^0.19.2 # Apple image generation, opt-in ``` Companions use the core's `MAJOR.MINOR`; pub refuses a mismatched pair. diff --git a/website/examples/observability/pubspec.lock b/website/examples/observability/pubspec.lock index e18c87511..b26007038 100644 --- a/website/examples/observability/pubspec.lock +++ b/website/examples/observability/pubspec.lock @@ -271,7 +271,7 @@ packages: path: "../../.." relative: true source: path - version: "0.19.1" + version: "0.19.2" logging: dependency: transitive description: