Skip to main content

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

Project description

hf-mem

[!WARNING] hf-mem works, 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


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.2.tar.gz (4.3 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.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for hf_mem-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f2939f833133b6ed131b852bbb1a4e7a35ea6dbe12767d94d2bd4df56001c858
MD5 50600856716df3aa76c3a0ace98c0416
BLAKE2b-256 90389962ed13d70c9fdfec1b26c7427fe6dadea8f3e4ddca75ab8ddfdc26e83c

See more details on using hashes here.

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

Hashes for hf_mem-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ca4da8d8d9ccef566efb221add4abd675b59db2caeb1cde1232ce533f8d34fb
MD5 f646b8b7e29db943c2215ed4b17183c2
BLAKE2b-256 5179f8f876b6c7893c0f6dc37f29a30ba0e85224af0cd4eb5be48d57000051f2

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