From 418b2c64223c00a152f4325b95b7b4fa6aa8a6b1 Mon Sep 17 00:00:00 2001 From: Jhin Lee Date: Thu, 8 Oct 2026 11:09:39 -0400 Subject: [PATCH] chore: prepare 0.11.1 release Core-only patch: llamadart 0.11.0 -> 0.11.1. Companion versions and the native and WebGPU bridge pins are unchanged. - Promote `## Unreleased` to `## 0.11.1` in both changelogs and restate the unchanged bridge-assets provenance the bridge tag gate requires. - Correct the video part wording of the #959 bullet and wrap the Qwen 3 bullet like its neighbours. - Install snippets and pairing prose name core 0.11.1. - doc/llama_cpp_exit_teardown.md: the layer measurements cover five quits, and "both" means both layers disabled. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 18 ++++++++--- README.md | 27 ++++++++-------- doc/llama_cpp_exit_teardown.md | 11 ++++--- example/chat_app/pubspec.lock | 2 +- .../llamadart_litert_lm_flutter/README.md | 2 +- .../llamadart_llama_cpp_flutter/README.md | 9 +++--- .../README.md | 6 ++-- packages/llamadart_validation/pubspec.lock | 2 +- pubspec.yaml | 2 +- skills/llamadart-image-generation/SKILL.md | 4 +-- website/docs/changelog/recent-releases.md | 18 ++++++++--- website/docs/getting-started/installation.md | 32 +++++++++---------- website/docs/guides/image-generation.md | 3 +- website/examples/observability/README.md | 2 +- website/examples/observability/pubspec.lock | 2 +- 15 files changed, 81 insertions(+), 59 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49c82d43d..3ce693705 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,20 @@ -## Unreleased +## 0.11.1 - Give a chat template that reads content part lists but rejects image and audio parts the media marker in its text instead of failing in the - template, and, for a template that does not take typed content parts, - render a video part in a `chatTemplate` prompt as the media marker instead - of its JSON ([#959](https://github.com/leehack/llamadart/issues/959)). + template, and render a video part in a `chatTemplate` prompt as the media + marker on any template when the messages hold no image or audio part + ([#959](https://github.com/leehack/llamadart/issues/959)). Beside an image + or audio part, a template that is given typed content parts still receives + the video part ([#963](https://github.com/leehack/llamadart/issues/963)). - Fix a possible llama.cpp crash when an image or audio part of a multimodal request fails to load while later parts remain, and native memory leaked when a backend is disposed with a context still open or an embedding fails because the model reports no embedding size ([#947](https://github.com/leehack/llamadart/issues/947), [#610](https://github.com/leehack/llamadart/issues/610)). -- Fix Qwen 3 chat and tool-result history with LiteRT-LM runtimes that normalize message content to arrays. +- Fix Qwen 3 chat and tool-result history with LiteRT-LM runtimes that + normalize message content to arrays. - Work around wrong llama.cpp Vulkan output on some Android GPUs for prompts over 32 tokens (seen on a Pixel 9 Pro, Mali-G715): an Android Vulkan context now decodes a text prompt in micro-batches of at most 8 tokens @@ -24,6 +27,11 @@ - Document that a Flutter macOS app that quits without disposing its engines still exits cleanly, and why disposing them in `onExitRequested` is still recommended ([#826](https://github.com/leehack/llamadart/issues/826)). +* Aligned the default WebGPU bridge assets to `v0.1.54`, unchanged from 0.11.0: + they embed llama.cpp `v0.5.0`, are qualified against native `v0.5.0`, and keep + Web/native llama.cpp `v0.5.0@7fe450e19305b828c199d602c23a8337aaa1f03b` parity + and Web `@litert-lm/core@0.15.0`. Immutable Web asset manifest: + `8a9f83c15035eeb034a6563e6f753382d7d7f9be81503ef76902138da7841176`. ## 0.11.0 diff --git a/README.md b/README.md index 08be4c64d..95ffd19c0 100644 --- a/README.md +++ b/README.md @@ -107,10 +107,10 @@ 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.0.2` with core `0.11.0`. Without it the - hook bundles the runtime, App Store Connect rejects that iOS framework's - `MinimumOSVersion`, and only Xcode and `xcodebuild` show the build warning - about it. + the entry above. Pair companion `0.0.2` with core `0.11.1` and `0.11.0`. + Without it the hook bundles the runtime, App Store Connect rejects that iOS + framework's `MinimumOSVersion`, and only Xcode and `xcodebuild` show the + build warning about it. - **Platforms:** Android arm64 (CPU), iOS and macOS (Metal), Linux arm64/x64 and Windows x64 (CPU or Vulkan). Not available on the web yet @@ -184,15 +184,16 @@ For Dart or Flutter apps: ```yaml dependencies: - llamadart: ^0.11.0 + llamadart: ^0.11.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.0.21` with core `0.11.0` for matching llama.cpp v0.5.0 -bindings. Keep core `0.10.0` and `0.9.0` paired with companion `0.0.20`, core -`0.8.23` with companion `0.0.18`, and core `0.8.22` with companion `0.0.17`. +Pair companion `0.0.21` with core `0.11.1` and `0.11.0` for matching llama.cpp +v0.5.0 bindings. Keep core `0.10.0` and `0.9.0` paired with companion `0.0.20`, +core `0.8.23` with companion `0.0.18`, and core `0.8.22` with companion +`0.0.17`. Apple builds verify the resolved companion's SwiftPM runtime pin before native symbol lookup. Incompatible companions or unverified local `Artifacts` @@ -201,16 +202,16 @@ overrides fail the build; resolve the matching companion and rerun ```yaml dependencies: - llamadart: ^0.11.0 + llamadart: ^0.11.1 llamadart_llama_cpp_flutter: ^0.0.21 # GGUF / llama.cpp llamadart_litert_lm_flutter: ^0.0.13 # Apple .litertlm / LiteRT-LM targets llamadart_stable_diffusion_flutter: ^0.0.2 # Apple image generation, opt-in ``` -Pair `llamadart_stable_diffusion_flutter` `0.0.2` with core `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 target), so leave it out unless the app uses +Pair `llamadart_stable_diffusion_flutter` `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 target), so leave it out unless the app uses `ImageGenerationEngine`. The LiteRT-LM companion manifest includes the complete iOS SwiftPM runtime diff --git a/doc/llama_cpp_exit_teardown.md b/doc/llama_cpp_exit_teardown.md index ec6d7e66e..127b8f315 100644 --- a/doc/llama_cpp_exit_teardown.md +++ b/doc/llama_cpp_exit_teardown.md @@ -81,13 +81,16 @@ since a projector points at its model. | C `exit()` while an isolate is still running (through FFI, or a native host that skips the engine shutdown) | Covered only while the isolate is idle, freeing an object, or inside a guarded call that returns within two seconds. Inside an unguarded call it is a use after free; inside a longer guarded call ggml-metal aborts. | In a Flutter macOS quit with models idle, either layer is enough alone -(debug build on an M4 Max, each of the four paths in the table). With the +(debug build on an M4 Max, each of the five quits `chat-app-macos-quit` +drives: the four paths in the table, with `exitApplication` once as +`AppExitType.required` and once as `AppExitType.cancelable`). With the service on `LlamaCppObjectCalls.upstream`, the isolates' frees gave a clean quit with a llama.cpp model loaded. With `IsolateShutdownReleases.hold` doing nothing, teardown gave one with a llama.cpp and an image model loaded, -0.2 to 0.3 s later (its settle time). With both, every quit aborted. A -Flutter hot restart shuts the old isolates down too: the tracked counts -after the restart and a second load equal the ones before it. +0.2 to 0.3 s later (its settle time). With both layers disabled at once, +every quit aborted. A Flutter hot restart shuts the old isolates down too: +the tracked counts after the restart and a second load equal the ones before +it. Image models have their own registry in `libstable-diffusion`: see "Image models". diff --git a/example/chat_app/pubspec.lock b/example/chat_app/pubspec.lock index 5a7858bef..a5d920ed4 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.11.0" + version: "0.11.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 17f2ba006..8aeb29123 100644 --- a/packages/llamadart_litert_lm_flutter/README.md +++ b/packages/llamadart_litert_lm_flutter/README.md @@ -16,7 +16,7 @@ also request an x86_64 Simulator slice must exclude x86_64 for LiteRT-LM builds. ```yaml dependencies: - llamadart: ^0.11.0 + llamadart: ^0.11.1 llamadart_litert_lm_flutter: ^0.0.13 ``` diff --git a/packages/llamadart_llama_cpp_flutter/README.md b/packages/llamadart_llama_cpp_flutter/README.md index 06eeb3341..10e72d89c 100644 --- a/packages/llamadart_llama_cpp_flutter/README.md +++ b/packages/llamadart_llama_cpp_flutter/README.md @@ -7,13 +7,14 @@ 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.0.21` with core `0.11.0` for matching llama.cpp v0.5.0 -bindings. Keep core `0.10.0` and `0.9.0` paired with companion `0.0.20`, core -`0.8.23` with companion `0.0.18`, and core `0.8.22` with companion `0.0.17`. +Pair companion `0.0.21` with core `0.11.1` and `0.11.0` for matching llama.cpp +v0.5.0 bindings. Keep core `0.10.0` and `0.9.0` paired with companion `0.0.20`, +core `0.8.23` with companion `0.0.18`, and core `0.8.22` with companion +`0.0.17`. ```yaml dependencies: - llamadart: ^0.11.0 + llamadart: ^0.11.1 llamadart_llama_cpp_flutter: ^0.0.21 ``` diff --git a/packages/llamadart_stable_diffusion_flutter/README.md b/packages/llamadart_stable_diffusion_flutter/README.md index 9c11e3018..f5d00e83f 100644 --- a/packages/llamadart_stable_diffusion_flutter/README.md +++ b/packages/llamadart_stable_diffusion_flutter/README.md @@ -13,12 +13,12 @@ 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.0.2` with core `0.11.0`, and `0.0.1` with core `0.10.0`; -older cores, including `0.9.x`, ignore it. +Pair companion `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.11.0 + llamadart: ^0.11.1 llamadart_stable_diffusion_flutter: ^0.0.2 ``` diff --git a/packages/llamadart_validation/pubspec.lock b/packages/llamadart_validation/pubspec.lock index 9dd709636..0fe922f7e 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.11.0" + version: "0.11.1" logging: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index fe3283472..b1c9575f4 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.11.0 +version: 0.11.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 551f15100..91fa89e81 100644 --- a/skills/llamadart-image-generation/SKILL.md +++ b/skills/llamadart-image-generation/SKILL.md @@ -39,8 +39,8 @@ description: >- on iOS and macOS without the entry above. Without it the hook bundles the runtime, and App Store Connect rejects that iOS framework's `MinimumOSVersion`; only Xcode and `xcodebuild` show the build warning about - it. Pair companion `0.0.2` with core `0.11.0`; adding it opts the app - into the runtime (about 37 MB per Apple target). + it. Pair companion `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 4b3c0b728..9308a4391 100644 --- a/website/docs/changelog/recent-releases.md +++ b/website/docs/changelog/recent-releases.md @@ -7,20 +7,23 @@ For canonical full release notes, use: - [`CHANGELOG.md`](https://github.com/leehack/llamadart/blob/main/CHANGELOG.md) -## Unreleased +## 0.11.1 - Give a chat template that reads content part lists but rejects image and audio parts the media marker in its text instead of failing in the - template, and, for a template that does not take typed content parts, - render a video part in a `chatTemplate` prompt as the media marker instead - of its JSON ([#959](https://github.com/leehack/llamadart/issues/959)). + template, and render a video part in a `chatTemplate` prompt as the media + marker on any template when the messages hold no image or audio part + ([#959](https://github.com/leehack/llamadart/issues/959)). Beside an image + or audio part, a template that is given typed content parts still receives + the video part ([#963](https://github.com/leehack/llamadart/issues/963)). - Fix a possible llama.cpp crash when an image or audio part of a multimodal request fails to load while later parts remain, and native memory leaked when a backend is disposed with a context still open or an embedding fails because the model reports no embedding size ([#947](https://github.com/leehack/llamadart/issues/947), [#610](https://github.com/leehack/llamadart/issues/610)). -- Fix Qwen 3 chat and tool-result history with LiteRT-LM runtimes that normalize message content to arrays. +- Fix Qwen 3 chat and tool-result history with LiteRT-LM runtimes that + normalize message content to arrays. - Work around wrong llama.cpp Vulkan output on some Android GPUs for prompts over 32 tokens (seen on a Pixel 9 Pro, Mali-G715): an Android Vulkan context now decodes a text prompt in micro-batches of at most 8 tokens @@ -33,6 +36,11 @@ For canonical full release notes, use: - Document that a Flutter macOS app that quits without disposing its engines still exits cleanly, and why disposing them in `onExitRequested` is still recommended ([#826](https://github.com/leehack/llamadart/issues/826)). +- Aligned default WebGPU bridge assets to `v0.1.54`, unchanged from 0.11.0: + they embed llama.cpp `v0.5.0`, are qualified against native `v0.5.0`, and keep + Web/native llama.cpp `v0.5.0@7fe450e19305b828c199d602c23a8337aaa1f03b` parity + and Web `@litert-lm/core@0.15.0`. Immutable Web asset manifest: + `8a9f83c15035eeb034a6563e6f753382d7d7f9be81503ef76902138da7841176`. ## 0.11.0 diff --git a/website/docs/getting-started/installation.md b/website/docs/getting-started/installation.md index 4e1fa2c39..da06ee80b 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.11.0 + llamadart: ^0.11.1 ``` Then resolve packages: @@ -51,26 +51,26 @@ companion packages you need: ```yaml dependencies: - llamadart: ^0.11.0 + llamadart: ^0.11.1 llamadart_llama_cpp_flutter: ^0.0.21 # GGUF / llama.cpp llamadart_litert_lm_flutter: ^0.0.13 # Apple .litertlm / LiteRT-LM targets llamadart_stable_diffusion_flutter: ^0.0.2 # Apple image generation, opt-in ``` -Pair companion `0.0.21` with core `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; resolve the matching -companion and rerun `flutter pub get`. Flutter macOS LiteRT-LM builds still use -the core package's native-assets runtime rather than SwiftPM. - -Pair `llamadart_stable_diffusion_flutter` `0.0.2` with core `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 target) on its own and leaves the other runtimes on their current -path, so leave it out unless the app uses `ImageGenerationEngine`. An app -that uses image generation without it gets the hook-bundled runtime, whose iOS -framework `MinimumOSVersion` App Store Connect rejects; only Xcode and -`xcodebuild` show the build warning about it. +Pair companion `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; resolve the +matching companion and rerun `flutter pub get`. Flutter macOS LiteRT-LM builds +still use the core package's native-assets runtime rather than SwiftPM. + +Pair `llamadart_stable_diffusion_flutter` `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 target) on its own and leaves the other +runtimes on their current path, so leave it out unless the app uses +`ImageGenerationEngine`. An app that uses image generation without it gets the +hook-bundled runtime, whose iOS framework `MinimumOSVersion` App Store Connect +rejects; only Xcode and `xcodebuild` show the build warning about it. An app bound for the App Store should use the companion for each runtime it ships, because an Apple privacy manifest reaches an app inside a companion's diff --git a/website/docs/guides/image-generation.md b/website/docs/guides/image-generation.md index 8d1cddbac..9538665b2 100644 --- a/website/docs/guides/image-generation.md +++ b/website/docs/guides/image-generation.md @@ -89,7 +89,8 @@ 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.0.2` with core `0.11.0`; cores older than `0.10.0` ignore it: +Pair `0.0.2` with core `0.11.1` and `0.11.0`; cores older than `0.10.0` +ignore it: ```yaml dependencies: diff --git a/website/examples/observability/README.md b/website/examples/observability/README.md index 15a316821..b2224bcfc 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.11.0. This is not the optional +An application-owned OTel adapter for llamadart 0.11.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 5be11c0ea..202604ab2 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.11.0" + version: "0.11.1" logging: dependency: transitive description: