Skip to content

Fix 4-bit 70B VRAM estimate: published Q4_K_M is 42.5 GB, not ~35 GB - #839

Open
prosoftkeys wants to merge 1 commit into
runpod:mainfrom
prosoftkeys:fix-4bit-70b-vram-estimate
Open

Fix 4-bit 70B VRAM estimate: published Q4_K_M is 42.5 GB, not ~35 GB#839
prosoftkeys wants to merge 1 commit into
runpod:mainfrom
prosoftkeys:fix-4bit-70b-vram-estimate

Conversation

@prosoftkeys

Copy link
Copy Markdown

The "Estimate VRAM requirements" section advises that a 4-bit quantized 70B model runs on ~35 GB of VRAM. The published files are larger than that, and the gap lands on a pod size boundary.

Q4_K_M for Llama 3.1 70B ships at 42.52 GB from two independent publishers:

  • bartowski/Meta-Llama-3.1-70B-Instruct-GGUF : Meta-Llama-3.1-70B-Instruct-Q4_K_M.gguf
  • mradermacher/Meta-Llama-3.1-70B-Instruct-GGUF : Meta-Llama-3.1-70B-Instruct.Q4_K_M.gguf

That is 4.82 bits per weight rather than 4.0, because K-quants keep attention layers at higher precision. The ~35 GB figure is 70.6B x 4 bits, which is the theoretical rung rather than the file anyone downloads.

Why it matters for pod selection: 42.52 GB is 39.60 GiB, so on a 40 GB card the weights alone leave 0.40 GiB for the KV cache and everything else. Someone sizing from this line picks a 40 GB pod and hits OOM during load. A 48 GB card is the honest recommendation at 4-bit.

I have also added one line to the Resource calculators list. Disclosure: I maintain vramcalculator.com, so please treat that half as a suggestion and drop it if you would rather not add another link. The correction above stands on its own and is the reason I opened this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant