---
id: pr-tilelang-1296
repo: tile-ai/tilelang
pr: 1296
title: Add sparse fine-tuning kernel for deepseek sparse attention to example
author: hyx1999
date: '2025-11-27'
url: https://github.com/tile-ai/tilelang/pull/1296
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- attention kernel
techniques: []
hardware_features: []
kernel_types:
- attention
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: b8240b7ae9387ba7143e6243b59069c3a04a12e9
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- examples/dsa_sparse_finetune/dsa.py
- examples/dsa_sparse_finetune/index.py
- examples/dsa_sparse_finetune/indexer_bwd.py
- examples/dsa_sparse_finetune/indexer_topk_reducesum.py
- examples/dsa_sparse_finetune/sparse_mla_bwd.py
- examples/dsa_sparse_finetune/sparse_mla_fwd.py
- examples/dsa_sparse_finetune/sparse_mla_topk_reducesum.py
- examples/dsa_sparse_finetune/utils.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1296
head_ref_oid: 918faadfd1069f6cb95d10d061fcc873bd8f2fe0
---
# Add sparse fine-tuning kernel for deepseek sparse attention to example

- Repository: `tile-ai/tilelang`
- PR: [1296](https://github.com/tile-ai/tilelang/pull/1296)
- Decision: `Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.`
- Reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.

## Changed Paths

- `examples/dsa_sparse_finetune/dsa.py`
- `examples/dsa_sparse_finetune/index.py`
- `examples/dsa_sparse_finetune/indexer_bwd.py`
- `examples/dsa_sparse_finetune/indexer_topk_reducesum.py`
- `examples/dsa_sparse_finetune/sparse_mla_bwd.py`
- `examples/dsa_sparse_finetune/sparse_mla_fwd.py`
- `examples/dsa_sparse_finetune/sparse_mla_topk_reducesum.py`
- `examples/dsa_sparse_finetune/utils.py`

## Evidence Bundle

`evidence/pull-bundles/tilelang/gh-1296`
