← News

ResearchSources: arXiv · 30 Nov 2026

Study ties 7B model design choices to memory and retrieval limits on one GPU

A new arXiv paper measures how attention heads, sliding windows and vocabulary size shape what LLaMA 7B, Mistral 7B and Qwen2.5-7B can do on a 16 GB card.

In plain words

Three popular small language models make different internal design choices, and a new paper tests what those choices cost in practice. On a single 16 GB GPU, the authors found that Mistral's attention window caps how far back it can find information, while Qwen2.5's larger vocabulary and shared memory use let it handle far longer texts with less memory.

What was announced

The paper examines three 7B models that differ in three architectural decisions: the number of key-value heads kept by attention layers, whether attention is restricted to a sliding window, and vocabulary size. Testing on a single 16 GB T4 GPU, the authors report that Mistral's passkey retrieval failed in every one of 62 trials where the key sat at or beyond 4,098 tokens from the prompt's end, yet succeeded in all 72 trials inside its window. Disabling the window restored retrieval across 8K-token prompts, which the authors attribute to the mask itself; at 16K and 32K tokens that window-free variant failed entirely, while the windowed model still found nearby keys. Qwen2.5 retrieved the key in all 60 trials up to 32K tokens.

On memory, the paper reports per-token cache costs of 512, 128 and 56 KiB for LLaMA, Mistral and Qwen2.5 respectively. LLaMA exhausted memory at 32K tokens, while Qwen2.5 held 64K tokens within 3.5 GiB. Across 1,997 parallel sentences in 15 languages, Qwen2.5's tokenizer cut 38-58% of tokens for five languages and 3-11% for the rest; with cache sharing, LLaMA needed 9.5-22.0 times more cache memory than Qwen2.5 for the same sentence. Decode latency grew with cache size, and cache copying alone accounted for roughly that growth. The authors state that code and results are public.

What it does not show

  • The source is an abstract, so the full paper's methods and caveats are not visible here.
  • All measurements come from the authors' own tests on one 16 GB T4 GPU and one runtime; no independent replication is reported.
  • Findings cover only the three named 7B models and the specific configurations tested.

For security and IT teams

Scope
Results apply to original LLaMA 7B, Mistral 7B v0.1 and Qwen2.5-7B on a single 16 GB T4 GPU as tested by the authors.

Sources

Source-support review completed 1 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 1 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.