Skip to content

update utils/notification_service.py for AMD vs Nvidia#38563

Merged
ydshieh merged 1 commit into
mainfrom
update_for_amd
Jun 4, 2025
Merged

update utils/notification_service.py for AMD vs Nvidia#38563
ydshieh merged 1 commit into
mainfrom
update_for_amd

Conversation

@ydshieh

@ydshieh ydshieh commented Jun 3, 2025

Copy link
Copy Markdown
Collaborator

What does this PR do?

As discussed with @mht-sharma

@ydshieh ydshieh requested a review from mht-sharma June 3, 2025 14:12
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

# if `commit_sha` is specified, and `workflow_run["head_sha"]` matches it, return it.
elif commit_sha not in [None, ""] and run["head_sha"] == commit_sha:
# if `commit_sha` is specified, return the latest completed run with `workflow_run["head_sha"]` matching the specified sha.
elif commit_sha not in [None, ""] and run["head_sha"] == commit_sha and run["status"] == "completed":

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run["head_sha"] == commit_sha The commit_sha could be different for AMD and NVIDIA?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, each day, the scheduled CIs (Nvidia / AMD) are triggered at (almost) the same time, and the associated commit SHA is the latest commit SHA on main at that time.

For example, see today's run (the caller being triggered)

https://github.com/huggingface/transformers/actions/runs/15432439509
(AMD)

and

https://github.com/huggingface/transformers/actions/runs/15432421302
(Nvidia)

On those 2 pages, you will see 78d771

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok got it.

@ydshieh ydshieh requested a review from mht-sharma June 4, 2025 08:45

@mht-sharma mht-sharma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks Yih-Dar

@ydshieh ydshieh merged commit 6085cde into main Jun 4, 2025
11 checks passed
@ydshieh ydshieh deleted the update_for_amd branch June 4, 2025 09:38
bvantuan pushed a commit to bvantuan/transformers that referenced this pull request Jun 12, 2025
…#38563)

update

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants