Skip to main content

Conch :shell:

A "standard library" of Triton kernels.

What is Conch?

Conch is a central repository of Triton kernels for accelerating common AI operations. We strive to provide performant, well-written kernels that can be easily integrated into other projects. We also strive to support multiple hardware platforms (currently Nvidia and AMD).

Key Features

We support each of the following operations. Each operation is complete with a PyTorch-only reference implementation (and sometimes a reference implementation provided by another library, like vLLM), a microbenchmark, and a unit test.

  • Activation functions
    • GeLU and mul
    • SiLU and mul
  • Attention
    • Paged Attention (Flash-Decoding with Paged KV Cache)
    • Varlen Attention (Prefill/decode attention with paged KV cache)
  • Embedding
    • Rotary embedding
  • Normalization
    • Gemma-style RMS norm
    • Llama-style RMS norm
  • Quantization
    • bitsandbytes
      • NF4/FP4/8-bit blockwise quantize/dequantize
    • FP8 static quantization
    • Int8 static quantization
    • GEMM
      • Mixed-precision
      • Scaled
  • Vision
    • BEVPool
    • Non-Max Suppression (NMS)
    • Voxelization
  • vLLM
    • KV cache operations
      • Copy blocks
      • Reshape and cache

Performance

The goal of Conch is not to claim that our operations are faster than CUDA implementations. Our goal is to write Triton operations that are as fast as the state-of-the-art CUDA implementations. This allows developers on any hardware platform (Nvidia, AMD, etc.) access to the same, performant kernels.

Below is a table comparing the relative performance of our Triton kernels to CUDA baselines (on NVIDIA H100). The listed runtime is the median runtime from 10,000 iterations on our microbenchmarks. Note: it's difficult to express the performance of a kernel with a single number (performance will vary with input sizes, data types, etc.). We tried our best to choose representative parameters for a fair comparison. Most relevant parameters are specified via CLI parameters to the microbenchmarks (benchmarks/), so feel free to collect your own results based on your use case. CUDA runtimes collected via vLLM and bitsandbytes (vllm==0.9.1 and bitsandbytes==0.46.0).

Operation CUDA Runtime Triton Runtime Triton Speedup
GeLU, Tanh, and Mul 0.722 ms 0.465 ms 1.55
SiLU and Mul 0.710 ms 0.046 ms 15.43
Paged Attention 0.740 ms 0.803 ms 0.92
Varlen Attention 0.360 ms 0.735 ms 0.49
Rotary Embedding 0.107 ms 0.103 ms 1.04
RMS Norm (Gemma-style) 2.320 ms 0.029 ms 80.00
RMS Norm (Llama-style) 0.042 ms 0.017 ms 2.47
bitsandbytes: Dequantize 0.073 ms 5.373 ms 0.01
bitsandbytes: Quantize 0.569 ms 5.511 ms 0.10
FP8 Static Quantization 0.025 ms 0.033 ms 0.76
Int8 Static Quantization 0.056 ms 0.033 ms 1.70
Mixed-precision GEMM [Int4 x FP16] 0.500 ms 1.656 ms 0.30
Scaled GEMM [Int8 x BF16] 0.206 ms 0.273 ms 0.75
vLLM: Copy Blocks 2.249 ms 1.818 ms 1.24
vLLM: Reshape and Cache 0.056 ms 0.021 ms 2.67

For additional analysis of kernel performance, check out our performance docs.

Supported platforms

Supported platforms:

  • Nvidia A10, CUDA 12.2
  • Nvidia H100, CUDA 12.2
  • AMD MI300X, ROCm 6.2.4

Work-in-progress platforms:

Getting Started

Users

Check out the installation instructions to get started!

Developers

Check out the developer instructions to get started!

Open-source credits

We were inspired by and leverage components of the following libraries:

License

Copyright 2025 Stack AV Co. Licensed under the Apache License, Version 2.0.

Release files for conch-triton-kernels 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for conch-triton-kernels 1.3
File Size Uploaded
conch_triton_kernels-1.3.tar.gz 137.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for conch-triton-kernels 1.3
File Interpreter ABI Platform
conch_triton_kernels-1.3-py3-none-any.whl Python 3 none any Details

Total release size: 256.9 kB

Release files / conch_triton_kernels-1.3.tar.gz

Download URL conch_triton_kernels-1.3.tar.gz
Size 137.6 kB
Tags Source
SHA-256 checksum
How to use checksums
75c7b1342687b30d6b725edbce9e0deb24b55398a9f383af10e15b3cf667269c
BLAKE2b-256 checksum
How to use checksums
77a37a6337dcf7f8b14b906987a699ef0f2cb258726223babc88279cf8974831
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / conch_triton_kernels-1.3-py3-none-any.whl

Download URL conch_triton_kernels-1.3-py3-none-any.whl
Size 119.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbbdbbcc2ea5650f582a00d9c9ad9ca65b822a64b3cf41856c5e83efcdbe7cea
BLAKE2b-256 checksum
How to use checksums
7d85cb1206c03b941e510020fbda14f4782119326252866264d8d91101e3adf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.3 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page