Repository navigation
Studio: stop converting the model twice when exporting GGUF to the Hub - #10317
danielhanchen merged 18 commits into
Conversation
GitHub Actions reproduction: the double conversion, and two regressions the first fix introducedThree fork branches on fresh upstream The export folder is pre-seeded with a
A is the reported defect: the model is converted twice, the second pass into the system temp directory, and the upload comes out of that temp copy rather than the folder the user asked for. B removes the second conversion but C is the current head. The bottom row is the point — C's published set is exactly A's, reached with one conversion instead of two. Getting there took four rounds of narrowing what counts as "this export's output":
Each has a unit test that fails on the preceding commit. Thanks to @codex, which caught the stale-GGUF, stale-Modelfile, AppleDouble, |
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. Keep them coming! 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". |
|
Codex Review: Didn't find any major issues. 🚀 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". |
|
Codex Review: Didn't find any major issues. Keep them coming! 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". |
|
Codex Review: Didn't find any major issues. Swish! 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". |
Review convergenceCodex returned clean twice on the same head, Eight rounds, nine findings, all genuine, all fixed, none disputed:
Findings 7, 8 and 9 are Hub-metadata parity: each is a tag or file the Hub filters on as an exact string, so losing one silently removes the repository from that filter. All three were checked against Two of the nine — Not carried over from |
|
Codex Review: Didn't find any major issues. Delightful! 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". |
Studio UI evidence: the export panel, before and afterPinned head: Two Studios, each installed with The one stand-in: both Studios were launched with Log scrolled to the Tail of the log. On the left the second pass's Read from the same Studio's
Two things to read alongside the table. A 0.5B model converts in about seven seconds on this machine, so the elapsed gap is small in absolute terms; the extra pass is a full merge, convert and quantize, and grows with the model. And on macOS the exporter is |
Real Hugging Face Hub round trip on the headEvery earlier push in this thread went to a stand-in Hub. This one went to
The repository as the Hub renders it (captured during a sixteen-second public window, then set private again): The three commits are the PR's Hub leg in order: repo creation, The right rail is the Hub reading the uploaded file's own header — architecture So on a real endpoint the allow-list publishes exactly this run's GGUF, the card lands with both Two things this surfaced that are not this PR's, both reproduced on
|
|
Codex Review: Didn't find any major issues. Keep them coming! 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". |
Second sweep now that the review rounds have settled: 70 comment lines down to 37 across the files this PR touches, 124 to 37 counting the first pass. Cuts the duplicates and the restatements; every load-bearing fact stays, one line each.
|
Codex Review: Didn't find any major issues. Delightful! 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". |




Exporting to GGUF with Hugging Face Hub as the destination runs the whole merge, convert and quantize sequence twice. The first run writes the files to your save folder. The second run happens inside
push_to_hub_gguf, which converts everything again into the system temp folder instead of uploading the files that already exist.That doubles the wait, needs a second full size copy of the model in temp, and can push a run past the export timeout, which is one hour per quantization.
Now the Hub upload sends the files that were already built. Tested against a real Hub repo. Before: two conversion calls, and nothing from the local folder reached the Hub. After: one conversion call, and the repo gets the
.gguffile, the Modelfile and a model card.