---
id: pr-tilelang-1417
repo: tile-ai/tilelang
pr: 1417
title: '[Lint] Phaseout Yapf format and embrace ruff format'
author: LeiWang1999
date: '2025-12-12'
url: https://github.com/tile-ai/tilelang/pull/1417
source_category: upstream-code
architectures:
- sm100
tags:
- moe
- moe kernel
techniques: []
hardware_features: []
kernel_types:
- moe
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 29051439dbed90583bfad1d16dfca88a95e78709
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- .pre-commit-config.yaml
- benchmark/blocksparse_attention/benchmark_library_dense_fmha.py
- benchmark/blocksparse_attention/benchmark_tilelang_block_sparse_fmha.py
- benchmark/blocksparse_attention/benchmark_torch_block_sparse_fmha.py
- benchmark/blocksparse_attention/benchmark_triton_block_sparse_fmha.py
- benchmark/mamba2/benchmark_mamba_chunk_scan.py
- benchmark/matmul/benchmark_matmul.py
- benchmark/matmul/benchmark_matmul_intrinsic.py
- benchmark/matmul/benchmark_matmul_sp.py
- benchmark/matmul_fp8/benchmark_matmul.py
- docs/conf.py
- examples/amd/example_amd_flash_attn_bwd.py
- examples/amd/example_amd_flash_attn_fwd.py
- examples/analyze/example_conv_analyze.py
- examples/analyze/example_gemm_analyze.py
- examples/attention_sink/benchmark_gqa_sink_fwd.py
- examples/attention_sink/benchmark_mha_sink_fwd.py
- examples/attention_sink/example_gqa_sink_bwd_bhsd.py
- examples/attention_sink/example_gqa_sink_fwd_bhsd_wgmma_pipelined.py
- examples/attention_sink/example_mha_sink_bwd_bhsd.py
- examples/attention_sink/example_mha_sink_fwd_bhsd.py
- examples/attention_sink/example_mha_sink_fwd_bhsd_wgmma_pipelined.py
- examples/bitnet-1.58b/benchmark_generate.py
- examples/bitnet-1.58b/benchmark_inference_latency.py
- examples/bitnet-1.58b/configuration_bitnet.py
- examples/bitnet-1.58b/eval_correctness.py
- examples/bitnet-1.58b/eval_gpu_memory.py
- examples/bitnet-1.58b/eval_ppl.py
- examples/bitnet-1.58b/eval_utils.py
- examples/bitnet-1.58b/kernel_benchmark/tilelang_bitnet_158_int8xint2_decode.py
- examples/bitnet-1.58b/kernel_benchmark/tilelang_bitnet_158_int8xint2_prefill.py
- examples/bitnet-1.58b/kernel_benchmark/tl_int8xint8.py
- examples/bitnet-1.58b/load_from_quantized.py
- examples/bitnet-1.58b/maint/create_bitblas_ckpt.py
- examples/bitnet-1.58b/modeling_bitnet.py
- examples/bitnet-1.58b/tokenization_bitnet.py
- examples/bitnet-1.58b/utils_quant.py
- examples/bitnet-1.58b/vllm_workspace/conftest.py
- examples/bitnet-1.58b/vllm_workspace/inference_with_compress_format.py
- examples/bitnet-1.58b/vllm_workspace/inference_with_native_format.py
- examples/bitnet-1.58b/vllm_workspace/utils.py
- examples/blocksparse_attention/block_sparse_attn_triton.py
- examples/blocksparse_attention/example_tilelang_block_sparse_attn.py
- examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_paged.py
- examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_varlen_indice.py
- examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_varlen_mask.py
- examples/blocksparse_attention/example_triton_sparse_gqa_decode_varlen_indice.py
- examples/blocksparse_attention/example_triton_sparse_gqa_decode_varlen_mask.py
- examples/blocksparse_attention/heuristic.py
- examples/blocksparse_attention/test_example_blocksparse_attention.py
- examples/blocksparse_gemm/example_blocksparse_gemm.py
- examples/cast/example_group_per_split_token_cast_to_fp8.py
- examples/cast/example_per_token_cast_to_fp8.py
- examples/cast/example_triton_cast_to_fp8.py
- examples/cast/test_example_cast.py
- examples/compile_flags/usecase.py
- examples/conftest.py
- examples/convolution/example_convolution.py
- examples/convolution/example_convolution_autotune.py
- examples/deepseek_deepgemm/example_deepgemm_fp8_2xAcc.py
- examples/deepseek_mla/amd/benchmark_mla_decode_amd_tilelang.py
- examples/deepseek_mla/amd/benchmark_mla_decode_amd_torch.py
- examples/deepseek_mla/amd/benchmark_mla_decode_amd_triton.py
- examples/deepseek_mla/benchmark_mla.py
- examples/deepseek_mla/example_mla_decode.py
- examples/deepseek_mla/example_mla_decode_paged.py
- examples/deepseek_mla/example_mla_decode_persistent.py
- examples/deepseek_mla/example_mla_decode_ws.py
- examples/deepseek_mla/experimental/example_mla_decode_kv_fp8.py
- examples/deepseek_mla/torch_refs.py
- examples/deepseek_nsa/benchmark/benchmark_nsa_fwd.py
- examples/deepseek_nsa/example_tilelang_nsa_bwd.py
- examples/deepseek_nsa/example_tilelang_nsa_decode.py
- examples/deepseek_nsa/example_tilelang_nsa_fwd.py
- examples/deepseek_nsa/example_tilelang_nsa_fwd_varlen.py
- examples/deepseek_nsa/example_triton_nsa_bwd.py
- examples/deepseek_nsa/example_triton_nsa_fwd.py
- examples/deepseek_nsa/example_triton_nsa_fwd_varlen.py
- examples/deepseek_nsa/reference.py
- examples/deepseek_v32/fp8_lighting_indexer.py
- examples/deepseek_v32/sparse_mla_bwd.py
- examples/deepseek_v32/sparse_mla_fwd.py
- examples/deepseek_v32/sparse_mla_fwd_pipelined.py
- examples/deepseek_v32/test_tilelang_example_deepseek_v32.py
- examples/deepseek_v32/topk_selector.py
- examples/deepseek_v32/utils.py
- examples/dequantize_gemm/dequantize_utils.py
- examples/dequantize_gemm/example_dequant_gemm_bf16_fp4_hopper.py
- examples/dequantize_gemm/example_dequant_gemm_bf16_mxfp4_hopper.py
- examples/dequantize_gemm/example_dequant_gemm_bf16_mxfp4_hopper_tma.py
- examples/dequantize_gemm/example_dequant_gemm_fine_grained.py
- examples/dequantize_gemm/example_dequant_gemm_fp4_hopper.py
- examples/dequantize_gemm/example_dequant_gemm_w4a8.py
- examples/dequantize_gemm/example_dequant_gemv_fp16xint4.py
- examples/dequantize_gemm/example_dequant_groupedgemm_bf16_mxfp4_hopper.py
- 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
- examples/dynamic_shape/example_dynamic.py
- examples/elementwise/example_elementwise_add.py
- examples/flash_attention/bert_padding.py
- examples/flash_attention/example_gqa_bwd.py
- examples/flash_attention/example_gqa_bwd_tma_reduce.py
- examples/flash_attention/example_gqa_bwd_tma_reduce_varlen.py
- examples/flash_attention/example_gqa_bwd_wgmma_pipelined.py
- examples/flash_attention/example_gqa_fwd_bshd.py
- examples/flash_attention/example_gqa_fwd_bshd_wgmma_pipelined.py
- examples/flash_attention/example_gqa_fwd_varlen.py
- examples/flash_attention/example_mha_bwd_bhsd.py
- examples/flash_attention/example_mha_bwd_bshd.py
- examples/flash_attention/example_mha_bwd_bshd_wgmma_pipelined.py
- examples/flash_attention/example_mha_fwd_bhsd.py
- examples/flash_attention/example_mha_fwd_bhsd_wgmma_pipelined.py
- examples/flash_attention/example_mha_fwd_bshd.py
- examples/flash_attention/example_mha_fwd_bshd_wgmma_pipelined.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1417
head_ref_oid: eab5bd97fc9b5cb5c354f4846ae83d97a27bf148
---
# [Lint] Phaseout Yapf format and embrace ruff format

