@PierceZhang34: Train a Small Model in 10 Seconds! First Look at the LLM Training Tool: http://llm.istanbul Recently discovered a super fun open-source style tool website — http://llm.istanbul, which claims to be a WebGPU LLM Workbench, meaning it fully...
Summary
Introduces llm.istanbul, a WebGPU LLM workbench that lets you train small models, train tokenizers, and generate text entirely in the browser, no server required, fully local.
View Cached Full Text
Cached at: 06/12/26, 06:55 AM
10 seconds to train a small model!
LLM training tool: http://llm.istanbul First experience
Recently I discovered a super fun open-source style tool website — http://llm.istanbul. It claims to be a WebGPU LLM Workbench, meaning you can train and play with small language models entirely in your browser using the GPU.
No servers, no cloud, no data uploads needed — everything runs right in your own browser.
For anyone who wants to get hands‑on with LLM fundamentals, train a tokenizer, or pretrain a small model from scratch, this is a dream toy.
Three core features
1. Train a Tokenizer
Upload any text file (supports batch folder upload), choose a vocabulary size (512 to 64K), and watch the BPE merge process in real time on the GPU.
After training, you can export a .json vocabulary or directly generate .bin pre‑tokenized data for the next step.
Perfect for customizing a tokenizer for a specific language or domain.
2. Train a Transformer Model
Supports pretraining from scratch or loading a .llm checkpoint to continue training / fine‑tuning.
You can freely adjust:
- Model scale (d_model, n_layers, n_heads, etc.)
- Hyperparameters like optimizer, learning rate, warmup, weight decay
- Sequence length, activation function (GeLU / SwiGLU), etc.
Forward pass, backward pass, and AdamW optimization all run on your local GPU — watch the loss drop in real time.
3. Text Generation Testing
Load a trained .llm file, enter a prompt, and generate text in real time.
Supports sampling parameters such as temperature, top‑k, top‑p, making it easy to quickly verify model performance.
Key Highlights
- Fully local privacy: data and model stay on your device
- WebGPU acceleration: requires Chrome/Edge or another WebGPU‑capable browser + a decent GPU (integrated graphics can handle small models)
- Lightweight experimental: great for learning, prototyping, and small‑scale tinkering — not meant for training hundred‑billion‑parameter models
- File formats: custom
.llm(vocabulary + weights) and.binpre‑tokenized files for easy saving and reuse
Who is it for?
- LLM beginners who want to implement a tokenizer + transformer from scratch
- Students/developers studying how tokenizers affect model behavior
- Anyone wanting to quickly iterate on small domain‑specific models locally
- Tech enthusiasts interested in WebGPU and browser‑based AI
Portal: https://llm.istanbul
llm.istanbul — WebGPU LLM workbench
Source: https://llm.istanbul/
1 · Train a tokenizer
Build a Byte Pair Encoding vocabulary for your language. Drop text files, pick a vocab size, watch merges happen on your GPU. Save the\.json— Pre‑tokenize feeds it to the transformer in step 3.
Training DataDrop files here orbrowse
Multiple files OK ·browse folderfor recursive scan
Shuffle paragraphs
Vocabulary Size InspectNo vocabulary loaded — train one above or load a .json
BPE Trainer ProfilerNo snapshots yet. Click “One‑shot” or “Start Profiler” while training to capture per‑kernel GPU timing.
Output Log
3 · Train a transformer
Two flows in one: pretrain a fresh foundation model on your\.bin, or load a\.llmcheckpoint and fine‑tune it on a smaller, task‑specific corpus. Forward, backward, and AdamW all run on your GPU — no server, no cloud.
EngineLLM engine not initialized
Dataset (.bin)Drop a.binfile orbrowse
Produced by the Pre‑tokenize tab
Model Size Training Checkpoint
GPU ProfilerNo snapshots yet. Click “Snapshot Next Step” while training to capture per‑kernel GPU timing.
Output Log
Generate from a model
Drop a\.llmcheckpoint, type a prompt, watch tokens stream. No\.binneeded — vocab + weights ride with the checkpoint. Useful for sanity‑checking a run, comparing two checkpoints, or just playing with sampling knobs.
ModelNo model loaded — drop a .llm to begin
Generatetemptop‑ktop‑pmin‑preptokens
Similar Articles
@NFTCPS: 4GB VRAM running 70B large model? It actually works! AirLLM did a clever trick — layered inference, not loading the whole model into VRAM at once, but layer by layer, compute and discard, squeezing the giant into a small GPU. The best part: 100% open source, freebie warning https://github.com/0xSo…
AirLLM is a fully open-source tool that uses layered inference (loading and releasing VRAM layer by layer) to enable 70B large language models to run on GPUs with only 4GB VRAM, without quantization, distillation, or pruning. It already supports running Llama3.1 405B on 8GB VRAM.
@zhixianio: After receiving the new machine, I began an 'ascetic' practice of forcing myself to use local models for common tasks. I thought it would be painful, but both speed and quality greatly exceeded my expectations: Model: Qwen3.6-35B-A3B-oQ6-fp16-mtp, Running: oMLX, with N…
The author uses the Qwen3.6-35B-A3B model and oMLX tool on the new local machine for daily tasks, finding that both speed and quality far exceed expectations, even outperforming remote LLMs in PA and coding scenarios, demonstrating a significant improvement in on-device AI capabilities.
@iluciddreaming: Played with local LLMs for two months. Extensively tested various open-source models using Windows 11 + llama.cpp + llama-swap. Here is my final report card: Hardware: i7-13700 + 64GB RAM + RTX 4070. The best combination currently is gemm…
After two months of local LLM testing, the author finds that the combination of gemma-4-12B-it-QAT and MTP assistance performs best in speed and usability, with hardware i7-13700 + 64GB RAM + RTX 4070.
WebLLM: high-performance in-browser LLM inference engine
WebLLM is a high-performance in-browser LLM inference engine that leverages WebGPU for hardware acceleration and is fully compatible with the OpenAI API, enabling local execution of open-source language models.
@FeitengLi: LLM 玩的好多技术 Povey 在 Zipformer 里都探索过
Z.ai 推出 GLM-5.3-Flash,这是一个具有 1M 代币上下文窗口的多模态 AI 模型,参数规模为 320B-A18B,并以 MIT 许可证发布。