Skip to main content

A CLI to estimate inference memory requirements for Hugging Face models, written in Python

Project description

hf-mem

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.

Usage

uvx hf-mem --model-id MiniMaxAI/MiniMax-M2
uvx hf-mem --model-id Qwen/Qwen-Image

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hf_mem-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hf_mem-0.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file hf_mem-0.1.0.tar.gz.

File metadata

  • Download URL: hf_mem-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for hf_mem-0.1.0.tar.gz
Algorithm Hash digest
SHA256 93e3e0f32cf1cc5f94b407e8da1e3ecce8e2babb53ee21759db7ea285272704c
MD5 d6e287ee85d325a84d9cc8f03312d76b
BLAKE2b-256 d4951a1401c6e0ce269d3636b005267e82e006534eb8aa15ae2bc111717b065f

See more details on using hashes here.

File details

Details for the file hf_mem-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hf_mem-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for hf_mem-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd4c19ad6a0a466a1086953fc3c1a8c81687cd11b6ca07c26e89ad6c4faa6476
MD5 c13d7fa9966c7b3adfe09188510657ce
BLAKE2b-256 b37451515d042c051d5c8665b3e065a78e73d4dfa8f85af0df4cfb1f5a231024

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page