Check if a HuggingFace model will run on your GPU.
fitgpu takes a HuggingFace model ID and tells you whether the model's weights will fit in your GPU's available VRAM.
How?
- Gets model's file metadata from HuggingFace (weights are not downloaded)
- Sums up the sizes of all weight files (
.safetensors/.bin) - Queries your GPU's free VRAM using the NVIDIA driver
- Compares and shows the result
Installation
pip install fitgpu
Use
fitgpu <model_id> [--token TOKEN]
model_id— HuggingFace model ID (e.g.google/gemma-2-2b)--token TOKEN— optional, HuggingFace API token for gated/private models
Public models
fitgpu google/gemma-2-2b
Gated models
fitgpu meta-llama/Llama-2-7b-hf --token hf_YOUR_TOKEN
Example
$ fitgpu google/gemma-2-2b
model : google/gemma-2-2b
size : 4.89 GB (weights on disk)
GPU 0: NVIDIA RTX 4090
VRAM : 24.00 GB total, 22.31 GB free
result: fits
Metadata
Release files for fitgpu 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fitgpu-0.1.1.tar.gz | 2.8 kB | Without provenance | Details for fitgpu-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fitgpu-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for fitgpu-0.1.1-py3-none-any.whl |
Total release size: 6.4 kB
Release files / fitgpu-0.1.1.tar.gz
| Download URL | fitgpu-0.1.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
517b4ee319316b510ab5ae21af9511f74438d5c67651798f872f84c5fb21a766
|
|
BLAKE2b-256 checksum How to use checksums |
7ddd8fa0a4d02aabc86a8f9418291096e197e9274b9e68472956eeb1d96916d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.2
|
Release files / fitgpu-0.1.1-py3-none-any.whl
| Download URL | fitgpu-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dfb3a25fa829d9206473365a5231e5ef02feef382d046a95e2a5b645807b9c6
|
|
BLAKE2b-256 checksum How to use checksums |
34dd0c3d9f7eda1811084e94b69dba210267905e2396916c6ba133ddf7f617a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.2
|
Security for fitgpu 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.