aicoolies logo
DeepSeek logo
DeepSeek logo

DeepGEMM

DeepSeek's FP8 general matrix multiplication kernels for efficient inference

open sourceupdated Jul 14, 2026

DeepGEMM is DeepSeek's open-source library of FP8 matrix multiplication CUDA kernels optimized for LLM inference and training on modern NVIDIA GPUs. It provides efficient GEMM operations using 8-bit floating point precision that reduce memory bandwidth requirements while maintaining model accuracy. Designed for integration into inference engines and training frameworks. Over 6,300 GitHub stars.

DeepGEMM provides optimized CUDA kernels for general matrix multiplication using FP8 (8-bit floating point) precision, the fundamental compute operation that dominates both LLM training and inference. By reducing precision from the standard FP16 to FP8, these kernels roughly double throughput and halve memory bandwidth requirements while maintaining model quality through careful handling of the reduced dynamic range.

The kernels are specifically optimized for the matrix shapes and access patterns that occur in transformer model computation, including attention projections, feed-forward network layers, and the expert computations in MoE architectures. Rather than general-purpose FP8 GEMM implementations, DeepGEMM provides kernels tuned for the specific workloads that LLM serving requires, extracting performance that generic libraries leave on the table.

With over 6,300 GitHub stars, DeepGEMM completes DeepSeek's trilogy of open-source compute infrastructure alongside FlashMLA for attention and DeepEP for expert parallelism. Together these libraries provide the low-level compute primitives needed to train and serve large models with the efficiency that DeepSeek has demonstrated. The MIT license enables unrestricted use in both research and commercial inference deployments.

Pricing

Free and open-source under MIT license

Platforms

CUDA, NVIDIA GPUs (Hopper+ recommended)

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

KTransformers parent kvcache-ai logo

KTransformers

Heterogeneous CPU-GPU inference and SFT for large MoE models

Open-source framework for running and fine-tuning large Mixture-of-Experts models with heterogeneous CPU-GPU execution, optimized kernels, limited VRAM and SGLang or LLaMA-Factory integrations.

Open Source
vLLM Production Stack parent vLLM logo

vLLM Production Stack

Official Kubernetes and Helm reference stack built on the vLLM inference engine

Official vLLM reference implementation for scaling the existing inference engine on Kubernetes with Helm, request routing, KV-cache offload, autoscaling and Prometheus/Grafana observability.

Open Source
Dynamo logo

NVIDIA Dynamo

Distributed inference orchestration above vLLM, SGLang and TensorRT-LLM

Open-source, datacenter-scale orchestration layer that coordinates vLLM, SGLang and TensorRT-LLM across nodes with disaggregated serving, KV-aware routing, multi-tier cache management and automatic scaling.

Open Source
GPUStack logo

GPUStack

Open-source GPU control plane for scalable AI model serving

Open-source GPU cluster manager that configures vLLM, SGLang, TensorRT-LLM or custom engines, serves models through compatible APIs, and provisions SSH-accessible GPU instances across on-premises, Kubernetes and cloud environments.

Open Source
Mooncake logo

Mooncake

Disaggregated KV cache storage and transfer for LLM serving

Open-source infrastructure for disaggregated LLM serving that pools KV caches across prefill and decode workers, with high-performance transfer, distributed storage and integrations for vLLM and SGLang.

Open Source
LMCache logo

LMCache

Reusable KV cache infrastructure for scalable LLM inference

Open-source KV cache management layer that persists, offloads and reuses model key-value caches across requests and serving engines to reduce repeated prefill work and improve inference throughput.

Open Source

FAQ

What is DeepGEMM?

DeepGEMM is DeepSeek's open-source library of FP8 matrix multiplication CUDA kernels optimized for LLM inference and training on modern NVIDIA GPUs. It provides efficient GEMM operations using 8-bit floating point precision that reduce memory bandwidth requirements while maintaining model accuracy. Designed for integration into inference engines and training frameworks. Over 6,300 GitHub stars.

Is DeepGEMM free?

Yes — DeepGEMM is open source and free to use. Free and open-source under MIT license

Is DeepGEMM open source?

Yes — DeepGEMM is open source.

What are the best DeepGEMM alternatives?

The top editor-verified DeepGEMM alternatives are FlashMLA, DeepEP.