Repository navigation
Studio: fix Push to Hub for base and quantized exports - #10943
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review + GitHub Actions and UI evidencePinned head: Root cause
GitHub Actions A/B: passing run, 54 checks, 0 failingStaged on a branch cut from fresh upstream
The PR's own tests pass on the PR head ( UI evidence: two isolated installs, merge base vs head, Linux + NVIDIA L4Both Studios run transformers 5.5.0 and load
CIA staging copy (fresh upstream
The same failures show on other open upstream PRs today, and none of them touch Studio export. Conclusion: the Push to Hub failure and its fix are verified end to end, both on Actions with the real libraries and in the real Studio UI. Private repos stay private, and transformers 4.57.6 is unaffected. Out of scope, and unchanged by this PR:
|
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Confirmed studio/backend/core/export/export.py still calls PushToHubMixin._create_repo, which no longer exists in the transformers version Studio pins, so the merged quantized push fails after the files are written; switching to HfApi.create_repo with the private re-check matches the GGUF path, and I will get this reviewed. |
|
Verified BeforeAt merge base AfterUsing
Every listed exported file, including tokenizer/config files, matched after download. Each reload produced finite logits and generated 16 tokens. Public upload with an unqualified repository name passed. Re-exporting to an existing public repo with VerdictConfirmed fix. No additional defect found in the changed repository-creation and privacy path. Regression risk
CompatibilityTwo separate official Studio installs from merge base and head, both frontend builds successful. Linux x86_64, Python 3.13.14, RTX 5060 Ti, driver 595.91.07, PyTorch 2.11.0+cu130, Transformers 5.5.0, Hub 1.31.0. Compressed export/reload used Studio's separate Transformers 5.10.2 / compressed-tensors environment. The source weights came from a disposable local cache. Destination creation, visibility updates, uploads and artifact downloads used the real Hugging Face service through a relay that kept the account credential outside PR processes. UI evidenceSame model, FP8 selection and private destination in separate installs. Chromium 151.0.7922.34, 1440×1000 viewport. Visually inspected: failure on merge base, completed upload on head. Identical fixed screenshot crops omit the log area. FixesNo source changes or additional commits were needed. Test logs, file hashes, environment and cleanup records. All six disposable Hub repos, live-test installs, processes and the local credential file have been removed. Gaps
|


Push to Hub failed for base model exports and for FP8 and NVFP4 merged exports with "PushToHubMixin has no attribute _create_repo", after the files were already saved. The newer transformers version that Studio installs removed that helper.
These exports now create the Hub repo the same way GGUF exports already do, including keeping it private when asked.
Tested with transformers 5.5.0. On main, all four exports failed with that error. On this branch they reach the Hub and stop only at the fake login used for testing, and against a local test copy of the Hub they upload fully and stay private. 16-bit and GGUF pushes work as before. New tests fail on main and pass here.
Two unrelated problems found while testing are not fixed here. torchao INT8 export fails while saving, and the Hub rejects the model card when the base model is a local folder.