Fix eval output path in case of @ char (#4416)

This commit is contained in:
mamoodi 2024-10-15 18:45:08 -04:00 committed by GitHub
parent da23189e4c
commit 6f2e678028
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,7 +152,7 @@ def make_metadata(
details: dict[str, Any] | None = None,
) -> EvalMetadata:
model_name = llm_config.model.split('/')[-1]
model_path = model_name.replace(':', '_')
model_path = model_name.replace(':', '_').replace('@', '-')
eval_note = f'_N_{eval_note}' if eval_note else ''
eval_output_path = os.path.join(