- Repository: `tile-ai/tilelang`
- PR: [1417](https://github.com/tile-ai/tilelang/pull/1417)
- 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

- `.pre-commit-config.yaml`
- `benchmark/blocksparse_attention/benchmark_library_dense_fmha.py`
- `benchmark/blocksparse_attention/benchmark_tilelang_block_sparse_fmha.py`
- `benchmark/blocksparse_attention/benchmark_torch_block_sparse_fmha.py`
- `benchmark/blocksparse_attention/benchmark_triton_block_sparse_fmha.py`
- `benchmark/mamba2/benchmark_mamba_chunk_scan.py`
- `benchmark/matmul/benchmark_matmul.py`
- `benchmark/matmul/benchmark_matmul_intrinsic.py`
- `benchmark/matmul/benchmark_matmul_sp.py`
- `benchmark/matmul_fp8/benchmark_matmul.py`
- `docs/conf.py`
- `examples/amd/example_amd_flash_attn_bwd.py`
- `examples/amd/example_amd_flash_attn_fwd.py`
- `examples/analyze/example_conv_analyze.py`
- `examples/analyze/example_gemm_analyze.py`
- `examples/attention_sink/benchmark_gqa_sink_fwd.py`
- `examples/attention_sink/benchmark_mha_sink_fwd.py`
- `examples/attention_sink/example_gqa_sink_bwd_bhsd.py`
- `examples/attention_sink/example_gqa_sink_fwd_bhsd_wgmma_pipelined.py`
- `examples/attention_sink/example_mha_sink_bwd_bhsd.py`
- `examples/attention_sink/example_mha_sink_fwd_bhsd.py`
- `examples/attention_sink/example_mha_sink_fwd_bhsd_wgmma_pipelined.py`
- `examples/bitnet-1.58b/benchmark_generate.py`
- `examples/bitnet-1.58b/benchmark_inference_latency.py`
- `examples/bitnet-1.58b/configuration_bitnet.py`
- `examples/bitnet-1.58b/eval_correctness.py`
- `examples/bitnet-1.58b/eval_gpu_memory.py`
- `examples/bitnet-1.58b/eval_ppl.py`
- `examples/bitnet-1.58b/eval_utils.py`
- `examples/bitnet-1.58b/kernel_benchmark/tilelang_bitnet_158_int8xint2_decode.py`
- `examples/bitnet-1.58b/kernel_benchmark/tilelang_bitnet_158_int8xint2_prefill.py`
- `examples/bitnet-1.58b/kernel_benchmark/tl_int8xint8.py`
- `examples/bitnet-1.58b/load_from_quantized.py`
- `examples/bitnet-1.58b/maint/create_bitblas_ckpt.py`
- `examples/bitnet-1.58b/modeling_bitnet.py`
- `examples/bitnet-1.58b/tokenization_bitnet.py`
- `examples/bitnet-1.58b/utils_quant.py`
- `examples/bitnet-1.58b/vllm_workspace/conftest.py`
- `examples/bitnet-1.58b/vllm_workspace/inference_with_compress_format.py`
- `examples/bitnet-1.58b/vllm_workspace/inference_with_native_format.py`
- `examples/bitnet-1.58b/vllm_workspace/utils.py`
- `examples/blocksparse_attention/block_sparse_attn_triton.py`
- `examples/blocksparse_attention/example_tilelang_block_sparse_attn.py`
- `examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_paged.py`
- `examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_varlen_indice.py`
- `examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_varlen_mask.py`
- `examples/blocksparse_attention/example_triton_sparse_gqa_decode_varlen_indice.py`
- `examples/blocksparse_attention/example_triton_sparse_gqa_decode_varlen_mask.py`
- `examples/blocksparse_attention/heuristic.py`
- `examples/blocksparse_attention/test_example_blocksparse_attention.py`
- `examples/blocksparse_gemm/example_blocksparse_gemm.py`
- `examples/cast/example_group_per_split_token_cast_to_fp8.py`
- `examples/cast/example_per_token_cast_to_fp8.py`
- `examples/cast/example_triton_cast_to_fp8.py`
- `examples/cast/test_example_cast.py`
- `examples/compile_flags/usecase.py`
- `examples/conftest.py`
- `examples/convolution/example_convolution.py`
- `examples/convolution/example_convolution_autotune.py`
- `examples/deepseek_deepgemm/example_deepgemm_fp8_2xAcc.py`
- `examples/deepseek_mla/amd/benchmark_mla_decode_amd_tilelang.py`
- `examples/deepseek_mla/amd/benchmark_mla_decode_amd_torch.py`
- `examples/deepseek_mla/amd/benchmark_mla_decode_amd_triton.py`
- `examples/deepseek_mla/benchmark_mla.py`
- `examples/deepseek_mla/example_mla_decode.py`
- `examples/deepseek_mla/example_mla_decode_paged.py`
- `examples/deepseek_mla/example_mla_decode_persistent.py`
- `examples/deepseek_mla/example_mla_decode_ws.py`
- `examples/deepseek_mla/experimental/example_mla_decode_kv_fp8.py`
- `examples/deepseek_mla/torch_refs.py`
- `examples/deepseek_nsa/benchmark/benchmark_nsa_fwd.py`
- `examples/deepseek_nsa/example_tilelang_nsa_bwd.py`
- `examples/deepseek_nsa/example_tilelang_nsa_decode.py`
- `examples/deepseek_nsa/example_tilelang_nsa_fwd.py`
- `examples/deepseek_nsa/example_tilelang_nsa_fwd_varlen.py`
- `examples/deepseek_nsa/example_triton_nsa_bwd.py`
- `examples/deepseek_nsa/example_triton_nsa_fwd.py`
- `examples/deepseek_nsa/example_triton_nsa_fwd_varlen.py`
- `examples/deepseek_nsa/reference.py`
- `examples/deepseek_v32/fp8_lighting_indexer.py`

## Evidence Bundle

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