From a40678c8373a94f6a4917421ba3d1d36ecda6158 Mon Sep 17 00:00:00 2001 From: leehack Date: Tue, 24 Nov 2026 06:26:45 -0500 Subject: [PATCH] Prepare llamadart 0.20.8 release --- CHANGELOG.md | 8 ++++++++ README.md | 10 +++++----- example/chat_app/pubspec.lock | 8 ++++---- example/dartpad_gguf/README.md | 3 ++- packages/llamadart_litert_lm_flutter/CHANGELOG.md | 4 ++++ packages/llamadart_litert_lm_flutter/README.md | 4 ++-- packages/llamadart_litert_lm_flutter/pubspec.yaml | 2 +- packages/llamadart_llama_cpp_flutter/CHANGELOG.md | 4 ++++ packages/llamadart_llama_cpp_flutter/README.md | 4 ++-- packages/llamadart_llama_cpp_flutter/pubspec.yaml | 2 +- .../llamadart_stable_diffusion_flutter/CHANGELOG.md | 4 ++++ packages/llamadart_stable_diffusion_flutter/README.md | 4 ++-- .../llamadart_stable_diffusion_flutter/pubspec.yaml | 2 +- packages/llamadart_validation/pubspec.lock | 2 +- pubspec.yaml | 2 +- website/docs/changelog/recent-releases.md | 8 ++++++++ website/docs/examples/dartpad-gguf.md | 3 ++- website/docs/getting-started/installation.md | 10 +++++----- website/docs/guides/image-generation.md | 2 +- website/docs/integrations/choosing-an-api.md | 2 +- website/examples/observability/pubspec.lock | 2 +- 21 files changed, 60 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a40c1168a..08ef8ee4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ Releases before 0.10.0 are in the [changelog archive](https://github.com/leehack/llamadart/blob/main/doc/changelog_archive.md). +## 0.20.8 + +- Aligned the default WebGPU bridge assets to `v0.1.94` to reduce GGUF loading memory with improved JavaScript-backed staging and bounded WebGPU weight uploads. +- Default to JavaScript-backed GGUF and projector staging on supported Chromium memory64 loads with size hints up to 4 GiB. On wasm32 single-thread cores, automatically stage GGUFs with hints above 960 MiB through 3.75 GiB and reject larger hints before downloading when automatic staging applies. +- Add multi-turn chat, a model picker, generation settings, and streaming stats to the DartPad GGUF example. Improve download feedback and error recovery. + +Runtime baseline: native llama.cpp `v1.0.0-4` and Web use upstream `v1.0.0@b1b770d90d94cad9e9ea5b993bdbc383a522fb28`; native LiteRT-LM uses `v0.19.1-7` and stable-diffusion uses `v0.4.0-1`. Web LiteRT-LM uses `@litert-lm/core@0.19.0`. Manifest SHA-256: `24d62c212338dda646a3b815d5883557a01b09997dee4f5b84245c5ab64fa5f6`. + ## 0.20.7 - Bundle the Visual C++ runtime DLLs with Windows image generation. diff --git a/README.md b/README.md index de370163b..c7b6e06e1 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ LFM2 replies cut off at a reported length limit expose raw `partialToolCalls` di ```yaml dependencies: - llamadart: ^0.20.7 + llamadart: ^0.20.8 ``` ```bash @@ -56,10 +56,10 @@ companion shares its core's `MAJOR.MINOR` and constrains `llamadart` to it. ```yaml dependencies: - llamadart: ^0.20.7 - llamadart_llama_cpp_flutter: ^0.20.7 # GGUF / llama.cpp - llamadart_litert_lm_flutter: ^0.20.7 # Apple .litertlm / LiteRT-LM targets - llamadart_stable_diffusion_flutter: ^0.20.7 # Apple image generation, opt-in + llamadart: ^0.20.8 + llamadart_llama_cpp_flutter: ^0.20.8 # GGUF / llama.cpp + llamadart_litert_lm_flutter: ^0.20.8 # Apple .litertlm / LiteRT-LM targets + llamadart_stable_diffusion_flutter: ^0.20.8 # 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 bdf588bf3..71d8bf048 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.20.7" + version: "0.20.8" llamadart_litert_lm_flutter: dependency: "direct main" description: path: "../../packages/llamadart_litert_lm_flutter" relative: true source: path - version: "0.20.7" + version: "0.20.8" llamadart_llama_cpp_flutter: dependency: "direct main" description: path: "../../packages/llamadart_llama_cpp_flutter" relative: true source: path - version: "0.20.7" + version: "0.20.8" llamadart_stable_diffusion_flutter: dependency: "direct main" description: path: "../../packages/llamadart_stable_diffusion_flutter" relative: true source: path - version: "0.20.7" + version: "0.20.8" llamadart_validation: dependency: "direct main" description: diff --git a/example/dartpad_gguf/README.md b/example/dartpad_gguf/README.md index fce22f3b1..7f441f684 100644 --- a/example/dartpad_gguf/README.md +++ b/example/dartpad_gguf/README.md @@ -2,7 +2,8 @@ [Open on preview.dartpad.dev](https://preview.dartpad.dev/?package=llamadart&root=example/dartpad_gguf&file=example/dartpad_gguf/lib/main.dart) The link always opens the latest published llamadart. -The example is available starting in 0.20.7. +The example is available starting in 0.20.7. The model picker and multi-turn +chat are available starting in 0.20.8. Choose a model from the **Model** selector and select **Load** to download it: diff --git a/packages/llamadart_litert_lm_flutter/CHANGELOG.md b/packages/llamadart_litert_lm_flutter/CHANGELOG.md index 4d3c80cf7..5269333df 100644 --- a/packages/llamadart_litert_lm_flutter/CHANGELOG.md +++ b/packages/llamadart_litert_lm_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.20.8 + +- Update the installation example to core `0.20.8`. Apple SwiftPM stays pinned to `leehack/litert-lm-native@v0.19.1-7`. + ## 0.20.7 - Update the installation example to core `0.20.7`. Apple SwiftPM stays pinned to `leehack/litert-lm-native@v0.19.1-7`. diff --git a/packages/llamadart_litert_lm_flutter/README.md b/packages/llamadart_litert_lm_flutter/README.md index ad78f8ca2..9a19350b5 100644 --- a/packages/llamadart_litert_lm_flutter/README.md +++ b/packages/llamadart_litert_lm_flutter/README.md @@ -28,8 +28,8 @@ also request an x86_64 Simulator slice must exclude x86_64 for LiteRT-LM builds. ```yaml dependencies: - llamadart: ^0.20.7 - llamadart_litert_lm_flutter: ^0.20.7 + llamadart: ^0.20.8 + llamadart_litert_lm_flutter: ^0.20.8 ``` 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 91c4cd061..bea23a0be 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.20.7 +version: 0.20.8 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 78e468918..0b7204a52 100644 --- a/packages/llamadart_llama_cpp_flutter/CHANGELOG.md +++ b/packages/llamadart_llama_cpp_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.20.8 + +- Update the installation example to core `0.20.8`. Apple SwiftPM stays pinned to `leehack/llamadart-native@v1.0.0-4`. + ## 0.20.7 - Update the installation example to core `0.20.7`. Apple SwiftPM stays pinned to `leehack/llamadart-native@v1.0.0-4`. diff --git a/packages/llamadart_llama_cpp_flutter/README.md b/packages/llamadart_llama_cpp_flutter/README.md index 4aa1280bc..085880bf3 100644 --- a/packages/llamadart_llama_cpp_flutter/README.md +++ b/packages/llamadart_llama_cpp_flutter/README.md @@ -13,8 +13,8 @@ with core `0.20.x`. Upgrade both together. Earlier pairings are in the ```yaml dependencies: - llamadart: ^0.20.7 - llamadart_llama_cpp_flutter: ^0.20.7 + llamadart: ^0.20.8 + llamadart_llama_cpp_flutter: ^0.20.8 ``` 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 5ed2b356f..210130363 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.20.7 +version: 0.20.8 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 4710d621c..ae97d77e3 100644 --- a/packages/llamadart_stable_diffusion_flutter/CHANGELOG.md +++ b/packages/llamadart_stable_diffusion_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.20.8 + +- Update the installation example to core `0.20.8`. Apple SwiftPM stays pinned to `leehack/stable-diffusion-native@v0.4.0-1`. + ## 0.20.7 - Update the Apple SwiftPM pin to `leehack/stable-diffusion-native@v0.4.0-1` and require core `0.20.7` or later in the 0.20 series. diff --git a/packages/llamadart_stable_diffusion_flutter/README.md b/packages/llamadart_stable_diffusion_flutter/README.md index 40c252be8..f4f26a425 100644 --- a/packages/llamadart_stable_diffusion_flutter/README.md +++ b/packages/llamadart_stable_diffusion_flutter/README.md @@ -19,8 +19,8 @@ with core `0.20.x`. Upgrade both together. Earlier pairings are in the ```yaml dependencies: - llamadart: ^0.20.7 - llamadart_stable_diffusion_flutter: ^0.20.7 + llamadart: ^0.20.8 + llamadart_stable_diffusion_flutter: ^0.20.8 ``` 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 823621bbb..9ea383a05 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.20.7 +version: 0.20.8 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 a700b52c8..f45950531 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.20.7" + version: "0.20.8" logging: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index be4067aec..1dd1bb3c5 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.20.7 +version: 0.20.8 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 478480c4e..661ea6499 100644 --- a/website/docs/changelog/recent-releases.md +++ b/website/docs/changelog/recent-releases.md @@ -11,6 +11,14 @@ For upgrade planning, combine this page with the [Upgrade Checklist](../migration/upgrade-checklist). For breaking changes, validate against the exact release tag notes. +## 0.20.8 + +- Aligned default WebGPU bridge assets to `v0.1.94` to reduce GGUF loading memory with improved JavaScript-backed staging and bounded WebGPU weight uploads. +- Default to JavaScript-backed GGUF and projector staging on supported Chromium memory64 loads with size hints up to 4 GiB. On wasm32 single-thread cores, automatically stage GGUFs with hints above 960 MiB through 3.75 GiB and reject larger hints before downloading when automatic staging applies. +- Add multi-turn chat, a model picker, generation settings, and streaming stats to the DartPad GGUF example. Improve download feedback and error recovery. + +Runtime baseline: native llama.cpp `v1.0.0-4` and Web use upstream `v1.0.0@b1b770d90d94cad9e9ea5b993bdbc383a522fb28`; native LiteRT-LM uses `v0.19.1-7` and stable-diffusion uses `v0.4.0-1`. Web LiteRT-LM uses `@litert-lm/core@0.19.0`. Manifest SHA-256: `24d62c212338dda646a3b815d5883557a01b09997dee4f5b84245c5ab64fa5f6`. + ## 0.20.7 - Bundle the Visual C++ runtime DLLs with Windows image generation. diff --git a/website/docs/examples/dartpad-gguf.md b/website/docs/examples/dartpad-gguf.md index e8de39858..a91a4c9d5 100644 --- a/website/docs/examples/dartpad-gguf.md +++ b/website/docs/examples/dartpad-gguf.md @@ -6,7 +6,8 @@ description: Chat with SmolLM2 135M, Qwen3.5 0.8B, or Gemma 4 E2B (desktop Chrom [Open on preview.dartpad.dev](https://preview.dartpad.dev/?package=llamadart&root=example/dartpad_gguf&file=example/dartpad_gguf/lib/main.dart) The link always opens the latest published llamadart. -The example is available starting in 0.20.7. +The example is available starting in 0.20.7. The model picker and multi-turn +chat are available starting in 0.20.8. Choose a model from the **Model** selector and select **Load** to download it: **SmolLM2 135M** (~105 MB, default), **Qwen3.5 0.8B** (~533 MB, thinking diff --git a/website/docs/getting-started/installation.md b/website/docs/getting-started/installation.md index 42a9fb945..688bf7655 100644 --- a/website/docs/getting-started/installation.md +++ b/website/docs/getting-started/installation.md @@ -21,7 +21,7 @@ For Genkit or Flutter Edge AI integration setup, see ```yaml dependencies: - llamadart: ^0.20.7 + llamadart: ^0.20.8 ``` Then resolve packages: @@ -40,10 +40,10 @@ Apple XCFrameworks: ```yaml dependencies: - llamadart: ^0.20.7 - llamadart_llama_cpp_flutter: ^0.20.7 # GGUF / llama.cpp - llamadart_litert_lm_flutter: ^0.20.7 # Apple .litertlm / LiteRT-LM targets - llamadart_stable_diffusion_flutter: ^0.20.7 # Apple image generation, opt-in + llamadart: ^0.20.8 + llamadart_llama_cpp_flutter: ^0.20.8 # GGUF / llama.cpp + llamadart_litert_lm_flutter: ^0.20.8 # Apple .litertlm / LiteRT-LM targets + llamadart_stable_diffusion_flutter: ^0.20.8 # 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 9f23b9a1b..5a1ba9444 100644 --- a/website/docs/guides/image-generation.md +++ b/website/docs/guides/image-generation.md @@ -94,7 +94,7 @@ Apple SD companion pinning its own runtime, so upgrade the core and ```yaml dependencies: - llamadart_stable_diffusion_flutter: ^0.20.7 + llamadart_stable_diffusion_flutter: ^0.20.8 ``` Without it, `all` leaves the image runtime out of a Flutter iOS or macOS app diff --git a/website/docs/integrations/choosing-an-api.md b/website/docs/integrations/choosing-an-api.md index dc2c5973b..2618914f3 100644 --- a/website/docs/integrations/choosing-an-api.md +++ b/website/docs/integrations/choosing-an-api.md @@ -19,7 +19,7 @@ make a model support tools, strict JSON, images or embeddings. | Route | Available combination | Qualification boundary | | --- | --- | --- | -| Direct | Published `llamadart 0.20.7` with compatible `0.20.x` Apple companions for each selected runtime | See the [runtime support matrix](../platforms/support-matrix). Devices, models and backends have separate limits. | +| Direct | Published `llamadart 0.20.8` with compatible `0.20.x` Apple companions for each selected runtime | See the [runtime support matrix](../platforms/support-matrix). Devices, models and backends have separate limits. | | Genkit | Published `genkit_llamadart 3.10.0` with Genkit 1.x, `llamadart >=0.20.6 <0.21.0` and Dart 3.12+. Use `llamadart 0.20.7` for GGUF in DartPad. | Adapter tests cover browser capability guards and selected native model paths. | | Flutter Edge AI | Published `flutter_edge_ai_llama 0.1.0` with `flutter_edge_ai ^2.6.0`. This connector version requires `llamadart >=0.17.5 <0.17.6`. | See the [Flutter Edge AI page](./flutter-edge-ai). | diff --git a/website/examples/observability/pubspec.lock b/website/examples/observability/pubspec.lock index 433c5ed32..62203ffa2 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.20.7" + version: "0.20.8" logging: dependency: transitive description: