HPC-Ops open-sources the kernels behind Tencent's inference serving
- Source
- github.com
- Publisher
- Tencent
- Author
- Tencent Hy
- Date

Context
Tencent's HPC-Ops is a library of GPU kernels, the small programs that carry out each step of running a , such as , the expert layers of models, and picking the next token. It does not replace serving software. The README describes a Python API designed to be called from existing frameworks such as vLLM and SGLang. It says the kernels are tuned for NVIDIA's H20 and lists an NVIDIA GPU of the SM90 architecture as a requirement, so it is aimed at teams running their own serving stacks on that hardware; its build instructions also cover a newer architecture, sm103.
One technique the README explains in detail is fusion, doing in one kernel what usually takes several. Choosing each new token, for example, normally chains many small operations over the whole vocabulary, including repetition penalties, scaling, top-k and top-p filtering and the final random draw. The README says that in small-batch serving these separate kernels and their repeated trips to GPU memory can become a visible delay, and a fused sampler, listed among updates the README dates to June 2026, collapses the whole sequence into two kernels. Tencent reports that sampler as up to 8.5 times faster than vLLM-style PyTorch code and FlashInfer, for batch sizes from 1 to 512.
The README's performance table gives best cases for single operations against named alternatives, such as decode attention up to 2.22 times faster than FlashInfer, FlashAttention and TensorRT-LLM. It notes that performance varies across cases and points to a benchmark directory for reproduction, which was not reviewed here. The larger claim appears only in the launch post: a 30% gain in queries per minute for Tencent's Hunyuan models and 17% for DeepSeek in Tencent's production. That is a whole-service result on Tencent's own systems, with no setup published in these sources, so it shows what the kernels did there rather than what another team's stack would gain.
- Large language model — A model trained on large amounts of data to process and generate language.
- attention — The mechanism that lets a model weigh which earlier words matter for the word it's currently processing — the core operation of a transformer.
- mixture-of-experts — A model built from many specialist sub-networks where only a few activate per token, giving big-model capability at small-model running cost.
- Sampling controls — Parameters that shape how deterministic or varied model generation becomes.






