Repository navigation
Keep an explicit HF_HUB_ENABLE_HF_TRANSFER and install hf_transfer in Core CI - #12394
Conversation
unsloth and unsloth_zoo both declare hf_transfer and set HF_HUB_ENABLE_HF_TRANSFER=1 on import, but the action installs both --no-deps and never installed it. On the HF=4.57.6 lane huggingface_hub 0.36.2 then raises on every plain download, which is how tests/test_gemma3_processor_token_type_ids.py fails in Core zoo on main.
|
@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 security review |
|
Codex Review: Didn't find any major issues. Keep it up! 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 Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review |
1 similar comment
|
@codex review |
|
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". |
|
@codex review |
1 similar comment
|
@codex review |
|
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". |
Problem
#12406 stopped
unsloth/dataprep/synthetic.pyfrom settingHF_HUB_ENABLE_HF_TRANSFER=1whenhf_transferis missing. Two gaps remain:hf_transferis installed, the gate still overwrites a value the caller already set. Studio's training worker setsHF_HUB_ENABLE_HF_TRANSFER=0for its Xet fallback (studio/backend/core/training/worker.py) and imports unsloth afterwards, soimport unslothturns it back to1. unsloth_zoo's gate already leaves an existing value alone; unsloth's did not.core-cpu-setupaction installs unsloth and unsloth_zoo with--no-depsand never installshf_transfer, although both declare it. The Core lanes therefore only ever test the path where the package is missing, not the one most users are on.version-compat-ci.ymlalready installs it.Fix
unsloth/dataprep/synthetic.py: only set the flag when it is unset, matching unsloth_zoo. Everything else in Only turn on HF_HUB_ENABLE_HF_TRANSFER in synthetic.py when hf_transfer is installed #12406's gate is unchanged.tests/test_synthetic_hf_transfer_gate.py: add a case that an explicit0or1survives withhf_transferinstalled. On main the0case fails (it becomes1); with this change all 7 tests pass..github/actions/core-cpu-setup/action.yml: installhf_transfer.Behaviour is unchanged when the flag is unset: set to
1ifhf_transferis importable and the Hub is not offline, otherwise left unset.