mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-03 04:40:06 +06:00
Fix utils/notification_service.py
(#38556)
* fix * fix * update --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
8cb96787a6
commit
e8b292e35f
@ -615,7 +615,10 @@ class Message:
|
||||
pattern = r"<(https://github.com/huggingface/transformers/actions/runs/.+?/job/.+?)\|(.+?)>"
|
||||
items = re.findall(pattern, line)
|
||||
elif "tests/" in line:
|
||||
if "tests/models/" in line or "tests/quantization/" in line:
|
||||
# TODO: Improve the condition here.
|
||||
if "tests/models/" in line or (
|
||||
"tests/quantization/" in line and job_name == "run_quantization_torch_gpu"
|
||||
):
|
||||
model = line.split("/")[2]
|
||||
else:
|
||||
model = line.split("/")[1]
|
||||
|
Loading…
Reference in New Issue
Block a user