News for hackers. Stuff that matters.

Show HN: I made a VRAM Calculator in Hugging Face

https://chromewebstore.google.com/detail/hugging-face-vram-calcula/bioohacjdieeliinbpocpdhpdapfkhal

It's a chrome extension that automatically loads the specs from the Hugging Face model card into the calculation.

> To test it, install the extension (no registration/key needed) and navigate to a HF model page. Then click the "VRAM" icon on the top right to open the sidepanel.

You can specify quantization, batch size, sequence length, etc.

Works for inference & fine-tuning.

If it does not fit on the specified GPUs, it gives you an advise on how to still run it (e.g. lowering precision).

It is inspired at my work, where we were constantly exporting metrics from HF to estimate required hardware. Now, it saves us in the dev team quite some time and clients can use it, too.

Let me know what you think.

( 6 comments | 7 points | on HN )
Re:Show HN: I made a VRAM Calculator in Hugging Face by reach-vb on Tuesday May 27, 2025 @01:25PM (#44108937)
Nice! that's very cool!
Re:Show HN: I made a VRAM Calculator in Hugging Face by PieterBecking on Wednesday May 28, 2025 @03:15AM (#44113447)
Thanks!
Re:Show HN: I made a VRAM Calculator in Hugging Face by rokizero on Tuesday May 27, 2025 @01:31PM (#44108986)
i'm honestly surprised HF doesn't have this feature yet, very useful! will you publish the code on github?

any plans on adding more consumer-grade gpus?

Re:Show HN: I made a VRAM Calculator in Hugging Face by PieterBecking on Wednesday May 28, 2025 @03:24AM (#44113498)
Hey I published the code here: https://github.com/NEBUL-AI/HF-VRAM-Extension

I've added the 4090 and 5090 as well now, make sure to get version 0.5 of the extension

Re:Show HN: I made a VRAM Calculator in Hugging Face by clemnt on Tuesday May 27, 2025 @01:22PM (#44108917)
pretty cool!
Re:Show HN: I made a VRAM Calculator in Hugging Face by PieterBecking on Wednesday May 28, 2025 @03:24AM (#44113500)
thx!