joeysalmons/slm-in-a-box — explained in plain English
Analysis updated 2026-05-18
Chat with a small offline AI model without installing any software.
Carry a self-contained AI chatbot on a USB stick to use on any computer.
Learn how to package an ONNX language model into a single portable HTML file.
Experiment with generation settings like temperature and top-p on a tiny local model.
| joeysalmons/slm-in-a-box | 0xustaz/streamgate | a-bissell/unleash-lite | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Python | Python | Python |
| Setup difficulty | easy | hard | hard |
| Complexity | 2/5 | 4/5 | 4/5 |
| Audience | developer | developer | researcher |
Figures from each repo's GitHub metadata at analysis time.
The prebuilt download is a large file (~120 MB), building your own version requires separate ONNX model files from Hugging Face.
slm-in-a-box is an experiment that packs a small AI language model into a single HTML file, so anyone can chat with it just by opening that file in a web browser like Chrome. There is no installation, no server to run, and no internet connection needed once the file is downloaded. The model at the center of this project has 50 million parameters, which is tiny compared to the large models behind tools like ChatGPT, but it is small enough to fit inside a self-contained web page along with everything needed to run it. Because the whole thing lives in one file, it works completely offline after the initial download, and it can even be carried around and run from a USB stick on a different computer. The HTML file includes a basic chat interface with several adjustable settings: temperature, top-p, top-k, maximum tokens, and repetition penalty, which are all common controls for tuning how creative or repetitive the model's replies are. It also has a system prompt field, an editable conversation history, and buttons to stop, regenerate, or copy responses. On a modern laptop running Chrome, the author reports speeds of around 50 tokens per second. There is an experimental option to use WebGPU instead of the default CPU-based backend, which runs through WebAssembly, but the README warns this will likely freeze the browser tab, so it recommends sticking with the CPU option. For people who want to build the file themselves rather than download the prebuilt one, the repository includes a Python script, build_supra_chat-v2.py. Running it requires first downloading a specific set of model files, an ONNX version of the Supra 1.5 50M Instruct model along with its tokenizer and config files, from Hugging Face, and placing them in the same folder as the script.
A small 50 million parameter language model packed into a single self-contained HTML file that runs offline in any browser, no install or server needed.
Mainly Python. The stack also includes Python, HTML, ONNX.
The README does not state a license, so it is unclear what uses are permitted.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.