A CLI to estimate inference memory requirements for Hugging Face models, written in Python
Project description
hf-mem is an experimental CLI to estimate inference memory requirements for Hugging Face models, written in Python. hf-mem is lightweight, only depends on httpx. 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.
Read more information about hf-mem in this short-form post.
Usage
uvx hf-mem --model-id MiniMaxAI/MiniMax-M2
uvx hf-mem --model-id Qwen/Qwen-Image
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.1.1.tar.gz.
File metadata
- Download URL: hf_mem-0.1.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d500633cc08762864aa4aedad3999b31edcfe2fc73ac18e5f5c791f83685a12c
|
|
| MD5 |
77f65c8c8bbbfd52a36d2245945c8dc9
|
|
| BLAKE2b-256 |
bb9ae5f90a14184cd25fad21505a00729bb5f74cc6acc2eafcc543a86f503ee2
|
File details
Details for the file hf_mem-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hf_mem-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d9b140b8b67070436ea6d6643eb76587dbca99fe44572a265c56d83cc54ccd0
|
|
| MD5 |
340dbf9bd8bde62ed31558ea14cd7acd
|
|
| BLAKE2b-256 |
fb76dabbf895be819ceacdd02566dd55b429cd7399db82bfcb9faa8ff328aeb8
|