Skip to main content

llmready

PyPI version Python versions License: MIT

llmready is a CLI tool and Python library that analyzes your local system hardware (CPU RAM, Apple Silicon Unified Memory, and NVIDIA GPU VRAM) and accepts a Hugging Face model ID. It calculates the memory required to run that model at various quantizations (FP16, INT8, INT4) and outputs a clear "Go/No-Go" verdict.

It does not download the massive model weights to check memory; it smartly fetches only the metadata via the Hugging Face API!

Features

  • Hardware Profiling: Detects Apple Silicon Unified Memory, NVIDIA VRAM, and standard System RAM.
  • Fast Metadata Fetching: Retrieves model parameter counts quickly without downloading weights.
  • Accurate Memory Math: Includes KV Cache / context window overheads (20%).
  • Beautiful Output: Uses rich to print colorful terminal tables with clear Go/No-Go hardware verdicts.

Installation

You can install this package locally using pip:

# Clone the repository and cd into it
cd llmready

# Install the package and its dependencies in editable mode
pip install -e .

This will automatically install dependencies like psutil, huggingface-hub, and rich, and will register the llmready (and legacy llm-check) CLI command.

Usage

Simply run the command with any Hugging Face model repository ID:

llmready meta-llama/Llama-3.2-1B

Advanced Features

1. Context Window Size

By default, the tool calculates the KV Cache memory footprint for an 8192 token context window using the model's exact architecture. You can change this using --context-length or -c:

llmready meta-llama/Llama-2-7b-chat-hf -c 32000

2. Training / Fine-Tuning Memory

If you want to know if you can train a model (Full Fine-Tuning or LoRA/QLoRA), use the --train flag. This calculates the memory required for optimizer states and gradients rather than just inference.

3. Hardware Model Recommendations

Not sure what to run? Ask the tool to scan your hardware and recommend popular models that will fit locally:

llmready --recommend

Private & Gated Models

If you are trying to check a gated model (like meta-llama/Llama-3-8b) or a private repo, you must have access to it on Hugging Face and provide your access token.

You can set the standard Hugging Face token environment variable before running the tool:

export HF_TOKEN="hf_your_access_token_here"
llmready meta-llama/Llama-3-8b

How It Works

  1. Hardware: Uses psutil and nvidia-smi (if applicable) to see what compute you have available.
  2. Parameters: Uses huggingface_hub to read safetensors.total metadata (or fallback size approximation).
  3. Calculation: Memory = Parameters * Bytes per Parameter (FP16=2, INT8=1, INT4=0.6). It also adds a 20% overhead to account for KV caching and memory footprint.
  4. Verdict: Compares the required memory to your available VRAM and RAM to issue a 🟢 Pass, 🟡 Warning, or 🔴 Fail.

Metadata

Release files for llmready 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llmready 0.1.0
File Size Uploaded Provenance
llmready-0.1.0.tar.gz 11.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llmready 0.1.0
File Interpreter ABI Platform
llmready-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.5 kB

Release files / llmready-0.1.0.tar.gz

Download URL llmready-0.1.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
155d1d968eb63d9b1d86f46b8a997c3376fe352a52499cbcbb7a139455c6d70f
BLAKE2b-256 checksum
How to use checksums
8cc1731dd4c90dbe7a296e9c7cece4e6155e19ef97019b3564ca17dbd2fe854d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / llmready-0.1.0-py3-none-any.whl

Download URL llmready-0.1.0-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d47a55d0fadd1ba6fb786094f51d418f050a3f2204beb4738fc9dda17673511
BLAKE2b-256 checksum
How to use checksums
6c3b4325eb98773a5bbcb7a43d5c22a108d8b9242ebc49c0178f1421bf61e4da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for llmready 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page