Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion tensorrt_llm/_torch/autotuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@ def _deserialize_cache_from_json(
cache = {}
cache_data = serializable_cache["cache_data"]

def lists_to_tuples(obj):
if isinstance(obj, list):
return tuple(lists_to_tuples(x) for x in obj)
return obj

for key_str, value in cache_data.items():
# Reconstruct the tuple key safely
try:
Expand All @@ -521,7 +526,7 @@ def _deserialize_cache_from_json(
continue

runner_id = value["runner_id"]
tactic = value["tactic"]
tactic = lists_to_tuples(value["tactic"])
min_time = value["min_time"]

cache[key] = (runner_id, tactic, min_time)
Expand Down
4 changes: 2 additions & 2 deletions tensorrt_llm/_torch/custom_ops/torch_custom_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,10 @@ def __init__(
self.cublaslt_runner = CublasLtFP4GemmRunner.runner_dict[instance_key]

def unique_id(self):
return hash((
return (
self.to_userbuffers,
self.output_dtype,
))
)

def get_valid_tactics(self, inputs: List[torch.Tensor],
profile: OptimizationProfile, **kwargs) -> List[int]:
Expand Down
Loading