Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Commit History
16 days ago
-
Fit the picker to the docs iframe Running
The chart drew into a fixed 1180-wide viewBox, so in the ~760px docs iframe its labels shrank to about 6px. It now measures its container and draws at real pixels. Below lg the sentence uses 26px type and tighter padding, and the hover card is clamped inside the chart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>54513db
-
Build the quantization picker
An interactive replacement for the quantization method table in the Transformers docs. The table lists bits; the deciding arithmetic is bytes, and that is where people stall. This does the arithmetic. - lib/data.ts holds the methods and the memory model: weights from params × bits, KV cache from the attention shape, activations as a flat estimate. - lib/hardware.ts is scraped from huggingface.co/hardware, one entry per memory configuration (316 of them) rather than per device, since an RTX 3060 is sold as both 8GB and 12GB. - The model is typed as a Hub repo id and resolved through /api/model, so any model works, not a curated five. - MemoryBar draws the selected precision solid with fp16 behind it as a ghost, so quantizing shows its own effect. - TradeoffMap places the matching methods by when they quantize and whether they serialize — the axes that actually separate them, since every method at a given precision lands at the same footprint. Deploys to a Space via the D…5ae37d4