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.0.3.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.0.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hf_mem-0.0.3.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.0.3.tar.gz
Algorithm Hash digest
SHA256 d6b545deddffa62d2377f168d6375da91860216b7e9d10a56c8fcfdb288d154d
MD5 28775c0d1e83ab9311e54aeb32f325e0
BLAKE2b-256 52da7dc09adc3920eb07ab93640642052c5beb74d8b36584028b8715ee33aea6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hf_mem-0.0.3-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.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 da423d5080c27b485a327402b0daf03105ea5ad8f37759bb3960fb7b9644f744
MD5 b6a32e1607dcc6879c1d89ea425824b8
BLAKE2b-256 182efb11f592646256b95160195501ddf1e64d8cc50fce5890a0d69a03ac28ac

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