aws-prototyping · text

MegaBeam-Mistral-7B-512k

aws-prototyping/MegaBeam-Mistral-7B-512k

MegaBeam-Mistral-7B-512k at Q4_K_M is exactly 4,368,440,224 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
524,288
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_M2.33 GiB2,500,713,3762.763bartowski
Q2_K2.53 GiB2,719,243,1683.004bartowski
Q2_K_L2.65 GiB2,847,243,1683.145bartowski
IQ3_XS2.81 GiB3,018,816,4163.335bartowski
Q3_K_S2.95 GiB3,164,568,4803.496bartowski
IQ3_M3.06 GiB3,284,892,5763.629bartowski
Q3_K_M3.28 GiB3,518,987,1683.888bartowski
Q3_K_L3.56 GiB3,822,025,6324.222bartowski
IQ4_XS3.64 GiB3,907,689,3764.317bartowski
Q4_K_S3.86 GiB4,140,374,9444.574bartowski
Q4_K_M4.07 GiB4,368,440,2244.826bartowski
Q4_K_L4.16 GiB4,465,720,2244.933bartowski
Q5_K_S4.65 GiB4,997,716,8965.521bartowski
Q5_K_M4.78 GiB5,131,410,3365.669bartowski
Q5_K_L4.85 GiB5,212,306,3365.758bartowski
Q6_K5.53 GiB5,942,066,0806.564bartowski
Q6_K_L5.59 GiB6,005,554,0806.634bartowski
Q8_07.17 GiB7,695,858,5928.502bartowski
F1613.49 GiB14,484,732,54416.001bartowski

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 MegaBeam-Mistral-7B-512k need?
Q4_K_M is exactly 4,368,440,224 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 MegaBeam-Mistral-7B-512k'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 MegaBeam-Mistral-7B-512k 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.
MegaBeam-Mistral-7B-512k — VRAM requirements, exact quant sizes — ossmodeldb