{"record":{"id":"6a906492d2d26280","repo":"sgl-project/sglang","slug":"sglang-srt-layers-attention-nsa-tilelang-kernel-is","errorCode":null,"errorMessage":"sglang.srt.layers.attention.nsa.tilelang_kernel is deprecated; use sglang.kernels.ops.attention.dsa.tilelang_kernel instead.","messagePattern":"sglang\\.srt\\.layers\\.attention\\.nsa\\.tilelang_kernel is deprecated; use sglang\\.kernels\\.ops\\.attention\\.dsa\\.tilelang_kernel instead\\.","errorType":"console","errorClass":"DeprecationWarning","httpStatus":null,"severity":"warning","filePath":"python/sglang/srt/layers/attention/nsa/tilelang_kernel.py","lineNumber":4,"sourceCode":"# [Deprecated] Re-export shim for backward compatibility. Use dsa.tilelang_kernel instead.\nimport warnings\n\nwarnings.warn(\n    \"sglang.srt.layers.attention.nsa.tilelang_kernel is deprecated; \"\n    \"use sglang.kernels.ops.attention.dsa.tilelang_kernel instead.\",\n    DeprecationWarning,\n    stacklevel=2,\n)\nfrom sglang.kernels.ops.attention.dsa.tilelang_kernel import *  # noqa: F401, F403\n","sourceCodeStart":1,"sourceCodeEnd":11,"githubUrl":"https://github.com/sgl-project/sglang/blob/0132848349585cfe6aae51c4941cbae872505f8a/python/sglang/srt/layers/attention/nsa/tilelang_kernel.py#L1-L11","documentation":"Import-time DeprecationWarning: the tilelang kernel module moved from sglang.srt.layers.attention.nsa.tilelang_kernel to sglang.kernels.ops.attention.dsa.tilelang_kernel. The shim star-imports the new module and warns.","triggerScenarios":"Importing the tilelang kernel module via the nsa path, typically when a TileLang-based DSA/NSA backend is selected.","commonSituations":"Enabling the tilelang attention backend on code that still imports from the old namespace after upgrading SGLang.","solutions":["Change the import to sglang.kernels.ops.attention.dsa.tilelang_kernel","Verify the sglang-kernels package version that provides the new path is installed","Remove cached .pyc of the old module if stale"],"exampleFix":"# before\nfrom sglang.srt.layers.attention.nsa.tilelang_kernel import *\n# after\nfrom sglang.kernels.ops.attention.dsa.tilelang_kernel import *","handlingStrategy":"validation","validationCode":"null","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Import tilelang kernels from sglang.kernels.ops.attention.dsa.tilelang_kernel","Ensure the sglang-kernels package version matches your sglang version"],"tags":["deprecation","sglang","tilelang","import"],"backgroundTag":"deprecation-warning","analyzedSha":"0132848349585cfe6aae51c4941cbae872505f8a","analyzedAt":"2026-08-28T05:10:05.995Z","schemaVersion":2},"datasetVersion":"2026-08-28T06:17:29.519Z"}