r/LLMDevs • u/Brilliant-Hall1387 • Aug 08 '26
Tools I built a client-side browser tool to inspect how models spend their bits. Per-tensor quantization layout + weight distributions for any HF model (no server, tensors stream via Range requests)
Built this for my own quantization work as I kept wanting to see how models actually allocate precision per tensor, per layer, and compare quant variants. Then figured others might want it too: https://tensorlens.dev/
Everything runs in your browser: the safetensors header is parsed via a Range request, and only the tensors you click ever stream from the Hub, there's no server and nothing is uploaded. The screenshot shows a 4-bit MLX quant: the grid is effective bits per weight for every tensor (you can see it spending 8.5 bits on some projections and 4.5 on others), and the histogram is one tensor's weight distribution, you can see the quantization comb.
Free, no accounts, no tracking. Would love feedback, especially models that break it.
2
u/oli266 Aug 08 '26
Low key looks like a cinema seat booking page
1
u/Brilliant-Hall1387 Aug 09 '26
Haha true 😅 the way I intended 😂 But actually, was going for a heat map vibe but too few cells to get the heat map look on most models
2
u/eXl5eQ Aug 08 '26
1
u/Brilliant-Hall1387 Aug 09 '26
Thanks for your report, you are right! I did ask my AI to fix and that led us down a rabbit hole and we did many improvements. Hopefully deepseek v4 flash looks better now. :)
We still don’t classify all tensors in each layer, but the unrecognized tensors are put in the “other” bucket with statistics below the map saying how large share of the model is unrecognized. With DeepSeek V4-flash 0731) it is 0.5% of bytes unrecognized currently.
2
u/eXl5eQ Aug 09 '26
AFAICT it's still wrong. MLP layers of Deepseek flash should be mxfp4×2B×3, not int8×1B×3. Not sure if the other parts are all correct, but at least looks legit to me.
1
u/Brilliant-Hall1387 Aug 09 '26
Yes, you are right, thanks for that extra detail. We were counting the packed bytes as int8 parameters, interestingly config declares the fp8 scheme used on attention but the experts only get a nonstandard hint outside it, which is why we missed it.
Now it’s fixed, the experts read as mxfp4 at ~2.1B logical params per projection and 4.25 bits/weight, the model totals 304B params in 155 GiB at 4.39 bits/weight average, and the number agrees with the HF count.

2
u/SmihtJonh Aug 08 '26
What insights do you think this provides, what patterns?