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.1.tar.gz (3.5 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.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hf_mem-0.0.1.tar.gz
Algorithm Hash digest
SHA256 131fc069ae1f47ebe0ca3025964e2ed34dd516222711fe2ba9cb9e0bfd957d56
MD5 0e8b7682daf7c7c9fa3a69e31aed1ae8
BLAKE2b-256 1dcb39a20633a2fb7b4dce6059a543e5a1385977899cf33837b96d79cc90c416

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hf_mem-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8ba805c5078d11fbb62bb5839a852012334acae52b610a7c6c9a0dc00e44f9e
MD5 01aaaad02a028298768cce733c9647ea
BLAKE2b-256 6bee702f734efe8cad39ae5102a1fa36e5aa14399a15d558f86c673e8b3fed11

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