fix(ci): update HF ONNX filenames and add download retries for model sync - #51
Merged
Conversation
…sync The Sync Browser Models workflow hardcoded onnx/model_quantized.onnx, which never exists upstream for Xenova/whisper-* (Whisper is a seq2seq model split into encoder/decoder/decoder_with_past/decoder _merged files - there is no unified model.onnx). The HEAD-then-GET guard occasionally returned 200 on HEAD before 404ing on GET, surfacing this as a flaky failure instead of a deterministic one. - Replace model_quantized.onnx with decoder_model_quantized.onnx to match the files that actually exist on HuggingFace. - Discover available ONNX files via the HF tree API instead of guessing filenames, so future upstream renames degrade to a skip-with-warning instead of a hard failure. - Drop the separate HEAD probe in favor of a single retried GET (--retry 5 --retry-all-errors --retry-delay 3), eliminating the HEAD/GET consistency problem entirely. - Align the unattended monthly schedule's default model list with the workflow_dispatch default (tiny/tiny.en/base/base.en), since small/small.en quantized ONNX files exceed GitHub's 100MB per-file limit and this branch has no git-lfs tracking configured - this was already documented in the workflow_dispatch input description but the schedule fallback wasn't aligned to it, which caused a separate "pre-receive hook declined" push failure once the 404 was fixed and small models were included by default again. Co-Authored-By: Claude <noreply@anthropic.com>
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.
The Sync Browser Models workflow hardcoded onnx/model_quantized.onnx,
which never exists upstream for Xenova/whisper-* (Whisper is a
seq2seq model split into encoder/decoder/decoder_with_past/decoder
_merged files - there is no unified model.onnx). The HEAD-then-GET
guard occasionally returned 200 on HEAD before 404ing on GET,
surfacing this as a flaky failure instead of a deterministic one.
match the files that actually exist on HuggingFace.
guessing filenames, so future upstream renames degrade to a
skip-with-warning instead of a hard failure.
(--retry 5 --retry-all-errors --retry-delay 3), eliminating the
HEAD/GET consistency problem entirely.
the workflow_dispatch default (tiny/tiny.en/base/base.en), since
small/small.en quantized ONNX files exceed GitHub's 100MB per-file
limit and this branch has no git-lfs tracking configured - this
was already documented in the workflow_dispatch input description
but the schedule fallback wasn't aligned to it, which caused a
separate "pre-receive hook declined" push failure once the 404 was
fixed and small models were included by default again.
Co-Authored-By: Claude noreply@anthropic.com