Skip to main content
Jeden Skill in Manus ausführen
mit einem Klick

ml-vram-estimator

Sterne0
Forks0
Aktualisiert22. Mai 2026 um 01:06

Estimate GPU memory (VRAM) BEFORE launching, so a run doesn't OOM hours in. Given a model (HF config.json / model dir, or manual params) and a scenario (inference vs training, batch size, sequence length, dtype, parallelism), it computes a per-GPU breakdown — weights + KV-cache + gradients + optimizer + activations + overhead — and returns a fits ✅ / tight ⚠️ / OOM ❌ verdict with concrete fallbacks (smaller batch, shorter seq, quantize, grad checkpointing, more GPUs, FSDP/ZeRO, offload). Correctly handles GQA, MoE (all experts in VRAM), hybrid attention (KV-cache only for full-attention layers), and reads real on-disk weight size for quantized models. Use when the user asks: will this model fit, how much VRAM does X need, why did it OOM, what batch/seq can I run, how many GPUs do I need, KV cache size, activation memory, optimizer memory. Triggers: "显存", "会不会 OOM", "放得下吗", "显存估算", "VRAM", "OOM", "batch size 能开多大", "需要几张卡", "KV cache", "fit in memory", "memory footprint".

Installation

Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.

Datei-Explorer
9 Dateien
SKILL.md
readonly