From 3df945a470b2e4b346cedb7ad3f8cf418e9e66ef Mon Sep 17 00:00:00 2001 From: Jhin Lee Date: Sun, 8 Nov 2026 08:25:07 -0500 Subject: [PATCH] Pin WebGPU bridge assets v0.1.83 (llama.cpp v0.9.0) Web now runs upstream llama.cpp v0.9.0@cd959bae like the native v0.9.0 pin, so the native-ahead allowance is closed: bridgeApprovedNativeUpstreamAhead equals the bridge's llama.cpp tag and the parity wording is back. Release 438242670 (tag commit 44aa84a8, bridge source cb6383fb, manifest SHA-256 ae6f4884) was published from candidate run 42479331139 and qualification run 42480268607. The gate's approved manifest fixture is the published manifest.json byte for byte. --- CHANGELOG.md | 3 +- README.md | 2 +- doc/multimodal_embeddings_web.md | 4 +- doc/webgpu_bridge.md | 27 +++---- example/chat_app/web/index.html | 4 +- lib/src/web_setup/web_bridge_setup.dart | 4 +- scripts/fetch_webgpu_bridge_assets.sh | 6 +- .../tooling/check_webgpu_bridge_tag_test.dart | 78 ++++++++++--------- tool/testing/check_webgpu_bridge_tag.dart | 18 ++--- website/docs/changelog/recent-releases.md | 3 +- .../docs/maintainers/native-and-web-sync.md | 3 +- website/docs/platforms/webgpu-bridge.md | 10 +-- 12 files changed, 83 insertions(+), 79 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72e244226..a7c07a24c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Unreleased -- Update the default llama.cpp native runtime to `leehack/llamadart-native@v0.9.0` (llama.cpp `v0.9.0`). On ARM64 CPUs, F16 dot products of large values no longer overflow to inf or NaN ([llamadart-native#174](https://github.com/leehack/llamadart-native/issues/174)), and Qwen3-TTS sampling applies the GGUF's suppress tokens. Flutter Apple apps get it from `llamadart_llama_cpp_flutter` `0.19.0`, released with this core. Web keeps llama.cpp `v0.8.0` until a later bridge repin. +- Update the default llama.cpp native runtime to `leehack/llamadart-native@v0.9.0` (llama.cpp `v0.9.0`). On ARM64 CPUs, F16 dot products of large values no longer overflow to inf or NaN ([llamadart-native#174](https://github.com/leehack/llamadart-native/issues/174)), and Qwen3-TTS sampling applies the GGUF's suppress tokens. Flutter Apple apps get it from `llamadart_llama_cpp_flutter` `0.19.0`, released with this core. +- Aligned the default WebGPU bridge assets to `v0.1.83`: native llama.cpp `v0.9.0` and Web now both use upstream `v0.9.0@cd959bae99ff4bed22bef2604f45241c09bbb8c8`, and Web Qwen3-TTS applies the GGUF's suppress tokens ([llama-web-bridge#211](https://github.com/leehack/llama-web-bridge/pull/211)). Manifest SHA-256: `ae6f488408672f9ba28d8f9e664a2b85f4e12048f290e259e18dd0b750c038e5`. - Fix LiteRT-LM text-only or audio-only turns that failed with "Image history requires a vision encoder." after an image turn on the same engine ([#1781](https://github.com/leehack/llamadart/issues/1781)). - Move Web LiteRT-LM to `@litert-lm/core@0.19.0`; WebGPU loads keep the runtime's default backend, so standard `.litertlm` bundles can load there. Web embeddings, tool loops, media and custom templates stay unsupported. - Update the default LiteRT-LM native runtime to `leehack/litert-lm-native@v0.19.1` (upstream LiteRT-LM `v0.19.1`); the C API is unchanged. Flutter Apple apps get it from `llamadart_litert_lm_flutter` `0.19.0`, released with this core. diff --git a/README.md b/README.md index 1a8712733..87de81241 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ Current default runtime pins: | --- | --- | | Native llama.cpp / GGUF | `leehack/llamadart-native@v0.9.0` | | Native LiteRT-LM / `.litertlm` | `leehack/litert-lm-native@v0.19.1` | -| Web llama.cpp / GGUF | `leehack/llama-web-bridge-assets@v0.1.82` | +| Web llama.cpp / GGUF | `leehack/llama-web-bridge-assets@v0.1.83` | | Web LiteRT-LM / `.litertlm` | `@litert-lm/core@0.19.0` | Native LiteRT-LM uses a lazy ABI-aware client for direct calls, services and diff --git a/doc/multimodal_embeddings_web.md b/doc/multimodal_embeddings_web.md index f6c0c46ac..bb32bccf8 100644 --- a/doc/multimodal_embeddings_web.md +++ b/doc/multimodal_embeddings_web.md @@ -39,9 +39,9 @@ Bridge source contract inspected read-only at restore and structured-clone ownership; those are bridge responsibilities. Qualification target: EmbeddingGemma-2 BF16 with its matching -mmproj and pinned assets `v0.1.82` on Chrome CPU wasm memory64 +mmproj and pinned assets `v0.1.83` on Chrome CPU wasm memory64 (`gpuLayers: 0`). The scenario below checks the bridge's production worker -budget against references from the matching native `v0.8.0`. +budget against references from the matching native `v0.9.0`. The table below retains the original `v0.1.66` lineage ([PR 1205](https://github.com/leehack/llamadart/pull/1205)); qualification of the previous `v0.1.79` pin stayed within its gates (minimum cosine 0.99997, diff --git a/doc/webgpu_bridge.md b/doc/webgpu_bridge.md index b1484882a..bfcc602b9 100644 --- a/doc/webgpu_bridge.md +++ b/doc/webgpu_bridge.md @@ -67,11 +67,11 @@ an earlier ` ``` -That release embeds llama.cpp `v0.8.0`, behind the `hook/build.dart` native pin -(`v0.9.0`; the bridge is built from upstream llama.cpp `v0.8.0@8642541b255bfb5dc39cd351a178be09013a55d6`) -even though the bridge asset tag `v0.1.82` differs from the native runtime tag -`v0.9.0`. Provenance for this immutable consumer artifact: release `432258348`, -tag commit `33c782f2acdae78860ad1197344240f60290cecb`, bridge source -`e57b9f68fb38d1471af7b94443229993f777df97`, and manifest SHA-256 -`fda19e047aba5a511020854437cc89e2f53e2f67f5f6cf5fec336faef3a6c362`. The bridge -manifest records native `v0.8.0-1`. Web and native share no ABI, so this skew -is supported, but changes new in llama.cpp `v0.9.0` reach Web only with a -later bridge repin. +That release embeds llama.cpp `v0.9.0`, matching the `hook/build.dart` native pin +(`v0.9.0`, both built from upstream llama.cpp `v0.9.0@cd959bae99ff4bed22bef2604f45241c09bbb8c8`) +even though the bridge asset tag `v0.1.83` differs from the native runtime tag +`v0.9.0`. Provenance for this immutable consumer artifact: release `438242670`, +tag commit `44aa84a8a51701dc9c4f82c21e6ee3e774919c20`, bridge source +`cb6383fbe7e903764a89f5c80c7f81c219f99769`, and manifest SHA-256 +`ae6f488408672f9ba28d8f9e664a2b85f4e12048f290e259e18dd0b750c038e5`. They expose the API-version-1 media embedding contract. State and extraction qualification covers wasm32 and memory64 through direct and worker runtimes. Existing decision, scoring, sampling, LoRA, speculative decoding and speech APIs remain available. @@ -204,6 +201,10 @@ physical playback, intelligibility or speaker-reference fidelity. `embedBatch` restarts it after each finished input, so the budget bounds one input rather than the batch. `workerRequestTimeoutMs` still overrides it ([llama-web-bridge#203](https://github.com/leehack/llama-web-bridge/pull/203)). +- `v0.1.83+`: llama.cpp `v0.9.0`. The TTS talker sampler applies the GGUF's + suppress tokens, so Qwen3-TTS no longer fails with `code out of range` when it + samples a codec control token + ([llama-web-bridge#211](https://github.com/leehack/llama-web-bridge/pull/211)). ### Media embeddings diff --git a/example/chat_app/web/index.html b/example/chat_app/web/index.html index 1d46058af..17cd13fc9 100644 --- a/example/chat_app/web/index.html +++ b/example/chat_app/web/index.html @@ -157,8 +157,8 @@ typeof configuredRepo === 'string' && configuredRepo.length > 0 ? configuredRepo : 'leehack/llama-web-bridge-assets'; - const defaultBridgeAssetsTag = 'v0.1.82'; - const defaultBridgeLlamaCppTag = 'v0.8.0'; + const defaultBridgeAssetsTag = 'v0.1.83'; + const defaultBridgeLlamaCppTag = 'v0.9.0'; const bridgeAssetsTag = typeof configuredTag === 'string' && configuredTag.length > 0 ? configuredTag diff --git a/lib/src/web_setup/web_bridge_setup.dart b/lib/src/web_setup/web_bridge_setup.dart index 615940650..cd40a18da 100644 --- a/lib/src/web_setup/web_bridge_setup.dart +++ b/lib/src/web_setup/web_bridge_setup.dart @@ -15,14 +15,14 @@ import '../core/exceptions.dart'; const String webBridgeAssetsRepository = 'leehack/llama-web-bridge-assets'; /// The bridge asset release this llamadart version is qualified against. -const String webBridgeAssetsTag = 'v0.1.82'; +const String webBridgeAssetsTag = 'v0.1.83'; /// SHA-256 of the exact approved `manifest.json` of [webBridgeAssetsTag]. /// /// The manifest lists the SHA-256 and size of every asset, so pinning its /// bytes pins every file the tool writes. const String webBridgeManifestSha256 = - 'fda19e047aba5a511020854437cc89e2f53e2f67f5f6cf5fec336faef3a6c362'; + 'ae6f488408672f9ba28d8f9e664a2b85f4e12048f290e259e18dd0b750c038e5'; /// Directory under the app's `web/` directory that receives the assets. const String webBridgeAssetsDirName = 'webgpu_bridge'; diff --git a/scripts/fetch_webgpu_bridge_assets.sh b/scripts/fetch_webgpu_bridge_assets.sh index ecfe224dc..f1bb10215 100755 --- a/scripts/fetch_webgpu_bridge_assets.sh +++ b/scripts/fetch_webgpu_bridge_assets.sh @@ -4,7 +4,7 @@ set -euo pipefail ROOT_DIR="$(git rev-parse --show-toplevel)" OUT_DIR="${WEBGPU_BRIDGE_OUT_DIR:-$ROOT_DIR/example/chat_app/web/webgpu_bridge}" ASSETS_REPO="${WEBGPU_BRIDGE_ASSETS_REPO:-leehack/llama-web-bridge-assets}" -ASSETS_TAG="${WEBGPU_BRIDGE_ASSETS_TAG:-v0.1.82}" +ASSETS_TAG="${WEBGPU_BRIDGE_ASSETS_TAG:-v0.1.83}" CDN_BASE="${WEBGPU_BRIDGE_CDN_BASE:-https://cdn.jsdelivr.net/gh/${ASSETS_REPO}@${ASSETS_TAG}}" CURL_DOWNLOAD_ARGS=( --connect-timeout 15 @@ -19,7 +19,7 @@ if [[ "${1:-}" == "--help" || "${1:-}" == "-h" ]]; then Downloads prebuilt WebGPU bridge assets into the chat_app web directory. Default source: - https://cdn.jsdelivr.net/gh/leehack/llama-web-bridge-assets@v0.1.82 + https://cdn.jsdelivr.net/gh/leehack/llama-web-bridge-assets@v0.1.83 Environment variables: WEBGPU_BRIDGE_ASSETS_REPO Asset repo in owner/repo format @@ -31,7 +31,7 @@ Usage: ./scripts/fetch_webgpu_bridge_assets.sh Examples: - WEBGPU_BRIDGE_ASSETS_TAG=v0.1.82 ./scripts/fetch_webgpu_bridge_assets.sh + WEBGPU_BRIDGE_ASSETS_TAG=v0.1.83 ./scripts/fetch_webgpu_bridge_assets.sh WEBGPU_BRIDGE_ASSETS_REPO=acme/llama-web-bridge-assets WEBGPU_BRIDGE_ASSETS_TAG=v2 ./scripts/fetch_webgpu_bridge_assets.sh USAGE exit 0 diff --git a/test/unit/tooling/check_webgpu_bridge_tag_test.dart b/test/unit/tooling/check_webgpu_bridge_tag_test.dart index 79b51e29d..70cbebee1 100644 --- a/test/unit/tooling/check_webgpu_bridge_tag_test.dart +++ b/test/unit/tooling/check_webgpu_bridge_tag_test.dart @@ -46,12 +46,12 @@ Directory _fakeRuntimeRepo({ 'example/chat_app/web/index.html': " const defaultBridgeLlamaCppTag = '$bridgeTag';\n", 'doc/webgpu_bridge.md': parityWording - ? 'That release embeds llama.cpp `$bridgeTag`, behind the ' + ? 'That release embeds llama.cpp `$bridgeTag`, matching the ' '`hook/build.dart` native pin\n' : 'That release embeds llama.cpp `$bridgeTag`, which now trails the ' '`hook/build.dart`\n', 'website/docs/platforms/webgpu-bridge.md': parityWording - ? '- The pinned `v1.2.3` bridge assets embed llama.cpp `$bridgeTag`, behind ' + ? '- The pinned `v1.2.3` bridge assets embed llama.cpp `$bridgeTag`, matching ' 'the native runtime\n' : '- The pinned `v1.2.3` bridge assets embed llama.cpp `$bridgeTag`, which now ' 'trails the\n', @@ -80,25 +80,25 @@ const String _approvedManifestJson = ''' "size_bytes": 257 }, "llama_webgpu_core.js": { - "sha256": "d693784e27432485fc9732891c03ce113099b32aeb4bd8e0a0ba3d0320f52bc9", + "sha256": "58b74b403eabfde0703e1f53cdbb9fd34e5eee480bcd0443b32cf97ba48448c0", "size_bytes": 123402 }, "llama_webgpu_core.wasm": { - "sha256": "70012bfeaf65eb8f024021fd08372139b6f993cdf0c36041b6e757d0fd2151dd", - "size_bytes": 10645409 + "sha256": "f20057d88b90de59da5ad35adb8aa49fa4ef5156c9e64e2957d25f8cafe38bdd", + "size_bytes": 11099140 }, "llama_webgpu_core_mem64.js": { "sha256": "282d0934ec2090b13f527e1f01d5740374bdfcc1e75c1f46f9148e7007976a0b", "size_bytes": 147159 }, "llama_webgpu_core_mem64.wasm": { - "sha256": "e098eb4627b543408d553ad66227f8747001b4c1ce5455909e1fc4b0ed8f7f31", - "size_bytes": 10926659 + "sha256": "c2d6548505893b6d89e2a61d6b00a2c502ff03ac8e691c6328c048bbdd4f643a", + "size_bytes": 11390403 } }, "assets_repository": "leehack/llama-web-bridge-assets", - "bridge_assets_tag": "v0.1.82", - "bridge_commit": "e57b9f68fb38d1471af7b94443229993f777df97", + "bridge_assets_tag": "v0.1.83", + "bridge_commit": "cb6383fbe7e903764a89f5c80c7f81c219f99769", "bridge_repository": "leehack/llama-web-bridge", "capabilities": { "memory64": true, @@ -141,31 +141,31 @@ const String _approvedManifestJson = ''' "size_bytes": 257 }, "llama_webgpu_core.js": { - "sha256": "d693784e27432485fc9732891c03ce113099b32aeb4bd8e0a0ba3d0320f52bc9", + "sha256": "58b74b403eabfde0703e1f53cdbb9fd34e5eee480bcd0443b32cf97ba48448c0", "size_bytes": 123402 }, "llama_webgpu_core.wasm": { - "sha256": "70012bfeaf65eb8f024021fd08372139b6f993cdf0c36041b6e757d0fd2151dd", - "size_bytes": 10645409 + "sha256": "f20057d88b90de59da5ad35adb8aa49fa4ef5156c9e64e2957d25f8cafe38bdd", + "size_bytes": 11099140 }, "llama_webgpu_core_mem64.js": { "sha256": "282d0934ec2090b13f527e1f01d5740374bdfcc1e75c1f46f9148e7007976a0b", "size_bytes": 147159 }, "llama_webgpu_core_mem64.wasm": { - "sha256": "e098eb4627b543408d553ad66227f8747001b4c1ce5455909e1fc4b0ed8f7f31", - "size_bytes": 10926659 + "sha256": "c2d6548505893b6d89e2a61d6b00a2c502ff03ac8e691c6328c048bbdd4f643a", + "size_bytes": 11390403 } }, - "github_run_id": "41569122786", - "github_run_url": "https://github.com/leehack/llama-web-bridge/actions/runs/41569122786", - "llama_cpp_commit": "8642541b255bfb5dc39cd351a178be09013a55d6", - "llama_cpp_tag": "v0.8.0", - "native_commit": "f950319714bbc5e81e73b39c455dcdc91382f2d1", - "native_manifest_sha256": "a546800ba1717f8140c2c4318980240b3416f220831940566be1dc060cfb07f6", - "native_release_tag": "v0.8.0-1", + "github_run_id": "42479331139", + "github_run_url": "https://github.com/leehack/llama-web-bridge/actions/runs/42479331139", + "llama_cpp_commit": "cd959bae99ff4bed22bef2604f45241c09bbb8c8", + "llama_cpp_tag": "v0.9.0", + "native_commit": "a604639131105c42a25a3e7384ca10314d385f80", + "native_manifest_sha256": "0d2119cdcf34d347a96a996423094498de3393026efb6ad1a96ba286b621c39e", + "native_release_tag": "v0.9.0", "native_repository": "leehack/llamadart-native", - "orchestrator_correlation_id": "auto-stable-v0.8.0-1-a546800ba1717f81-build-e57b9f68fb38d147", + "orchestrator_correlation_id": "manual-v0.1.83", "qualification_gates": { "multimodal": "passed", "speech_to_text": "required-automated-qualification", @@ -174,9 +174,9 @@ const String _approvedManifestJson = ''' }, "release_channel": "stable", "release_rebuild": 0, - "release_tag": "v0.1.82", + "release_tag": "v0.1.83", "schema_version": 2, - "source_commit": "e57b9f68fb38d1471af7b94443229993f777df97", + "source_commit": "cb6383fbe7e903764a89f5c80c7f81c219f99769", "source_repository": "leehack/llama-web-bridge", "unproven_capabilities": { "hardware_gpu_acceleration": "unavailable-on-hosted-runners", @@ -185,9 +185,9 @@ const String _approvedManifestJson = ''' "speaker_reference_fidelity": "unproven", "wasm32_text_to_speech": "unsupported" }, - "upstream_commit": "8642541b255bfb5dc39cd351a178be09013a55d6", + "upstream_commit": "cd959bae99ff4bed22bef2604f45241c09bbb8c8", "upstream_repository": "ggml-org/llama.cpp", - "upstream_tag": "v0.8.0" + "upstream_tag": "v0.9.0" } '''; @@ -197,7 +197,7 @@ Future> _verifyManifestJson( }) { final bytes = utf8.encode(manifestJson); return verifyManifest( - expectedTag: 'v0.1.82', + expectedTag: 'v0.1.83', expectedLlamaCppTag: bridgeLlamaCppTag, expectedLlamaCppCommit: bridgeLlamaCppCommit, expectedBridgeCommit: bridgeSourceCommit, @@ -223,13 +223,14 @@ String _currentReleaseNotes(String path) { void main() { test('default assets include the qualified media embedding API', () { - expect(readPinnedBridgeTag(Directory.current), 'v0.1.82'); - expect(bridgeNativeReleaseTag, 'v0.8.0-1'); + expect(readPinnedBridgeTag(Directory.current), 'v0.1.83'); + expect(bridgeNativeReleaseTag, 'v0.9.0'); expect(bridgeApprovedNativePin, 'v0.9.0'); expect( normalizeNativeLlamaCppTag(bridgeApprovedNativePin), - bridgeApprovedNativeUpstreamAhead, + bridgeLlamaCppTag, ); + expect(bridgeApprovedNativeUpstreamAhead, bridgeLlamaCppTag); }); test( @@ -284,7 +285,7 @@ void main() { 'website/docs/changelog/recent-releases.md', ]) { final current = _currentReleaseNotes(path); - expect(current, contains('`v0.1.82`'), reason: path); + expect(current, contains('`v0.1.83`'), reason: path); expect(current, contains(bridgeManifestSha256), reason: path); expect( current, @@ -303,7 +304,7 @@ void main() { ), reason: path, ); - expect(current, contains('@litert-lm/core@0.18.0'), reason: path); + expect(current, contains('@litert-lm/core@0.19.0'), reason: path); } expect( @@ -1048,14 +1049,17 @@ void main() { // bridgeNativeReleaseTag is a constant, so drive the mismatch from the // other side: a tree whose bridge and native pins agree on a family the // checked-in anchor does not belong to. - final root = _fakeRuntimeRepo(bridgeTag: 'v0.9.0', nativeTag: 'v0.9.0'); + final root = _fakeRuntimeRepo( + bridgeTag: 'v0.10.0', + nativeTag: 'v0.10.0', + ); expect( - findBridgeRuntimeDrift(root, 'v0.9.0'), + findBridgeRuntimeDrift(root, 'v0.10.0'), contains( contains( 'bridgeNativeReleaseTag $bridgeNativeReleaseTag does not belong to ' - 'the recorded upstream llama.cpp release v0.9.0', + 'the recorded upstream llama.cpp release v0.10.0', ), ), ); @@ -1069,8 +1073,8 @@ void main() { }); test('immutable release identity stays pinned to the approved release', () { - expect(bridgeAssetsReleaseId, '432258348'); - expect(bridgeAssetsTagCommit, '33c782f2acdae78860ad1197344240f60290cecb'); + expect(bridgeAssetsReleaseId, '438242670'); + expect(bridgeAssetsTagCommit, '44aa84a8a51701dc9c4f82c21e6ee3e774919c20'); }); test('accepts equivalent CRLF documentation passages', () { diff --git a/tool/testing/check_webgpu_bridge_tag.dart b/tool/testing/check_webgpu_bridge_tag.dart index 8365806ab..c141375d5 100644 --- a/tool/testing/check_webgpu_bridge_tag.dart +++ b/tool/testing/check_webgpu_bridge_tag.dart @@ -366,13 +366,13 @@ List findCurrentReleaseNotesDrift( } /// The llama.cpp upstream release tag embedded in the pinned bridge assets. -const String bridgeLlamaCppTag = 'v0.8.0'; +const String bridgeLlamaCppTag = 'v0.9.0'; /// The exact upstream llama.cpp commit embedded in the pinned bridge assets. -const String bridgeLlamaCppCommit = '8642541b255bfb5dc39cd351a178be09013a55d6'; +const String bridgeLlamaCppCommit = 'cd959bae99ff4bed22bef2604f45241c09bbb8c8'; /// The exact bridge source commit used to build the pinned bridge assets. -const String bridgeSourceCommit = 'e57b9f68fb38d1471af7b94443229993f777df97'; +const String bridgeSourceCommit = 'cb6383fbe7e903764a89f5c80c7f81c219f99769'; /// Canonical repository identities recorded in the approved manifest. const String bridgeAssetsRepository = 'leehack/llama-web-bridge-assets'; @@ -381,7 +381,7 @@ const String bridgeUpstreamRepository = 'ggml-org/llama.cpp'; const String bridgeNativeRepository = 'leehack/llamadart-native'; /// The native release tag the pinned bridge assets were qualified against. -const String bridgeNativeReleaseTag = 'v0.8.0-1'; +const String bridgeNativeReleaseTag = 'v0.9.0'; /// The native pin approved beside the pinned bridge assets. const String bridgeApprovedNativePin = 'v0.9.0'; @@ -393,10 +393,10 @@ const String bridgeApprovedNativePin = 'v0.9.0'; const String bridgeApprovedNativeUpstreamAhead = 'v0.9.0'; /// The asset repository release that published the pinned bridge assets. -const String bridgeAssetsReleaseId = '432258348'; +const String bridgeAssetsReleaseId = '438242670'; /// The asset repository commit the pinned bridge asset tag points at. -const String bridgeAssetsTagCommit = '33c782f2acdae78860ad1197344240f60290cecb'; +const String bridgeAssetsTagCommit = '44aa84a8a51701dc9c4f82c21e6ee3e774919c20'; /// SHA-256 hash of the exact approved published manifest.json. /// @@ -426,7 +426,7 @@ final List bridgeLlamaCppParityPins = [ BridgeTagPin( 'doc/webgpu_bridge.md', RegExp( - r'^That release embeds llama\.cpp `(v\d+\.\d+\.\d+|b\d+)`, behind the ' + r'^That release embeds llama\.cpp `(v\d+\.\d+\.\d+|b\d+)`, matching the ' r'`hook/build\.dart` native pin$', multiLine: true, ), @@ -434,7 +434,7 @@ final List bridgeLlamaCppParityPins = [ BridgeTagPin( 'website/docs/platforms/webgpu-bridge.md', RegExp( - r'^- The pinned `v\d+\.\d+\.\d+` bridge assets embed llama\.cpp `(v\d+\.\d+\.\d+|b\d+)`, behind the native runtime\.?$', + r'^- The pinned `v\d+\.\d+\.\d+` bridge assets embed llama\.cpp `(v\d+\.\d+\.\d+|b\d+)`, matching the native runtime\.?$', multiLine: true, ), ), @@ -450,7 +450,7 @@ final List bridgeProvenancePins = [ BridgeTagPin( 'doc/webgpu_bridge.md', RegExp( - r'^\(`(?[^`]+)`; the bridge is built from upstream llama\.cpp ' + r'^\(`(?[^`]+)`, both built from upstream llama\.cpp ' r'`(?[^`@]+)@(?[0-9a-f]{40})`\)\r?\n' r'even though the bridge asset tag `v\d+\.\d+\.\d+` differs from the ' r'native runtime tag\r?\n' diff --git a/website/docs/changelog/recent-releases.md b/website/docs/changelog/recent-releases.md index 85e769290..79f28fa84 100644 --- a/website/docs/changelog/recent-releases.md +++ b/website/docs/changelog/recent-releases.md @@ -13,7 +13,8 @@ validate against the exact release tag notes. ## Unreleased -- Update the default llama.cpp native runtime to `leehack/llamadart-native@v0.9.0` (llama.cpp `v0.9.0`). On ARM64 CPUs, F16 dot products of large values no longer overflow to inf or NaN ([llamadart-native#174](https://github.com/leehack/llamadart-native/issues/174)), and Qwen3-TTS sampling applies the GGUF's suppress tokens. Flutter Apple apps get it from `llamadart_llama_cpp_flutter` `0.19.0`, released with this core. Web keeps llama.cpp `v0.8.0` until a later bridge repin. +- Update the default llama.cpp native runtime to `leehack/llamadart-native@v0.9.0` (llama.cpp `v0.9.0`). On ARM64 CPUs, F16 dot products of large values no longer overflow to inf or NaN ([llamadart-native#174](https://github.com/leehack/llamadart-native/issues/174)), and Qwen3-TTS sampling applies the GGUF's suppress tokens. Flutter Apple apps get it from `llamadart_llama_cpp_flutter` `0.19.0`, released with this core. +- Aligned default WebGPU bridge assets to `v0.1.83`: native llama.cpp `v0.9.0` and Web now both use upstream `v0.9.0@cd959bae99ff4bed22bef2604f45241c09bbb8c8`, and Web Qwen3-TTS applies the GGUF's suppress tokens ([llama-web-bridge#211](https://github.com/leehack/llama-web-bridge/pull/211)). Manifest SHA-256: `ae6f488408672f9ba28d8f9e664a2b85f4e12048f290e259e18dd0b750c038e5`. - Fix LiteRT-LM text-only or audio-only turns that failed with "Image history requires a vision encoder." after an image turn on the same engine ([#1781](https://github.com/leehack/llamadart/issues/1781)). - Move Web LiteRT-LM to `@litert-lm/core@0.19.0`; WebGPU loads keep the runtime's default backend, so standard `.litertlm` bundles can load there. Web embeddings, tool loops, media and custom templates stay unsupported. - Update the default LiteRT-LM native runtime to `leehack/litert-lm-native@v0.19.1` (upstream LiteRT-LM `v0.19.1`); the C API is unchanged. Flutter Apple apps get it from `llamadart_litert_lm_flutter` `0.19.0`, released with this core. diff --git a/website/docs/maintainers/native-and-web-sync.md b/website/docs/maintainers/native-and-web-sync.md index 2c43a14a7..6fcbc312c 100644 --- a/website/docs/maintainers/native-and-web-sync.md +++ b/website/docs/maintainers/native-and-web-sync.md @@ -639,8 +639,7 @@ The llama.cpp pin moved to `v0.9.0` in the same cycle, and the llama.cpp companion `0.19.0` pins it. No older Apple llama.cpp runtime is admitted: earlier frameworks lack the ARM F16 accumulation fix ([llamadart-native#174](https://github.com/leehack/llamadart-native/issues/174)). -Web stays on llama.cpp `v0.8.0` until a later bridge repin -(`bridgeApprovedNativeUpstreamAhead` in `tool/testing/check_webgpu_bridge_tag.dart`). +Web runs it too through the pinned bridge assets. Core `0.17.1` preparation pairs all three Apple companions at `0.17.1`, with SwiftPM pins `v0.8.0-1`, `v0.18.1-4` and `v0.3.0-1`. The llama.cpp companion diff --git a/website/docs/platforms/webgpu-bridge.md b/website/docs/platforms/webgpu-bridge.md index 7386597c9..4e3ded571 100644 --- a/website/docs/platforms/webgpu-bridge.md +++ b/website/docs/platforms/webgpu-bridge.md @@ -397,12 +397,10 @@ first model load, for diagnosis or controlled deployments: ## Pinned bridge assets -This llamadart version pins bridge assets `v0.1.82`, which include the +This llamadart version pins bridge assets `v0.1.83`, which include the API-version-1 media embedding contract. -- The pinned `v0.1.82` bridge assets embed llama.cpp `v0.8.0`, behind the native runtime. - Native pins `v0.9.0`; Web and native share no ABI, so the skew is supported, - and llama.cpp `v0.9.0` changes reach Web with a later bridge repin. +- The pinned `v0.1.83` bridge assets embed llama.cpp `v0.9.0`, matching the native runtime. Provenance and the pinned manifest digest are in [`doc/webgpu_bridge.md`](https://github.com/leehack/llamadart/blob/main/doc/webgpu_bridge.md). @@ -410,7 +408,7 @@ Provenance and the pinned manifest digest are in In a llamadart checkout, vendor the pinned assets into the chat app with: ```bash -WEBGPU_BRIDGE_ASSETS_TAG=v0.1.82 ./scripts/fetch_webgpu_bridge_assets.sh +WEBGPU_BRIDGE_ASSETS_TAG=v0.1.83 ./scripts/fetch_webgpu_bridge_assets.sh ``` The chat app bootstrap takes its CDN source from these globals: @@ -418,7 +416,7 @@ The chat app bootstrap takes its CDN source from these globals: ```html ```