Phind · text

Phind-CodeLlama-34B-Python-v1

Phind/Phind-CodeLlama-34B-Python-v1

Phind-CodeLlama-34B-Python-v1 at Q4_K_M is exactly 20,219,900,064 bytes (18.83 GiB / 20.22 GB) — an effective 4.794 bits per weight, not the nominal 4. Its KV cache at 32K is 6.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
33.7B
Architecture
llama
48 layers
Context
16,384
native (config.json)
License
llama2

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S6.75 GiB7,251,129,6001.719mradermacher
I1-IQ1_M7.38 GiB7,919,400,1921.877mradermacher
I1-IQ2_XXS8.41 GiB9,033,184,5122.142mradermacher
I1-IQ2_XS9.34 GiB10,024,875,2642.377mradermacher
I1-IQ2_S9.89 GiB10,614,387,9682.517mradermacher
I1-IQ2_M10.72 GiB11,505,415,4242.728mradermacher
I1-Q2_K11.65 GiB12,505,691,3922.965mradermacher
I1-IQ3_XXS12.12 GiB13,010,253,0563.084mradermacher
I1-IQ3_XS12.93 GiB13,880,259,8403.291mradermacher
Q2_K13.23 GiB14,210,674,8483.369TheBloke
Q3_K_S13.60 GiB14,605,349,0243.463TheBloke
I1-Q3_K_S13.60 GiB14,605,350,1443.463mradermacher
I1-IQ3_S13.65 GiB14,658,827,5203.475mradermacher
I1-IQ3_M14.18 GiB15,230,366,9763.611mradermacher
Q3_K_M15.17 GiB16,283,594,9123.861TheBloke
I1-Q3_K_M15.19 GiB16,306,140,4163.866mradermacher
Q3_K_L16.55 GiB17,771,524,2564.213TheBloke
I1-Q3_K_L16.55 GiB17,771,525,3764.213mradermacher
I1-IQ4_XS16.83 GiB18,068,681,9844.284mradermacher
Q4_017.74 GiB19,052,048,5444.517TheBloke
I1-Q4_017.81 GiB19,119,682,8164.533mradermacher
Q4_K_S17.83 GiB19,146,420,3844.539TheBloke
I1-Q4_K_S17.87 GiB19,191,510,2724.550mradermacher
Q4_K_M18.83 GiB20,219,900,0644.794TheBloke
I1-Q4_K_M18.83 GiB20,219,901,1844.794mradermacher
Q5_K_S21.64 GiB23,237,177,5045.509TheBloke
Q5_021.64 GiB23,237,177,5045.509TheBloke
I1-Q5_K_S21.64 GiB23,237,178,6245.509mradermacher
Q5_K_M22.20 GiB23,838,797,9845.652TheBloke
I1-Q5_K_M22.20 GiB23,838,799,1045.652mradermacher
Q6_K25.78 GiB27,683,877,0246.563TheBloke
I1-Q6_K25.78 GiB27,683,878,1446.563mradermacher
Q8_033.39 GiB35,856,052,3848.501TheBloke

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.75 GiB0.75 GiB48 / 0 / 0
8,1921.50 GiB1.50 GiB48 / 0 / 0
16,3843.00 GiB3.00 GiB48 / 0 / 0
32,7686.00 GiB6.00 GiB48 / 0 / 0
65,53612.00 GiB12.00 GiB48 / 0 / 0
131,07224.00 GiB24.00 GiB48 / 0 / 0

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 17.68 GiB. The real file is 18.83 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
48
Attention heads
64
KV heads
8
Head dim
128
Hidden size
8192
Vocab
32,000
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does Phind-CodeLlama-34B-Python-v1 need?
Q4_K_M is exactly 20,219,900,064 bytes (18.83 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Phind-CodeLlama-34B-Python-v1's KV cache?
6.00 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Which quantization of Phind-CodeLlama-34B-Python-v1 should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.