Repository navigation
Studio: keep Start Export off for a Hub push until the repo is named - #13651
Conversation
|
@codex review |
1 similar comment
|
@codex review |
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. |
|
Codex Review: Didn't find any major issues. Another round soon, 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". |
NilayYadav
left a comment
There was a problem hiding this comment.
Review + reproduction evidence
Pinned review: 8efc234231. No blocking findings.
I reproduced a Push to Hub export with Username / Org and Model Name left empty on fresh upstream main (Linux, NVIDIA L4, Chromium 1360x1000), using unsloth/Llama-3.2-1B-Instruct with Merged Model 16-bit:
- main
cc7e8aa: Start Export is enabled with both boxes empty. Clicking it loads the model (POST /api/export/load-checkpoint83.9 s) and writes the full 16-bit export toexports/unsloth-Llama-3.2-1B-Instruct-merged. ThenPOST /api/export/export/mergedreturns 400 and the panel ends in "Repository ID and Hugging Face token required for Hub upload", Failed after 1m 28s. - PR head
8efc234: in the same state, Start Export is disabled and "Enter a Username / Org and Model Name to push to the Hub." shows under the boxes. A click sends no/api/exportrequest. It stays disabled with only Username filled, with only Model Name filled, and with spaces in both. It becomes enabled once both are filled.
- Frontend checks on upstream
mainmerged with this PR:i18n:check:strict,typecheck,npm test(12072 pass, 0 fail) andbuildare all green. With the two source files put back tomainand the new test kept,npm testfails exactly 1 test:a Hub push cannot start until Username / Org and Model Name are filled(actual<button>Start Export</button>). - Unchanged on both sides: Save Locally starts and completes (62.2 s on main, 54.1 s on the PR), a Hub push with both boxes filled starts the run as before, and decision model exports are not gated. Same results in Chromium, WebKit and Firefox.
Conclusion: the issue is real and this fixes it at the button and in the start handler, without touching local or decision exports. It is ready once the queued upstream CI finishes.
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6a1c81c0e2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| const checkpointPath = selectedCp?.path ?? null; | ||
|
|
||
| const pushToHub = destination === "hub"; | ||
| if (pushToHub && !isDecision && (!hfUsername.trim() || !modelName.trim())) |
There was a problem hiding this comment.
Normalize repository fields before starting export
When either field has surrounding whitespace (for example a pasted alice ), this guard treats it as present, but the later repoId construction uses the untrimmed hfUsername and modelName. That raw ID reaches HfApi.create_repo, which rejects the spaces only after the merged/GGUF artifact has been written, recreating the expensive late failure this change is intended to prevent; trim the components when constructing the ID (or reject non-normalized values before runExport).
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 6dba297: the repo id is now built from the trimmed Username / Org and Model Name.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! 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". |

On the Export page, choosing Push to Hub and leaving Username / Org or Model Name empty still let Start Export run. Studio then loaded the model and wrote the full merged or GGUF export to disk, which can take many minutes, and only at the end failed with "Repository ID and Hugging Face token required for Hub upload".
Start Export now stays disabled for a Hub push until both boxes are filled, and a short line under them says what is missing. Saving locally and decision model exports are unchanged.
Before / after
Export page, Merged Model, Export Model, Push to Hub with Username / Org and Model Name left blank. Before: Start Export is enabled. After: Start Export is disabled and the hint below the boxes says what is missing. Once both boxes are filled, Start Export is enabled on both builds.