[CI][AMD] Persist the openai-harmony tiktoken vocab cache across jobs - #51666
Merged
AndreasKaratzas merged 6 commits intoAug 11, 2026
Merged
AndreasKaratzas merged 6 commits into
AndreasKaratzas merged 6 commits into
Conversation
openai-harmony downloads its tiktoken vocab on first use and caches it under $TMPDIR, which native AMD CI sets per job. Every job therefore re-downloads the file at request time with no retry, and a transient failure surfaces as a 500 in the middle of gpt-oss entrypoints tests. Point the cache at HF_HOME, which the script already requires to be a persistent volume, so only the first job downloads it. Signed-off-by: Stefan Koncarevic <stefan.koncarevic@amd.com>
Member
|
/ci run |
|
✅ Triggered Buildkite CI #83177 for commit |
|
✅ @stefankoncarevic, CI is now available for this PR.
|
Member
|
/ci run |
|
✅ Triggered Buildkite CI #83190 for commit |
Member
|
/ci run |
|
✅ Triggered Buildkite CI #83203 for commit |
Member
|
/ci run |
|
✅ Triggered Buildkite CI #83263 for commit |
Member
|
/ci run |
|
✅ Triggered Buildkite CI #83278 for commit |
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Andreas Karatzas <akaratza@amd.com>
AndreasKaratzas
force-pushed
the
amd-ci-persist-harmony-vocab-cache
branch
from
August 11, 2026 04:23
549c571 to
2c46e92
Compare
Member
|
/ci run |
|
✅ Triggered Buildkite CI #83288 for commit |
AndreasKaratzas
enabled auto-merge (squash)
August 11, 2026 04:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
gpt-oss entrypoints tests can fail with a 500 in the middle of a run:
Seen in amd-ci #11876 (
mi355_1: Entrypoints Integration (API Server OpenAI - Part 2), commit 243c63b), where 4 of the 8TestGPTOSSChatcases failed. The server started fine; the very firstPOST /v1/chat/completionsfailed while rendering the harmony prompt.openai_harmonydoes not ship the tiktoken vocab. It downloads it on first use and caches it under$TMPDIR/tiktoken-rs-cache. Native AMD CI sets a job-localTMPDIR, so the cache is discarded after every job and each job re-downloads the file fromopenaipublic.blob.core.windows.netat request time, with no retry. Any blip there surfaces as a 500 mid-test.This points the cache at
HF_HOMEinstead, which the script already requires to be a persistent volume, matching how the Hub cache is handled. Only the first job ever downloads the file (3.6 MB); every later job reads it from disk and never touches the network.This is not a regression from a specific PR, the lazy download has been there since #22340. It is a long-standing dependency that the move to native execution now lets us cache.
Test Plan
bash -n .buildkite/scripts/hardware_ci/run-amd-test.shTMPDIR(i.e. that a job-localTMPDIRreally does throw the cache away):Test Result
TMPDIRas expected.fb374d419588a4632f3f557e76b4b70aebbca790, which is exactly the cached filename. A different vocab file means a different URL and therefore a different cache entry, so a version bump downloads fresh on its own and needs no manual cleanup.The original failure is a transient network error and is not reproducible on demand, so there is no before/after CI run for it. What the change removes is the per-job dependency on that download.
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.