diff --git a/CHANGELOG.md b/CHANGELOG.md index 25cd197db..97f209fc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,14 @@ -## Unreleased +## 0.19.1 +- Keep the default WebGPU bridge assets at `v0.1.83` (unchanged from 0.19.0). +- Adopt native LiteRT-LM `v0.19.1-2`, which reports LiteRT linked in process; the C API is unchanged. Linux and Windows native embeddings need `v0.19.1-2` or later, the bundled runtime: an explicit older `LLAMADART_LITERT_LM_LIB_DIR` runtime, including `v0.19.1-1`, is refused with `LlamaUnsupportedException`, where custom `v0.19.0` and `v0.19.1` runtimes used to crash ([#1367](https://github.com/leehack/llamadart/issues/1367)). +- Stop bundling and loading the unused prebuilt `libLiteRt` (about 7 to 9 MB) in Linux and Windows LiteRT-LM apps, whose runtime links LiteRT in; an older `LLAMADART_LITERT_LM_LIB_DIR` runtime still loads the `libLiteRt` it ships with ([#1815](https://github.com/leehack/llamadart/issues/1815)). +- Refuse LiteRT-LM GPU on Linux when every Vulkan device is a software rasterizer such as Mesa llvmpipe, where small models could return wrong text: `ComputeDevice.gpu` throws `LlamaUnsupportedException` at load, and a GPU hint under `ComputeDevice.auto` runs on the CPU with a warning ([#572](https://github.com/leehack/llamadart/issues/572)). - Fix native LiteRT-LM `dispose` failing with "worker stopped before native cleanup was confirmed" when cleanup outlasts 5 s, such as releasing a freshly written CPU weight cache on Linux ext4; `freeTimeout` now bounds only the wait for native teardown to start ([#1814](https://github.com/leehack/llamadart/issues/1814)). -- Stop bundling and loading the unused prebuilt `libLiteRt` (about 7 to 9 MB) in Linux and Windows LiteRT-LM apps; the `v0.19.1-1` runtime links LiteRT in. An older `LLAMADART_LITERT_LM_LIB_DIR` runtime still loads the `libLiteRt` it ships with ([#1815](https://github.com/leehack/llamadart/issues/1815)). -- Refuse LiteRT-LM GPU on Linux when every Vulkan device is a software rasterizer such as Mesa llvmpipe, where small models could return wrong text: `ComputeDevice.gpu` throws `LlamaUnsupportedException` at load and a GPU hint under `ComputeDevice.auto` runs on the CPU with a warning ([#572](https://github.com/leehack/llamadart/issues/572)). -- Refuse LiteRT-LM native embeddings on Linux and Windows with `LlamaUnsupportedException` unless the runtime reports LiteRT linked in process (litert-lm-native `v0.19.1-2` or later), so a custom `v0.19.0` or `v0.19.1` runtime no longer crashes creating the embedding engine ([#1367](https://github.com/leehack/llamadart/issues/1367)). -- Adopt native LiteRT-LM `v0.19.1-2`, which reports LiteRT linked in process; the C API is unchanged. - Fix model cache `clear`, `remove` and `prune` on Windows failing with "Access is denied" when another process or isolate was deleting the same entry at that moment ([#1821](https://github.com/leehack/llamadart/issues/1821)). -- Raise the Apple companion packages' Flutter floor to `>=3.38.6`, the first Flutter whose Dart (3.10.7) satisfies their `sdk: ^3.10.7`; Flutter 3.38.0 to 3.38.5 could not resolve ([#1834](https://github.com/leehack/llamadart/issues/1834)). +- Release all three Apple runtime companions at `0.19.1` with a Flutter floor of `>=3.38.6`, the first Flutter whose Dart (3.10.7) satisfies their `sdk: ^3.10.7`; Flutter 3.38.0 to 3.38.5 could not resolve them ([#1834](https://github.com/leehack/llamadart/issues/1834)). The LiteRT-LM companion pins `v0.19.1-2` and requires core `0.19.1`. + +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.0 diff --git a/MIGRATION.md b/MIGRATION.md index 5a8f5b103..2acf2b095 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -2,6 +2,17 @@ This document covers the major breaking upgrade paths. +## `0.19.0` -> `0.19.1`: desktop LiteRT-LM embeddings need native `v0.19.1-2` + +Core `0.19.1` bundles +[LiteRT-LM v0.19.1-2](https://github.com/leehack/litert-lm-native/releases/tag/v0.19.1-2), +so apps on the bundled runtime are unaffected. Linux and Windows native +embeddings now require that runtime's in-process LiteRT marker: a custom +`LLAMADART_LITERT_LM_LIB_DIR` runtime older than `v0.19.1-2`, including +`v0.19.1-1`, throws `LlamaUnsupportedException` before any native embedding +call. Point the override at `v0.19.1-2` or later +([#1367](https://github.com/leehack/llamadart/issues/1367)). + ## `0.18.x` -> `0.19.0`: LiteRT-LM native `v0.19.1-1` and Web `0.19.0` Core `0.19.0` and `llamadart_litert_lm_flutter` `0.19.0` move to published diff --git a/README.md b/README.md index 6a07a0fd4..47b0bf9b9 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.0 + llamadart: ^0.19.1 ``` ```bash @@ -55,10 +55,10 @@ companion shares its core's `MAJOR.MINOR` and constrains `llamadart` to it. ```yaml dependencies: - llamadart: ^0.19.0 - llamadart_llama_cpp_flutter: ^0.19.0 # GGUF / llama.cpp - llamadart_litert_lm_flutter: ^0.19.0 # Apple .litertlm / LiteRT-LM targets - llamadart_stable_diffusion_flutter: ^0.19.0 # Apple image generation, opt-in + 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 ``` 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 eabf42f1d..98171f04e 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.0" + version: "0.19.1" llamadart_litert_lm_flutter: dependency: "direct main" description: path: "../../packages/llamadart_litert_lm_flutter" relative: true source: path - version: "0.19.0" + version: "0.19.1" llamadart_llama_cpp_flutter: dependency: "direct main" description: path: "../../packages/llamadart_llama_cpp_flutter" relative: true source: path - version: "0.19.0" + version: "0.19.1" llamadart_stable_diffusion_flutter: dependency: "direct main" description: path: "../../packages/llamadart_stable_diffusion_flutter" relative: true source: path - version: "0.19.0" + version: "0.19.1" 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 3c41d189b..88c03982f 100644 --- a/packages/llamadart_litert_lm_flutter/CHANGELOG.md +++ b/packages/llamadart_litert_lm_flutter/CHANGELOG.md @@ -1,6 +1,10 @@ -## Unreleased +## 0.19.1 -- Updated Apple SwiftPM native pin to `leehack/litert-lm-native@v0.19.1-2`. +- Pair with core `>=0.19.1 <0.20.0`; update Apple SwiftPM to + `leehack/litert-lm-native@v0.19.1-2`, which reports LiteRT linked in process. +- Raise the Flutter floor to `>=3.38.6`, the first Flutter whose Dart (3.10.7) + satisfies `sdk: ^3.10.7` + ([#1834](https://github.com/leehack/llamadart/issues/1834)). ## 0.19.0 diff --git a/packages/llamadart_litert_lm_flutter/README.md b/packages/llamadart_litert_lm_flutter/README.md index d983b3d50..7e4886928 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.0 - llamadart_litert_lm_flutter: ^0.19.0 + llamadart: ^0.19.1 + llamadart_litert_lm_flutter: ^0.19.1 ``` 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 eb21c89d8..30ee0a353 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.0 +version: 0.19.1 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 @@ -17,7 +17,7 @@ environment: dependencies: flutter: sdk: flutter - llamadart: '>=0.19.0 <0.20.0' + llamadart: '>=0.19.1 <0.20.0' dev_dependencies: flutter_test: diff --git a/packages/llamadart_llama_cpp_flutter/CHANGELOG.md b/packages/llamadart_llama_cpp_flutter/CHANGELOG.md index e4a32c738..514623c69 100644 --- a/packages/llamadart_llama_cpp_flutter/CHANGELOG.md +++ b/packages/llamadart_llama_cpp_flutter/CHANGELOG.md @@ -1,3 +1,10 @@ +## 0.19.1 + +- Raise the Flutter floor to `>=3.38.6`, the first Flutter whose Dart (3.10.7) + satisfies `sdk: ^3.10.7` + ([#1834](https://github.com/leehack/llamadart/issues/1834)); Apple SwiftPM stays + pinned to `leehack/llamadart-native@v0.9.0`. + ## 0.19.0 - Pair with core `>=0.19.0 <0.20.0`; update Apple SwiftPM to diff --git a/packages/llamadart_llama_cpp_flutter/README.md b/packages/llamadart_llama_cpp_flutter/README.md index 1de193967..cab0dec64 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.0 - llamadart_llama_cpp_flutter: ^0.19.0 + llamadart: ^0.19.1 + llamadart_llama_cpp_flutter: ^0.19.1 ``` 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 5375a41f5..d8ca1285d 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.0 +version: 0.19.1 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 17ec76774..3fb628a7f 100644 --- a/packages/llamadart_stable_diffusion_flutter/CHANGELOG.md +++ b/packages/llamadart_stable_diffusion_flutter/CHANGELOG.md @@ -1,3 +1,10 @@ +## 0.19.1 + +- Raise the Flutter floor to `>=3.38.6`, the first Flutter whose Dart (3.10.7) + satisfies `sdk: ^3.10.7` + ([#1834](https://github.com/leehack/llamadart/issues/1834)); Apple SwiftPM stays + pinned to `leehack/stable-diffusion-native@v0.3.0-3`. + ## 0.19.0 - Pair with core `>=0.19.0 <0.20.0`; Apple SwiftPM stays pinned to diff --git a/packages/llamadart_stable_diffusion_flutter/README.md b/packages/llamadart_stable_diffusion_flutter/README.md index 51658278b..71e6f96d1 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.0 - llamadart_stable_diffusion_flutter: ^0.19.0 + llamadart: ^0.19.1 + llamadart_stable_diffusion_flutter: ^0.19.1 ``` 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 1d6859aa2..085d235a4 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.0 +version: 0.19.1 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 d48245699..354610761 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.0" + version: "0.19.1" logging: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index c32d581c6..405bbac9a 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.0 +version: 0.19.1 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 523ce3a7d..2673fc129 100644 --- a/website/docs/changelog/recent-releases.md +++ b/website/docs/changelog/recent-releases.md @@ -11,15 +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.1 +- Keep default WebGPU bridge assets at `v0.1.83` (unchanged from 0.19.0). +- Adopt native LiteRT-LM `v0.19.1-2`, which reports LiteRT linked in process; the C API is unchanged. Linux and Windows native embeddings need `v0.19.1-2` or later, the bundled runtime: an explicit older `LLAMADART_LITERT_LM_LIB_DIR` runtime, including `v0.19.1-1`, is refused with `LlamaUnsupportedException`, where custom `v0.19.0` and `v0.19.1` runtimes used to crash ([#1367](https://github.com/leehack/llamadart/issues/1367)). +- Stop bundling and loading the unused prebuilt `libLiteRt` (about 7 to 9 MB) in Linux and Windows LiteRT-LM apps, whose runtime links LiteRT in; an older `LLAMADART_LITERT_LM_LIB_DIR` runtime still loads the `libLiteRt` it ships with ([#1815](https://github.com/leehack/llamadart/issues/1815)). +- Refuse LiteRT-LM GPU on Linux when every Vulkan device is a software rasterizer such as Mesa llvmpipe, where small models could return wrong text: `ComputeDevice.gpu` throws `LlamaUnsupportedException` at load, and a GPU hint under `ComputeDevice.auto` runs on the CPU with a warning ([#572](https://github.com/leehack/llamadart/issues/572)). - Fix native LiteRT-LM `dispose` failing with "worker stopped before native cleanup was confirmed" when cleanup outlasts 5 s, such as releasing a freshly written CPU weight cache on Linux ext4; `freeTimeout` now bounds only the wait for native teardown to start ([#1814](https://github.com/leehack/llamadart/issues/1814)). -- Stop bundling and loading the unused prebuilt `libLiteRt` (about 7 to 9 MB) in Linux and Windows LiteRT-LM apps; the `v0.19.1-1` runtime links LiteRT in. An older `LLAMADART_LITERT_LM_LIB_DIR` runtime still loads the `libLiteRt` it ships with ([#1815](https://github.com/leehack/llamadart/issues/1815)). -- Refuse LiteRT-LM GPU on Linux when every Vulkan device is a software rasterizer such as Mesa llvmpipe, where small models could return wrong text: `ComputeDevice.gpu` throws `LlamaUnsupportedException` at load and a GPU hint under `ComputeDevice.auto` runs on the CPU with a warning ([#572](https://github.com/leehack/llamadart/issues/572)). -- Refuse LiteRT-LM native embeddings on Linux and Windows with `LlamaUnsupportedException` unless the runtime reports LiteRT linked in process (litert-lm-native `v0.19.1-2` or later), so a custom `v0.19.0` or `v0.19.1` runtime no longer crashes creating the embedding engine ([#1367](https://github.com/leehack/llamadart/issues/1367)). -- Adopt native LiteRT-LM `v0.19.1-2`, which reports LiteRT linked in process; the C API is unchanged. - Fix model cache `clear`, `remove` and `prune` on Windows failing with "Access is denied" when another process or isolate was deleting the same entry at that moment ([#1821](https://github.com/leehack/llamadart/issues/1821)). -- Raise the Apple companion packages' Flutter floor to `>=3.38.6`, the first Flutter whose Dart (3.10.7) satisfies their `sdk: ^3.10.7`; Flutter 3.38.0 to 3.38.5 could not resolve ([#1834](https://github.com/leehack/llamadart/issues/1834)). +- Release all three Apple runtime companions at `0.19.1` with a Flutter floor of `>=3.38.6`, the first Flutter whose Dart (3.10.7) satisfies their `sdk: ^3.10.7`; Flutter 3.38.0 to 3.38.5 could not resolve them ([#1834](https://github.com/leehack/llamadart/issues/1834)). The LiteRT-LM companion pins `v0.19.1-2` and requires core `0.19.1`. + +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.0 diff --git a/website/docs/getting-started/installation.md b/website/docs/getting-started/installation.md index ee36c15b6..1ef2953ba 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.0 + llamadart: ^0.19.1 ``` Then resolve packages: @@ -42,10 +42,10 @@ Apple XCFrameworks: ```yaml dependencies: - llamadart: ^0.19.0 - llamadart_llama_cpp_flutter: ^0.19.0 # GGUF / llama.cpp - llamadart_litert_lm_flutter: ^0.19.0 # Apple .litertlm / LiteRT-LM targets - llamadart_stable_diffusion_flutter: ^0.19.0 # Apple image generation, opt-in + 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 ``` Companions use the core's `MAJOR.MINOR`; pub refuses a mismatched pair. diff --git a/website/docs/guides/image-generation.md b/website/docs/guides/image-generation.md index 4379e7fc6..f5683108d 100644 --- a/website/docs/guides/image-generation.md +++ b/website/docs/guides/image-generation.md @@ -111,7 +111,7 @@ Apple SD companion pinning its own runtime, so upgrade the core and ```yaml dependencies: - llamadart_stable_diffusion_flutter: ^0.19.0 + llamadart_stable_diffusion_flutter: ^0.19.1 ``` Without it, `all` leaves the image runtime out of a Flutter iOS or macOS app diff --git a/website/docs/maintainers/native-and-web-sync.md b/website/docs/maintainers/native-and-web-sync.md index f2b83dfcd..75c6abf3d 100644 --- a/website/docs/maintainers/native-and-web-sync.md +++ b/website/docs/maintainers/native-and-web-sync.md @@ -648,6 +648,16 @@ Use this checklist in native sync PRs: ## Companion package release handoff +Core `0.19.1` preparation moves LiteRT-LM to `v0.19.1-2`, which adds the +in-process LiteRT marker, and pairs all three Apple companions at `0.19.1` +with a Flutter floor of `>=3.38.6`. `llamadart_litert_lm_flutter` `0.19.1` +requires `llamadart: '>=0.19.1 <0.20.0'`: core `0.19.0` treats a companion +pinning `v0.19.1-2` as a later build and keeps macOS LiteRT-LM in the hook +cache. Core `0.19.1` accepts the published `0.19.0` companion (pinning +`v0.19.1-1`) with an upgrade warning. The llama.cpp and SD companions keep +`llamadart: '>=0.19.0 <0.20.0'`; their pins are unchanged, so core `0.19.0` +still accepts them. + After core `0.18.0`, the LiteRT-LM pin moved to `v0.19.1-1`. It ships in core `0.19.0`, which re-releases all three Apple companions at `0.19.0` with `llamadart: '>=0.19.0 <0.20.0'`; the LiteRT-LM companion pins `v0.19.1-1`. Pub diff --git a/website/examples/observability/pubspec.lock b/website/examples/observability/pubspec.lock index 597a503d1..e18c87511 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.0" + version: "0.19.1" logging: dependency: transitive description: