Native and Web Sync Flows
Native sync flow
When native behavior or bindings need updates:
- Make and release changes in
llamadart-nativefirst. - Sync native version/bindings in this repo.
Preferred in-repo workflow:
.github/workflows/sync_native_bindings.yml
Local fallback:
tool/native/sync_native_headers_and_bindings.sh --tag latest
After sync, run analyze/tests/docs checks before merge.
Web bridge asset sync flow
When web bridge runtime behavior changes:
- Update and release in
llama-web-bridge. - Publish assets in
llama-web-bridge-assets. - Update pinned assets in this repo.
Fetch pinned assets for local app web files:
WEBGPU_BRIDGE_ASSETS_TAG=<tag> ./scripts/fetch_webgpu_bridge_assets.sh
Validation after sync
- Native: model load/generation smoke checks on relevant platforms.
- Web: bridge load/fallback checks in
example/chat_app. - Docs: ensure version/platform notes match newly pinned runtime behavior.