Revert "Optimized deepseek-v3/r1 model performance on mxfp4 run (#9671)" (#9959)

This commit is contained in:
Yineng Zhang
2025-09-03 00:50:04 -07:00
committed by GitHub
parent 2c7ca33abb
commit 1b2ff4fb7f
7 changed files with 59 additions and 455 deletions

View File

@@ -2900,18 +2900,6 @@ def mxfp_supported():
return False
@lru_cache(maxsize=1)
def is_gfx95_supported():
"""
Returns whether the current platform supports MX types.
"""
if torch.version.hip:
gcn_arch = torch.cuda.get_device_properties(0).gcnArchName
return any(gfx in gcn_arch for gfx in ["gfx95"])
else:
return False
# LoRA-related constants and utilities
SUPPORTED_LORA_TARGET_MODULES = [
"q_proj",