in utils/ryzenai/notification_service.py [0:0]
def extract_model_id(self, line):
# Extract model_id based on the line content
if "amd" in line:
match = re.search(r"::test_model_\d+_amd_([a-zA-Z0-9_-]+)", line)
if match:
return "amd/" + match.group(1)
elif "timm" in line:
match = re.search(r"default_timm_config_image_classification_timm_(\w+)", line)
if match:
return "timm/" + match.group(1)
raise ValueError("Model id could not be determined!")