Salesforce · text

xLAM-7b-r

Salesforce/xLAM-7b-r

xLAM-7b-r at Q4_K_M is exactly 4,368,440,352 bytes (4.07 GiB / 4.37 GB) — an effective 4.826 bits per weight, not the nominal 4. Its KV cache at 32K is 4.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
7.2B
Architecture
llama
32 layers
Context
32,768
native (config.json)
License
cc-by-nc-4.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S1.50 GiB1,612,102,6881.781legraphista
I1-IQ1_S1.50 GiB1,612,103,2961.781mradermacher
IQ1_M1.63 GiB1,754,446,8801.938legraphista
I1-IQ1_M1.63 GiB1,754,447,4881.938mradermacher
IQ2_XXS1.85 GiB1,991,687,2002.200legraphista
I1-IQ2_XXS1.85 GiB1,991,687,8082.200mradermacher
IQ2_XS2.05 GiB2,198,256,6722.428legraphista
I1-IQ2_XS2.05 GiB2,198,257,2802.428mradermacher
IQ2_S2.15 GiB2,310,921,2482.553legraphista
I1-IQ2_S2.15 GiB2,310,921,8562.553mradermacher
IQ2_M2.33 GiB2,500,713,5042.763bartowski
IQ2_M2.33 GiB2,500,713,5042.763legraphista
I1-IQ2_M2.33 GiB2,500,714,1122.763mradermacher
Q2_K_S2.36 GiB2,528,926,7522.794legraphista
Q2_K2.53 GiB2,719,243,2963.004legraphista
Q2_K2.53 GiB2,719,243,2963.004bartowski
I1-Q2_K2.53 GiB2,719,243,9043.004mradermacher
IQ3_XXS2.63 GiB2,827,344,9283.123legraphista
I1-IQ3_XXS2.63 GiB2,827,345,5363.123mradermacher
Q2_K_L2.65 GiB2,847,243,2963.145bartowski
IQ3_XS2.81 GiB3,018,816,5443.335bartowski
IQ3_XS2.81 GiB3,018,816,5443.335legraphista
I1-IQ3_XS2.81 GiB3,018,817,1523.335mradermacher
Q3_K_S2.95 GiB3,164,568,6083.496legraphista
Q3_K_S2.95 GiB3,164,568,6083.496bartowski
I1-Q3_K_S2.95 GiB3,164,569,2163.496mradermacher
IQ3_S2.96 GiB3,182,394,4003.516legraphista
I1-IQ3_S2.96 GiB3,182,395,0083.516mradermacher
IQ3_M3.06 GiB3,284,892,7043.629bartowski
IQ3_M3.06 GiB3,284,892,7043.629legraphista
I1-IQ3_M3.06 GiB3,284,893,3123.629mradermacher
Q3_K_M3.28 GiB3,518,987,2963.888bartowski
Q3_K3.28 GiB3,518,987,2963.888legraphista
I1-Q3_K_M3.28 GiB3,518,987,9043.888mradermacher
Q3_K_L3.56 GiB3,822,025,7604.222bartowski
Q3_K_L3.56 GiB3,822,025,7604.222legraphista
I1-Q3_K_L3.56 GiB3,822,026,3684.222mradermacher
IQ4_XS3.64 GiB3,907,689,5044.317legraphista
IQ4_XS3.64 GiB3,907,689,5044.317bartowski
I1-IQ4_XS3.64 GiB3,907,690,1124.317mradermacher

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.50 GiB0.50 GiB32 / 0 / 0
8,1921.00 GiB1.00 GiB32 / 0 / 0
16,3842.00 GiB2.00 GiB32 / 0 / 0
32,7684.00 GiB4.00 GiB32 / 0 / 0
65,5368.00 GiB8.00 GiB32 / 0 / 0
131,07216.00 GiB16.00 GiB32 / 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 3.79 GiB. The real file is 4.07 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

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

Questions people ask

How much VRAM does xLAM-7b-r need?
Q4_K_M is exactly 4,368,440,352 bytes (4.07 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is xLAM-7b-r's KV cache?
4.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 xLAM-7b-r 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.