Developer builds browser-based LLM that runs offline with no install or GPU
A developer has created 'ghost', a single HTML file that runs a quantized large language model entirely within a browser using WebAssembly, requiring no server, API key, or installation. The tool uses wllama, a WebAssembly binding for llama.cpp, to perform inference locally at roughly 3–8 tokens per second on a standard CPU. On the first visit, the chosen model is downloaded from HuggingFace and stored via the browser's Cache API, enabling fully offline use on all subsequent visits. Three models are supported: Qwen2.5 1.5B, Qwen2 0.5B, and TinyLlama, catering to different performance needs. The project is open source and publicly accessible on GitHub, with a live demo available online.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in