Thanks for contributing.
This repo builds the reusable JS/WASM bridge runtime for llama.cpp web usage.
Published artifacts are consumed from llama-web-bridge-assets.
- Emscripten SDK (
emcmake,emcc) - CMake toolchain
- Access to a llama.cpp checkout
git clone https://github.com/leehack/llama-web-bridge.git
cd llama-web-bridge
./scripts/build_bridge.sh --help./scripts/build_bridge.sh
# or
LLAMA_CPP_DIR=../llama.cpp OUT_DIR=dist ./scripts/build_bridge.shExpected files:
dist/llama_webgpu_bridge.jsdist/llama_webgpu_core.jsdist/llama_webgpu_core.wasm
Use workflow .github/workflows/publish_assets.yml:
- Set input
assets_tag(new tag). - Optionally set
assets_repoandllama_cpp_tag. - Ensure
WEBGPU_BRIDGE_ASSETS_PATsecret is configured. - Workflow builds, generates
manifest.json/sha256sums.txt, pushes to assets repo, and creates matching tag there.
- Bridge runtime source/build belongs here.
- Versioned static artifacts belong in
llama-web-bridge-assets. - Consumer integration (loading/fallback behavior) belongs in
llamadart.