Can I run Teuken-7B-instruct-research-v0.4 on a GeForce RTX 5070?

Yes. The best fit is I1-Q6_K at 131,072 context with f16 KV — 10.94 GiB of 11.16 GiB usable, leaving 0.22 GiB headroom. Expect roughly 47 tokens/sec (modeled, ±12.9%).

From the file· weights summed from filesFrom the file· KV computed per layerPredicted· speed and compute buffer
KV cache dtypef16q8_0q4_012 GB card, 11.16 GiB usable after overhead

Every quantization at every context

total memory required; green fits, red does not
QuantWeights4K8K16K32K64K128K
F1613.89 GiB14.915.015.215.716.718.7
Q8_07.38 GiB8.38.58.79.210.212.2
Q6_K_L6.33 GiB7.37.47.78.29.211.2
I1-Q6_K6.10 GiB7.17.27.47.98.910.9
Q6_K6.10 GiB7.17.27.47.98.910.9
Q5_K_L5.50 GiB6.56.66.87.38.310.3
I1-Q5_K_M5.27 GiB6.26.46.67.18.110.1
Q5_K_M5.27 GiB6.26.46.67.18.110.1
I1-Q5_K_S5.01 GiB6.06.16.36.87.89.8
Q5_K_S5.01 GiB6.06.16.36.87.89.8
Q4_K_L4.91 GiB5.96.06.26.77.79.7
I1-Q4_K_M4.67 GiB5.65.86.06.57.59.5
Q4_K_M4.67 GiB5.65.86.06.57.59.5
I1-Q4_K_S4.38 GiB5.35.55.76.27.29.2
Q4_K_S4.38 GiB5.35.55.76.27.29.2
I1-Q4_04.17 GiB5.15.35.56.07.09.0
Q4_04.17 GiB5.15.35.56.07.09.0
I1-IQ4_XS4.03 GiB5.05.15.45.96.98.9
IQ4_XS4.03 GiB5.05.15.45.96.98.9
I1-Q3_K_L4.03 GiB5.05.15.45.96.98.9
Q3_K_L4.03 GiB5.05.15.45.96.98.9
I1-Q3_K_M3.86 GiB4.85.05.25.76.78.7
Q3_K_M3.86 GiB4.85.05.25.76.78.7
I1-IQ3_M3.68 GiB4.64.85.05.56.58.5
IQ3_M3.68 GiB4.64.85.05.56.58.5
I1-IQ3_S3.58 GiB4.54.74.95.46.48.4
I1-Q3_K_S3.58 GiB4.54.74.95.46.48.4
Q3_K_S3.58 GiB4.54.74.95.46.48.4
I1-IQ3_XS3.44 GiB4.44.54.85.36.38.3
IQ3_XS3.44 GiB4.44.54.85.36.38.3
Q2_K_L3.43 GiB4.44.54.85.36.38.3
I1-IQ3_XXS3.25 GiB4.24.34.65.16.18.1
I1-Q2_K3.20 GiB4.24.34.55.06.08.0
Q2_K3.20 GiB4.24.34.55.06.08.0
I1-IQ2_M3.04 GiB4.04.14.44.95.97.9
IQ2_M3.04 GiB4.04.14.44.95.97.9
I1-IQ2_S2.92 GiB3.94.04.34.85.87.8
I1-IQ2_XS2.85 GiB3.83.94.24.75.77.7
I1-IQ2_XXS2.72 GiB3.73.84.14.65.67.6
I1-IQ1_M2.57 GiB3.53.73.94.45.47.4
I1-IQ1_S2.48 GiB3.43.63.84.35.37.3
From the filePredictedwhat these mean

Figures are GiB of total memory: weights plus KV cache plus compute buffer and backend overhead. Weights and KV are near-exact; the overhead term is modeled. Hover any cell for the breakdown.

Run it

The best-fitting configuration above, as a command:

llama-cli -hf openGPT-X/Teuken-7B-instruct-research-v0.4 \
  --ctx-size 131072 \
  -ngl auto

Recent llama.cpp defaults to --fit on with -ngl auto, so it will size the offload for you. The question worth your attention is not how many layers to offload but what context and quantization you are willing to live with — which is what the grid above is for.

Why other calculators disagree

A parameters × bits ÷ 8 estimate ignores two things that dominate at long context. First, the weights themselves are not the nominal rate — quantizations are mixtures, so the real file is consistently larger than the label implies. Second, the KV cache grows linearly with context and, past about 32K, becomes larger than the weights for many models.