Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions example/chat_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion example/dartpad_gguf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 4 additions & 0 deletions packages/llamadart_litert_lm_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions packages/llamadart_litert_lm_flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion packages/llamadart_litert_lm_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions packages/llamadart_llama_cpp_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions packages/llamadart_llama_cpp_flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion packages/llamadart_llama_cpp_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions packages/llamadart_stable_diffusion_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions packages/llamadart_stable_diffusion_flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/llamadart_stable_diffusion_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/llamadart_validation/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ packages:
path: "../.."
relative: true
source: path
version: "0.20.7"
version: "0.20.8"
logging:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions website/docs/changelog/recent-releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion website/docs/examples/dartpad-gguf.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions website/docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/image-generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion website/docs/integrations/choosing-an-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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). |

Expand Down
2 changes: 1 addition & 1 deletion website/examples/observability/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ packages:
path: "../../.."
relative: true
source: path
version: "0.20.7"
version: "0.20.8"
logging:
dependency: transitive
description:
Expand Down
Loading