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
19 changes: 13 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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`,
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`,
Expand All @@ -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`,
Expand Down
2 changes: 1 addition & 1 deletion example/chat_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
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 @@ -31,15 +31,15 @@ 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
```

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`.
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 @@ -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`,
Expand All @@ -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
```

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 @@ -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
```

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 @@ -207,7 +207,7 @@ packages:
path: "../.."
relative: true
source: path
version: "0.13.0"
version: "0.13.1"
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.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
Expand Down
8 changes: 4 additions & 4 deletions skills/llamadart-image-generation/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 13 additions & 6 deletions website/docs/changelog/recent-releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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`,
Expand Down
11 changes: 6 additions & 5 deletions website/docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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
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 @@ -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
Expand Down
2 changes: 1 addition & 1 deletion website/docs/maintainers/native-and-web-sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion website/examples/observability/README.md
Original file line number Diff line number Diff line change
@@ -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.

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 @@ -263,7 +263,7 @@ packages:
path: "../../.."
relative: true
source: path
version: "0.13.0"
version: "0.13.1"
logging:
dependency: transitive
description:
Expand Down
Loading