Skip to main content
Execute qualquer Skill no Manus
com um clique

ml-vram-estimator

Estrelas0
Forks0
Atualizado22 de maio de 2026 às 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".

Instalação

Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.

Explorador de arquivos
9 arquivos
SKILL.md
readonly