# Searching for other triton versions that supports the same config
fortry_triton_versioninsupported_triton_versions:
iftry_triton_version==triton_version:
continue
try_config_file_path=os.path.join(
os.path.dirname(os.path.realpath(__file__)),
"configs",
f"triton_{try_triton_version.replace('.','_')}",
json_file_name,
)
ifos.path.exists(try_config_file_path):
withopen(try_config_file_path)asf:
logger.warning(
f"Config file not found at {config_file_path}. Fallback to triton version {try_triton_version} and use MoE kernel config from {try_config_file_path}. Performance might be sub-optimal!",