Snowflake/Llama-3.1-SwiftKV-8B-Instruct

Model

8

stars

28

commits

2

linked in READMEs

Aug 14, 2025

updated

llama_swiftkv
safetensors

README

SwiftKV

The Snowflake AI Research team is releasing a series of SwiftKV optimized Llama-3.1 models. SwiftKV is a series of inference optimizations that goes beyond traditional key-value (KV) cache compression. This method reduces computational overhead during prompt processing by combining model rewiring and knowledge-preserving self-distillation, allowing prefill tokens to skip up to half the model's layers. SwiftKV achieves up to 2x improvements in throughput, latency, and cost efficiency with minimal accuracy loss, making LLM deployments more performant and economically viable.

For more details about SwiftKV and how to use it:

Revisions

  • release-2508 (Aug 2025): Updated model weights for long-context up to 128K
  • release-2412 (Dec 2024): Initial model release

Performance Metrics

To evaluate SwiftKV’s performance, we focus on the following key metrics (see more details in our blog):

  • Combined throughput: The total number of input and output tokens processed per second. This determines:
    • For batch processing, the time required to complete jobs.
    • For interactive use, the volume of concurrent requests a system can handle.
  • TTFT: The latency between a user request and receiving the first token in the response.
  • TPOT: The latency between subsequent tokens after the first token.

Combined input and output throughput for Llama 3.1 70B (left) and Llama 3.1 405B (right) across a range of input lengths (bottom). performance plot of llama-405B w. swiftkv

TTFT (top) and TPOT (bottom) for input lengths 2000 (left), 8000 (middle), and 32000 (right) for Llama 3.1 405B fp8 model. For each experiment, a range of different request arrival rates is simulated. Each request generates 256 output tokens. performance plot of llama-405B w. swiftkv

Eval Metrics

For a full breakdown on evaluation metrics and performance impact please refer to our blog and arXiv paper but below we've outlined some relevant evaluation metrics.

Llama-3.1-405B-Instruct-FP8Arc ChallengeWinograndeHellaSwagTruthfulQAMMLUMMLU cotGSM8KAvg
Baseline94.787.088.364.787.588.196.186.6
50% SingleInputKV94.086.388.164.285.787.595.285.9
Llama-3.1-8B-InstructArc ChallengeWinograndeHellaSwagTruthfulQAMMLUMMLU cotGSM8KAvg
Baseline82.0077.9080.4054.5667.9070.6382.5673.71
50% SingleInputKV80.3878.2279.3054.5467.3069.7379.4572.70

Get started by serving SwiftKV on vLLM

Instructions on how to use vLLM for both evaluation and performance benchmarks: https://github.com/Snowflake-Labs/vllm/tree/swiftkv/examples/swiftkv

Contributors

jeffra

25 commits

aurick

2 commits

annafil

1 commits

Snowflake/Llama-3.1-SwiftKV-8B-Instruct

Model

8

stars

28

commits

2

linked in READMEs

Aug 14, 2025

updated

llama_swiftkv
safetensors

README

SwiftKV

The Snowflake AI Research team is releasing a series of SwiftKV optimized Llama-3.1 models. SwiftKV is a series of inference optimizations that goes beyond traditional key-value (KV) cache compression. This method reduces computational overhead during prompt processing by combining model rewiring and knowledge-preserving self-distillation, allowing prefill tokens to skip up to half the model's layers. SwiftKV achieves up to 2x improvements in throughput, latency, and cost efficiency with minimal accuracy loss, making LLM deployments more performant and economically viable.

For more details about SwiftKV and how to use it:

Revisions

  • release-2508 (Aug 2025): Updated model weights for long-context up to 128K
  • release-2412 (Dec 2024): Initial model release

Performance Metrics

To evaluate SwiftKV’s performance, we focus on the following key metrics (see more details in our blog):

  • Combined throughput: The total number of input and output tokens processed per second. This determines:
    • For batch processing, the time required to complete jobs.
    • For interactive use, the volume of concurrent requests a system can handle.
  • TTFT: The latency between a user request and receiving the first token in the response.
  • TPOT: The latency between subsequent tokens after the first token.

Combined input and output throughput for Llama 3.1 70B (left) and Llama 3.1 405B (right) across a range of input lengths (bottom). performance plot of llama-405B w. swiftkv

TTFT (top) and TPOT (bottom) for input lengths 2000 (left), 8000 (middle), and 32000 (right) for Llama 3.1 405B fp8 model. For each experiment, a range of different request arrival rates is simulated. Each request generates 256 output tokens. performance plot of llama-405B w. swiftkv

Eval Metrics

For a full breakdown on evaluation metrics and performance impact please refer to our blog and arXiv paper but below we've outlined some relevant evaluation metrics.

Llama-3.1-405B-Instruct-FP8Arc ChallengeWinograndeHellaSwagTruthfulQAMMLUMMLU cotGSM8KAvg
Baseline94.787.088.364.787.588.196.186.6
50% SingleInputKV94.086.388.164.285.787.595.285.9
Llama-3.1-8B-InstructArc ChallengeWinograndeHellaSwagTruthfulQAMMLUMMLU cotGSM8KAvg
Baseline82.0077.9080.4054.5667.9070.6382.5673.71
50% SingleInputKV80.3878.2279.3054.5467.3069.7379.4572.70

Get started by serving SwiftKV on vLLM

Instructions on how to use vLLM for both evaluation and performance benchmarks: https://github.com/Snowflake-Labs/vllm/tree/swiftkv/examples/swiftkv

Contributors

jeffra

25 commits

aurick

2 commits

annafil

1 commits