Llama-2-7B
The 7-billion-parameter variant in Meta's Llama 2 model series, trained with a deliberate over-training strategy, achieving a token-to-parameter ratio of approximately 290:1.
Core Facts
Taking LLaMA-3 70B (80 layers, 64 heads, 128 dimensions per head) as an example, the KV Cache for a single token occupies approximately 2.6 MB (FP16 precision), and the total KV Cache for a 32K context reaches approximately 83 GB.
For a typical 7B model with 32 layers and 32 attention heads, storing the KV Cache for each token requires approximately 0.5 MB of VRAM, so generating 1,000 tokens requires an additional ~500 MB of VRAM
Timeline (last 90 days)
An M2 Max Mac Studio can run Llama-2-7B inference at 8 tokens per second.
Under the same average activated parameter budget, LRCC improves average downstream task accuracy by 7.6 percentage points on Llama-2-7B compared to static methods.
All Facts (5)
Taking LLaMA-3 70B (80 layers, 64 heads, 128 dimensions per head) as an example, the KV Cache for a single token occupies approximately 2.6 MB (FP16 precision), and the total KV Cache for a 32K context reaches approximately 83 GB.
90%VerifiedFor a typical 7B model with 32 layers and 32 attention heads, storing the KV Cache for each token requires approximately 0.5 MB of VRAM, so generating 1,000 tokens requires an additional ~500 MB of VRAM
70%UnverifiedThe token-to-parameter ratios of Llama-2-7B and Gemma-2-9B are approximately 290 and 889, respectively, far exceeding Chinchilla's 20:1.
85%UnverifiedAn M2 Max Mac Studio can run Llama-2-7B inference at 8 tokens per second.
50%UnverifiedUnder the same average activated parameter budget, LRCC improves average downstream task accuracy by 7.6 percentage points on Llama-2-7B compared to static methods.
50%