#128 · Primary category: Inference & Local Deploy

wllama

llama llamacpp llm wasm webassembly

WebAssembly binding for llama.cpp - Enabling on-browser LLM inference

Project last updated:08/27/26

GitHub Stars

1.2K

Forks

119

Contributors

9

License

MIT

Why we included this project

wllama brings llama.cpp to the browser by compiling it to WebAssembly, so a GGUF model runs entirely on the user's machine with no backend to stand up. It ships as an npm package with a typed OpenAI-compatible API, which means teams already calling chat completions or embeddings can switch to in-browser inference without rewriting much of their integration. WebGPU support offloads layers to the GPU when available, and vision inputs and tool calling are covered as well. Inference runs inside a worker so the page stays responsive, and larger models can be split into chunks that download in parallel, working around the 2GB file-size limit. The one gotcha is that multithreading requires setting the Cross-Origin-Embedder-Policy and Cross-Origin-Opener-Policy headers.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category