Skip to content

[CI] Disable TRANSFORMERS_OFFLINE for nightly vLLM benchmark runs#176553

Closed
huydhn wants to merge 1 commit intopytorch:mainfrom
huydhn:vllm-benchmark-disable-transformers-offline-nightly
Closed

[CI] Disable TRANSFORMERS_OFFLINE for nightly vLLM benchmark runs#176553
huydhn wants to merge 1 commit intopytorch:mainfrom
huydhn:vllm-benchmark-disable-transformers-offline-nightly

Conversation

@huydhn
Copy link
Contributor

@huydhn huydhn commented Mar 5, 2026

Instead of always using offline mode, we need to have a way to periodically refresh the local cache. This job runs only once per day, so rate limit wouldn't be an issue

I observe a failure in trunk for pytorch/gemma-3-12b-it-int4 where the local cache doesn't seem to work anymore, not sure why, could be due to the recent transformers version update. The failure goes away when I turn off TRANSFORMERS_OFFLINE to refresh the local cache.

@huydhn huydhn requested a review from a team as a code owner March 5, 2026 02:02
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 5, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/176553

Note: Links to docs will display an error until the docs builds have been completed.

⏳ 25 Pending, 1 Unrelated Failure

As of commit 067833d with merge base 9dfac50 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Mar 5, 2026
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 5, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: huydhn / name: Huy Do (067833d)

@huydhn huydhn requested review from desertfire and zou3519 and removed request for a team March 5, 2026 02:03
Nightly scheduled runs should be able to download from HuggingFace
directly rather than being restricted to the local cache. This adds
an `is_nightly` input to the reusable workflow, set to true when the
caller detects `github.event_name == 'schedule'`. Manual dispatch
runs continue to use the cache (TRANSFORMERS_OFFLINE=1). Includes
a comment explaining the rationale for the nightly override.

Signed-off-by: Huy Do <huydhn@gmail.com>
@huydhn huydhn force-pushed the vllm-benchmark-disable-transformers-offline-nightly branch from 789b1dc to 067833d Compare March 5, 2026 02:07
@huydhn
Copy link
Contributor Author

huydhn commented Mar 5, 2026

@pytorchbot merge -f 'CI only tweak, should be fine'

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Vighaneshs pushed a commit to Vighaneshs/pytorch that referenced this pull request Mar 5, 2026
…torch#176553)

Instead of always using offline mode, we need to have a way to periodically refresh the local cache. This job runs only once per day, so rate limit wouldn't be an issue

I observe [a failure in trunk](https://github.com/pytorch/pytorch/actions/runs/22625578355/job/65575251092#step:15:13837) for `pytorch/gemma-3-12b-it-int4` where the local cache doesn't seem to work anymore, not sure why, could be due to the recent transformers version update.  The failure goes away when I turn off TRANSFORMERS_OFFLINE to refresh the local cache.

Pull Request resolved: pytorch#176553
Approved by: https://github.com/zou3519
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants