A CLI to estimate inference memory requirements for Hugging Face models, written in Python
Project description
hf-mem
[!WARNING]
hf-memworks, but is still experimental. Ideally there should be a minor release anytime soon making things a bit more stable (and aesthetic).
hf-mem is a CLI to estimate inference memory requirements for Hugging Face models, written in Python. hf-mem is lightweight and free for third-party dependencies. It's recommended to run with uv for a better experience.
hf-mem lets you estimate the inference requirements to run any model from the Hugging Face Hub, including Transformers, Diffusers and Sentence Transformers models, as well as any model that contains Safetensors compatible weights.
Usage
uvx hf-mem --model-id HuggingFaceTB/SmolLM3-3B
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hf_mem-0.0.2.tar.gz.
File metadata
- Download URL: hf_mem-0.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2939f833133b6ed131b852bbb1a4e7a35ea6dbe12767d94d2bd4df56001c858
|
|
| MD5 |
50600856716df3aa76c3a0ace98c0416
|
|
| BLAKE2b-256 |
90389962ed13d70c9fdfec1b26c7427fe6dadea8f3e4ddca75ab8ddfdc26e83c
|
File details
Details for the file hf_mem-0.0.2-py3-none-any.whl.
File metadata
- Download URL: hf_mem-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ca4da8d8d9ccef566efb221add4abd675b59db2caeb1cde1232ce533f8d34fb
|
|
| MD5 |
f646b8b7e29db943c2215ed4b17183c2
|
|
| BLAKE2b-256 |
5179f8f876b6c7893c0f6dc37f29a30ba0e85224af0cd4eb5be48d57000051f2
|