Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Commit History
-
Vendor the shadcn stylesheet instead of the CLI
Both Space builds died at exactly 8:00 in npm ci — a hard step timeout, not the npm bug the error text suggests. The tree was 677 packages, and 225 of them were the shadcn CLI, pulled in as a runtime dependency for one file: app/globals.css imported shadcn/tailwind.css. Inlining that 629-line stylesheet drops the tree to 452 packages and 6.5MB off the install. Verified the build and the rendered page are unchanged.e07e6a6 -
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 -
Initial commit from Create Next App
104da23