Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tensorrt_llm/_torch/modules/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ def __init__(
self.register_to_config = True

# only support one kind of sparse attention, dsa now.
if config.sparse_attention_config is not None:
if config is not None and config.sparse_attention_config is not None:
self.is_dsa = True
else:
self.is_dsa = False
Expand Down
Loading