| name | update-vram-model |
| description | Extend the LLM VRAM calculator — add quant families, update formulas, add test anchors |
Update the VRAM Calculator Engine
Engine: src/common/llm-vram-calc.ts (~1412 lines)
Read .tmp/research/VRAM-RESEARCH.md first. It contains the authoritative quant bpw table, KV-cache formula, MoE factor, and sanity anchors. Do not use memory or external sources for bit-widths.
Key types (abbreviated)
type QuantEntry = { bpw: number; family: string; sweetSpot: boolean; hint: string };
type Quantization = keyof typeof QUANT_CATALOG;
type GpuType = 'nvidia' | 'amd' | 'apple' | 'cpu';
type KVCacheQuant = 'fp16' | 'fp8' | 'q8' | 'q4';
Steps