Skip to content
Llmfit Local

Llmfit Local

github.com • November 28, 2026

A zero-dependency CLI tool that inspects your local CPU, RAM, GPU/VRAM, and free disk space to recommend open-weight LLMs and quantization levels ( FP16 , Q8_0 , Q5_K_M , Q4_K_M , and ONNX INT4 ) that fit your machine—complete with MoE-aware speed estimates ( tok/s ), binary .gguf header inspection, VRAM max-context scaling, Hugging Face repo inspection, local Ollama audits, and Modelfile generation.

Automatic Hardware Detection: Probes system RAM, CPU cores, free disk space, NVIDIA GPUs ( nvidia-smi ), AMD ROCm GPUs ( rocm-smi ), Windows discrete GPUs, and Apple Silicon unified memory using only the Python standard library.

Binary .gguf Header Inspection ( --gguf ): Reads GGUF v2/v3 metadata headers directly via Python's built-in struct module to extract architecture, quantization type, native context length, and memory/speed fit without loading tensor weights.

VRAM Max-Context Scaling ( --max-context ): Calculates the largest context window ( 2k up to 128k tokens) that still fits 100% inside your GPU VRAM ( GPU_FULL ).

26+ Curated Dense & MoE Models: Includes Qwen 3, Gemma 3, Phi-4, DeepSeek-R1 Distill, Devstral Small 24B, Mistral Small 3.2 24B, Llama 3.1/3.2/3.3, Qwen 3 30B-A3B (MoE), and Mixtral 8x7B (MoE).

MoE-Aware Speed & Fit Tiers: Categorizes models into GPU_FULL , HYBRID (GPU + RAM offload), or CPU_ONLY while scaling tok/s estimates from active parameters ( active_params_b ) for Mixture-of-Experts architectures.

Hugging Face Repo Lookup ( --hf ): Fetches parameter metadata directly from Hugging Face ( llmfit --hf Qwen/Qwen3-32B ) and evaluates FP16 , Q8_0 , Q5_K_M , and Q4_K_M against your hardware.

Custom Model Sizing ( --params , --active-params , --context ): Evaluate any arbitrary dense or MoE model size and context length before downloading.

Local Ollama Audit ( --check-ollama ) & Modelfile Export ( --modelfile ): Audits installed ollama list models against detected VRAM/RAM or prints a ready-to-save Modelfile configuring PARAMETER num_ctx .

GGUF / Ollama & ONNX Modes: Outputs ollama run commands by default, or olive run --model ONNX INT4 recommendations with --onnx .

Cross-Platform Support

llmfit-local runs natively on Windows, macOS, and Linux with zero third-party dependencies:

Windows: Uses GlobalMemoryStatusEx via ctypes for physical RAM detection, plus nvidia-smi and Windows video controller queries for GPU VRAM.

macOS: Detects Apple Silicon ( arm64 ) unified memory and budgets GPU allocation automatically.

Linux: Reads POSIX sysconf memory pages alongside nvidia-smi and rocm-smi GPU telemetry.

Extracted Entities

Companies (2)

Tools (1)