From e88158a8c0f83d9078eb88ed8bf0ff52b2db13d1 Mon Sep 17 00:00:00 2001 From: Jhin Lee Date: Fri, 16 Oct 2026 06:23:58 -0400 Subject: [PATCH] chore: prepare 0.13.1 --- CHANGELOG.md | 19 +++++++++++++------ README.md | 11 ++++++----- example/chat_app/pubspec.lock | 2 +- .../llamadart_litert_lm_flutter/README.md | 4 ++-- .../llamadart_llama_cpp_flutter/README.md | 4 ++-- .../README.md | 4 ++-- packages/llamadart_validation/pubspec.lock | 2 +- pubspec.yaml | 2 +- skills/llamadart-image-generation/SKILL.md | 8 ++++---- website/docs/changelog/recent-releases.md | 19 +++++++++++++------ website/docs/getting-started/installation.md | 11 ++++++----- website/docs/guides/image-generation.md | 2 +- .../docs/maintainers/native-and-web-sync.md | 2 +- website/examples/observability/README.md | 2 +- website/examples/observability/pubspec.lock | 2 +- 15 files changed, 55 insertions(+), 39 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97fee6ab1..1d4488ef9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Unreleased +## 0.13.1 - With `llamadart_native_tag` or `llamadart_native_repository` set, the build hook keeps the release's `SHA256SUMS` beside the cached archive and verifies @@ -31,12 +31,12 @@ such as an untyped property, a non-local `$ref` or one nested too deeply for the stack, as `LlamaUnsupportedException`, and cyclic or other non-JSON schemas as `LlamaArgumentException`, instead of `StateError` or a stack - overflow ([#584](https://github.com/leehack/llamadart/issues/584), - [#1093](https://github.com/leehack/llamadart/issues/1093)). -- Reject a combined tool or schema grammar that llama.cpp would refuse to - load, such as about 2000 Hermes schema tools, with + overflow. A combined tool or schema grammar that llama.cpp would refuse to + load, such as about 2000 Hermes schema tools, is rejected with `LlamaUnsupportedException` before generation instead of a sampler - initialization failure ([#1093](https://github.com/leehack/llamadart/issues/1093)). + initialization failure + ([#584](https://github.com/leehack/llamadart/issues/584), + [#1093](https://github.com/leehack/llamadart/issues/1093)). - Send tool results back on Gemma 2/3/3n and legacy Mistral templates, which failed with `Conversation roles must alternate user/assistant/...`: when a template that rejects the `tool` role fails such a request, it is rendered @@ -49,6 +49,13 @@ running generation that was not cancelled now throws `LlamaStateException` ([#656](https://github.com/leehack/llamadart/issues/656)). +* Aligned the default WebGPU bridge assets to `v0.1.59`, unchanged from 0.13.0: + they embed llama.cpp `v0.6.0`, are qualified against native `v0.6.0`, and + keep Web/native llama.cpp `v0.6.0@d81235049384534c167caea52b85a694f6103d14` + parity; Web LiteRT-LM is `@litert-lm/core@0.18.0`. Immutable Web asset + manifest: + `f823b10417b212ff1f66aa1c46bf78af7d9c393497dfcf0fa3a4f77adeb260eb`. + ## 0.13.0 - Pair this release with Apple companions `llamadart_llama_cpp_flutter`, diff --git a/README.md b/README.md index 64242256a..4a08e6bf5 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ experimental and may change, and the runtime is opt-in. - **Flutter iOS/macOS apps** should add the `llamadart_stable_diffusion_flutter` companion (see [Install](#install)), which links the runtime through Swift Package Manager and selects it without - the entry above. Pair companion `0.13.0` with core `0.13.0`, `0.0.3` with + the entry above. Pair companion `0.13.0` with core `0.13.1` and `0.13.0`, `0.0.3` with core `0.12.2`, `0.12.1` and `0.12.0`, and `0.0.2` with core `0.11.1` and `0.11.0`. Without it, `all` leaves the image runtime out of a Flutter iOS/macOS app @@ -198,13 +198,13 @@ For Dart or Flutter apps: ```yaml dependencies: - llamadart: ^0.13.0 + llamadart: ^0.13.1 ``` Flutter iOS/macOS apps that should link Apple XCFrameworks through Swift Package Manager should also add the runtime companion packages they need: -Pair companion `0.13.0` with core `0.13.0` and `0.0.23` with core `0.12.2` +Pair companion `0.13.0` with core `0.13.1` and `0.13.0`, and `0.0.23` with core `0.12.2` for llama.cpp `v0.6.0-3`, and keep `0.0.22` with core `0.12.1` and `0.12.0` for `v0.6.0-2`. Keep companion `0.0.21` with core `0.11.1` and `0.11.0` for llama.cpp v0.5.0 bindings, and core `0.10.0` and `0.9.0` with companion `0.0.20`, @@ -218,13 +218,14 @@ overrides fail the build; resolve the matching companion and rerun ```yaml dependencies: - llamadart: ^0.13.0 + llamadart: ^0.13.1 llamadart_llama_cpp_flutter: ^0.13.0 # GGUF / llama.cpp llamadart_litert_lm_flutter: ^0.13.0 # Apple .litertlm / LiteRT-LM targets llamadart_stable_diffusion_flutter: ^0.13.0 # Apple image generation, opt-in ``` -Pair `llamadart_stable_diffusion_flutter` `0.13.0` with core `0.13.0`, and +Pair `llamadart_stable_diffusion_flutter` `0.13.0` with core `0.13.1` and +`0.13.0`, and `0.0.3` with core `0.12.2`, `0.12.1` and `0.12.0`. Keep `0.0.2` with core `0.11.1` and `0.11.0`, and `0.0.1` with core `0.10.0`; older cores, including `0.9.x`, diff --git a/example/chat_app/pubspec.lock b/example/chat_app/pubspec.lock index a1a4592cb..e2c6c2fe0 100644 --- a/example/chat_app/pubspec.lock +++ b/example/chat_app/pubspec.lock @@ -413,7 +413,7 @@ packages: path: "../.." relative: true source: path - version: "0.13.0" + version: "0.13.1" llamadart_litert_lm_flutter: dependency: "direct main" description: diff --git a/packages/llamadart_litert_lm_flutter/README.md b/packages/llamadart_litert_lm_flutter/README.md index ed6d6f750..228cf4aec 100644 --- a/packages/llamadart_litert_lm_flutter/README.md +++ b/packages/llamadart_litert_lm_flutter/README.md @@ -31,7 +31,7 @@ also request an x86_64 Simulator slice must exclude x86_64 for LiteRT-LM builds. ```yaml dependencies: - llamadart: ^0.13.0 + llamadart: ^0.13.1 llamadart_litert_lm_flutter: ^0.13.0 ``` @@ -39,7 +39,7 @@ This package has no runtime Dart API of its own. Import `package:llamadart` normally from the core package and use `LlamaBackend()` / `LlamaEngine` there. The Apple SwiftPM manifest pins `leehack/litert-lm-native@v0.18.0-1`. -Pair companion `0.13.0` with core `0.13.0` and `0.0.16` with core `0.12.2`; +Pair companion `0.13.0` with core `0.13.1` and `0.13.0`, and `0.0.16` with core `0.12.2`; companion `0.0.15` retains `v0.18.0` for core `0.12.1`, `0.0.14` pairs with core `0.12.0`, and `0.0.13` retains `v0.17.0-8` for core `0.11.1` and `0.11.0`. diff --git a/packages/llamadart_llama_cpp_flutter/README.md b/packages/llamadart_llama_cpp_flutter/README.md index 16b6f03ee..647905956 100644 --- a/packages/llamadart_llama_cpp_flutter/README.md +++ b/packages/llamadart_llama_cpp_flutter/README.md @@ -7,7 +7,7 @@ Add this package to a Flutter iOS/macOS app when the app should link the prebuilt llama.cpp Apple XCFramework through SwiftPM instead of relying on the core package's native-assets fallback. -Pair companion `0.13.0` with core `0.13.0` and `0.0.23` with core `0.12.2` +Pair companion `0.13.0` with core `0.13.1` and `0.13.0`, and `0.0.23` with core `0.12.2` for llama.cpp `v0.6.0-3`, and keep `0.0.22` with core `0.12.1` and `0.12.0` for `v0.6.0-2`. Keep companion `0.0.21` with core `0.11.1` and `0.11.0` for llama.cpp v0.5.0 bindings, and core `0.10.0` and `0.9.0` with companion `0.0.20`, @@ -16,7 +16,7 @@ core `0.8.23` with companion `0.0.18`, and core `0.8.22` with companion ```yaml dependencies: - llamadart: ^0.13.0 + llamadart: ^0.13.1 llamadart_llama_cpp_flutter: ^0.13.0 ``` diff --git a/packages/llamadart_stable_diffusion_flutter/README.md b/packages/llamadart_stable_diffusion_flutter/README.md index a1780fcbc..842dd6652 100644 --- a/packages/llamadart_stable_diffusion_flutter/README.md +++ b/packages/llamadart_stable_diffusion_flutter/README.md @@ -13,13 +13,13 @@ writes `MinimumOSVersion` 13.0 into it, while the library requires iOS 16.4. The hook reports this as an Xcode build warning, which Xcode and `xcodebuild` show but plain `flutter build` and `flutter run` output does not. -Pair companion `0.13.0` with core `0.13.0`, and `0.0.3` with core `0.12.2`, +Pair companion `0.13.0` with core `0.13.1` and `0.13.0`, and `0.0.3` with core `0.12.2`, `0.12.1` and `0.12.0`. Keep `0.0.2` with core `0.11.1` and `0.11.0`, and `0.0.1` with core `0.10.0`; older cores, including `0.9.x`, ignore it. ```yaml dependencies: - llamadart: ^0.13.0 + llamadart: ^0.13.1 llamadart_stable_diffusion_flutter: ^0.13.0 ``` diff --git a/packages/llamadart_validation/pubspec.lock b/packages/llamadart_validation/pubspec.lock index 014da1e85..6c8ee07b1 100644 --- a/packages/llamadart_validation/pubspec.lock +++ b/packages/llamadart_validation/pubspec.lock @@ -207,7 +207,7 @@ packages: path: "../.." relative: true source: path - version: "0.13.0" + version: "0.13.1" logging: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index db1d3bd75..83be7e6f1 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.13.0 +version: 0.13.1 homepage: https://llamadart.leehack.com repository: https://github.com/leehack/llamadart issue_tracker: https://github.com/leehack/llamadart/issues diff --git a/skills/llamadart-image-generation/SKILL.md b/skills/llamadart-image-generation/SKILL.md index 1f63f5e60..9bc365b11 100644 --- a/skills/llamadart-image-generation/SKILL.md +++ b/skills/llamadart-image-generation/SKILL.md @@ -44,10 +44,10 @@ description: >- it as not bundled; a list naming `stable_diffusion` bundles it through the hook, and App Store Connect rejects that iOS framework's `MinimumOSVersion`. `flutter build ios` output shows neither build warning; - Xcode and `xcodebuild` show both. Pair companion `0.13.0` with core `0.13.0`, - `0.0.3` with core `0.12.2`, `0.12.1` and `0.12.0`, and `0.0.2` with core - `0.11.1` and `0.11.0`. Adding - it opts the app into the runtime (about 37 MB per Apple target). + Xcode and `xcodebuild` show both. Pair companion `0.13.0` with core `0.13.1` + and `0.13.0`, `0.0.3` with core `0.12.2`, `0.12.1` and `0.12.0`, and + `0.0.2` with core `0.11.1` and `0.11.0`. Adding it opts the app into the + runtime (about 37 MB per Apple target). - Platforms: Android arm64 (CPU only; Armv8.2 dot-product and fp16), iOS 16.4+ and macOS 13.3+ (Metal), Linux arm64/x64 and Windows x64 (CPU or Vulkan; x64 CPUs need AVX2, FMA, F16C and BMI2). Web, Android x64 and Windows arm64 diff --git a/website/docs/changelog/recent-releases.md b/website/docs/changelog/recent-releases.md index e6f7669f0..cea975ca8 100644 --- a/website/docs/changelog/recent-releases.md +++ b/website/docs/changelog/recent-releases.md @@ -7,7 +7,7 @@ For canonical full release notes, use: - [`CHANGELOG.md`](https://github.com/leehack/llamadart/blob/main/CHANGELOG.md) -## Unreleased +## 0.13.1 - With `llamadart_native_tag` or `llamadart_native_repository` set, the build hook keeps the release's `SHA256SUMS` beside the cached archive and verifies @@ -40,12 +40,12 @@ For canonical full release notes, use: such as an untyped property, a non-local `$ref` or one nested too deeply for the stack, as `LlamaUnsupportedException`, and cyclic or other non-JSON schemas as `LlamaArgumentException`, instead of `StateError` or a stack - overflow ([#584](https://github.com/leehack/llamadart/issues/584), - [#1093](https://github.com/leehack/llamadart/issues/1093)). -- Reject a combined tool or schema grammar that llama.cpp would refuse to - load, such as about 2000 Hermes schema tools, with + overflow. A combined tool or schema grammar that llama.cpp would refuse to + load, such as about 2000 Hermes schema tools, is rejected with `LlamaUnsupportedException` before generation instead of a sampler - initialization failure ([#1093](https://github.com/leehack/llamadart/issues/1093)). + initialization failure + ([#584](https://github.com/leehack/llamadart/issues/584), + [#1093](https://github.com/leehack/llamadart/issues/1093)). - Send tool results back on Gemma 2/3/3n and legacy Mistral templates, which failed with `Conversation roles must alternate user/assistant/...`: when a template that rejects the `tool` role fails such a request, it is rendered @@ -58,6 +58,13 @@ For canonical full release notes, use: running generation that was not cancelled now throws `LlamaStateException` ([#656](https://github.com/leehack/llamadart/issues/656)). +- Aligned default WebGPU bridge assets to `v0.1.59`, unchanged from 0.13.0: + they embed llama.cpp `v0.6.0`, are qualified against native `v0.6.0`, and + keep Web/native llama.cpp `v0.6.0@d81235049384534c167caea52b85a694f6103d14` + parity; Web LiteRT-LM is `@litert-lm/core@0.18.0`. Immutable Web asset + manifest: + `f823b10417b212ff1f66aa1c46bf78af7d9c393497dfcf0fa3a4f77adeb260eb`. + ## 0.13.0 - Pair this release with Apple companions `llamadart_llama_cpp_flutter`, diff --git a/website/docs/getting-started/installation.md b/website/docs/getting-started/installation.md index 1ed9e4e12..0895aa8e3 100644 --- a/website/docs/getting-started/installation.md +++ b/website/docs/getting-started/installation.md @@ -20,7 +20,7 @@ description: Add llamadart to a Dart or Flutter app, set up Apple and web target ```yaml dependencies: - llamadart: ^0.13.0 + llamadart: ^0.13.1 ``` Then resolve packages: @@ -51,7 +51,7 @@ companion packages you need: ```yaml dependencies: - llamadart: ^0.13.0 + llamadart: ^0.13.1 llamadart_llama_cpp_flutter: ^0.13.0 # GGUF / llama.cpp llamadart_litert_lm_flutter: ^0.13.0 # Apple .litertlm / LiteRT-LM targets llamadart_stable_diffusion_flutter: ^0.13.0 # Apple image generation, opt-in @@ -81,14 +81,14 @@ dependency_overrides: git: https://github.com/leehack/llamadart.git ``` -Pair companion `0.13.0` with core `0.13.0` and `0.0.23` with core `0.12.2`; +Pair companion `0.13.0` with core `0.13.1` and `0.13.0`, and `0.0.23` with core `0.12.2`; keep `0.0.22` with core `0.12.1` and `0.12.0`, and `0.0.21` with core `0.11.1` and `0.11.0`. The build checks the resolved llama.cpp and stable_diffusion companions' runtime pins and fails on a mismatch or on an unverified local `Artifacts` override; the llama.cpp error names the companion release of your core's minor to depend on, such as `^0.13.0` with core `0.13.0`. That check also accepts, with a build warning, a companion whose pin is an earlier build of the same llama.cpp -release: companion `0.0.22` (`v0.6.0-2`) still builds with core `0.12.2` and `0.13.0`, +release: companion `0.0.22` (`v0.6.0-2`) still builds with core `0.12.2`, `0.13.0` and `0.13.1`, but its frameworks lack the minimum OS version keys that App Store validation checks, so move to the companion paired with your core before you ship. On macOS, `llamadart_litert_lm_flutter` links and embeds the complete LiteRT-LM runtime, @@ -109,7 +109,8 @@ universal `flutter build macos` prints architecture 'x86_64'` for each of them. The arm64-only build that [Intel Macs](#intel-macs) describes removes those warnings. -Pair `llamadart_stable_diffusion_flutter` `0.13.0` with core `0.13.0`, and +Pair `llamadart_stable_diffusion_flutter` `0.13.0` with core `0.13.1` and +`0.13.0`, and `0.0.3` with core `0.12.2`, `0.12.1` and `0.12.0`. Keep `0.0.2` with core `0.11.1` and `0.11.0`, and `0.0.1` with core `0.10.0`; older cores, including `0.9.x`, ignore it. Adding it opts iOS and macOS builds into the image generation runtime (about 37 MB per Apple diff --git a/website/docs/guides/image-generation.md b/website/docs/guides/image-generation.md index c81b834fc..51c88ba56 100644 --- a/website/docs/guides/image-generation.md +++ b/website/docs/guides/image-generation.md @@ -101,7 +101,7 @@ selects Vulkan, which it does by default; set Flutter iOS and macOS apps should also add the companion package, which links the runtime's XCFramework through Swift Package Manager and selects the runtime on those platforms by itself, adding about 37 MB per Apple target. -Pair `0.13.0` with core `0.13.0`, `0.0.3` with core `0.12.2`, `0.12.1` and +Pair `0.13.0` with core `0.13.1` and `0.13.0`, `0.0.3` with core `0.12.2`, `0.12.1` and `0.12.0`, and `0.0.2` with core `0.11.1` and `0.11.0`. Cores older than `0.10.0` ignore it: ```yaml diff --git a/website/docs/maintainers/native-and-web-sync.md b/website/docs/maintainers/native-and-web-sync.md index e875f4077..709ece70a 100644 --- a/website/docs/maintainers/native-and-web-sync.md +++ b/website/docs/maintainers/native-and-web-sync.md @@ -256,7 +256,7 @@ Use this checklist in native sync PRs: ## Companion package release handoff -Core `0.13.0` pairs with companions `llamadart_llama_cpp_flutter`, +Core `0.13.1` and `0.13.0` pair with companions `llamadart_llama_cpp_flutter`, `llamadart_litert_lm_flutter` and `llamadart_stable_diffusion_flutter` `0.13.0`, whose SwiftPM pins are `v0.6.0-3`, `v0.18.0-1` and `v0.2.0-3`, respectively. Repository manifests alone do not prove pub.dev publication. diff --git a/website/examples/observability/README.md b/website/examples/observability/README.md index 536d3b41b..d357ebb2a 100644 --- a/website/examples/observability/README.md +++ b/website/examples/observability/README.md @@ -1,6 +1,6 @@ # Observability example -An application-owned OTel adapter for llamadart 0.13.0. This is not the optional +An application-owned OTel adapter for llamadart 0.13.1. This is not the optional companion package tracked in [#696](https://github.com/leehack/llamadart/issues/696). Core dependencies and runtime behavior are unchanged. diff --git a/website/examples/observability/pubspec.lock b/website/examples/observability/pubspec.lock index 17f29d18a..f3887c812 100644 --- a/website/examples/observability/pubspec.lock +++ b/website/examples/observability/pubspec.lock @@ -263,7 +263,7 @@ packages: path: "../../.." relative: true source: path - version: "0.13.0" + version: "0.13.1" logging: dependency: transitive description: