Skip to content

Commit 7175da5

Browse files
authored
[Fix] Resolve TVM Compatibility Issue by Removing Unsupported Argument (#3159)
This PR resolves a compatibility issue with the TVM library by removing an unsupported argument. The issue arose when the `TIRPagedKVCache` class was instantiated with an `enable_disaggregation` argument, which is not recognized by the TVM library.
1 parent 0c3720d commit 7175da5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/mlc_llm/compiler_pass/dispatch_kv_cache_creation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ def create_tir_paged_kv_cache(
152152
"support_sliding_window_", relax.ShapeStructInfo([kwargs["support_sliding_window"]])
153153
)
154154

155+
# Remove the 'enable_disaggregation' argument
156+
kwargs.pop("enable_disaggregation", None)
157+
155158
with bb.function(
156159
name="create_tir_paged_kv_cache",
157160
params=[

0 commit comments

Comments
 (0)