mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10: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/.+?)\|(.+?)>"
|
pattern = r"<(https://github.com/huggingface/transformers/actions/runs/.+?/job/.+?)\|(.+?)>"
|
||||||
items = re.findall(pattern, line)
|
items = re.findall(pattern, line)
|
||||||
elif "tests/" in 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]
|
model = line.split("/")[2]
|
||||||
else:
|
else:
|
||||||
model = line.split("/")[1]
|
model = line.split("/")[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user