Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Withhold HF_TOKEN from pull_request CI runs (#6600)
Daniel Hanaf3f29de8378
diff --git a/.github/workflows/local-agent-guides-ci.yml b/.github/workflows/local-agent-guides-ci.ymlindex 150dbc3fded..299ee3f18b5 100644--- a/.github/workflows/local-agent-guides-ci.yml+++ b/.github/workflows/local-agent-guides-ci.yml@@ -64,6 +64,12 @@ concurrency:permissions:contents: read+# Secret handling on pull_request: these jobs check out and run PR-controlled code+# (install.sh, .github/scripts/**), so HF_TOKEN (an external HF credential) is gated+# off pull_request at each step below -- public GGUF repos still download anonymously.+# GH_TOKEN (GITHUB_TOKEN) is kept: it is the job-scoped contents:read token and+# install_llama_prebuilt.py needs it for the GitHub releases API (else 403s).+env:# Determinism precedent (studio-inference-smoke.yml): temp 0 + fixed seed.UNSLOTH_SEED: '3407'@@ -134,7 +140,8 @@ jobs:id: download-ggufif: steps.cache-gguf.outputs.cache-hit != 'true' || steps.cache-gguf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Gated off PR (see note above); public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p gguf-cache@@ -150,7 +157,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Gated off PR (see note above); public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefail@@ -335,7 +343,8 @@ jobs:id: download-ggufif: steps.cache-gguf.outputs.cache-hit != 'true' || steps.cache-gguf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Gated off PR (see note above); public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p gguf-cache@@ -351,7 +360,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Gated off PR (see note above); public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefail@@ -508,7 +518,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Gated off PR (see note above); public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -524,7 +535,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Gated off PR (see note above); public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefaildiff --git a/.github/workflows/mlx-ci.yml b/.github/workflows/mlx-ci.ymlindex 221e86f2359..864630f9f0c 100644--- a/.github/workflows/mlx-ci.yml+++ b/.github/workflows/mlx-ci.yml@@ -241,7 +241,8 @@ jobs:# non-zero binary exit is an Unsloth/Studio bug.- name: Studio prebuilt llama.cpp install + GGUF inference (Mac M1)env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}# install_llama_prebuilt.py hits the GitHub releases API to# resolve the asset URL. Anonymous calls share the runner-IP# rate-limit bucket and 403 quickly -- pass the workflow's@@ -332,7 +333,8 @@ jobs:# train_metrics.json so we can detect regressions across CI runs.- name: MLX export round-trip — TRAIN + SAVE 3 formatsenv:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}UNSLOTH_COMPILE_DISABLE: '1'run: |mkdir -p mlx_workdir@@ -348,7 +350,8 @@ jobs:# the saved dir.- name: MLX export round-trip — RELOAD LoRA (fresh process)env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}UNSLOTH_COMPILE_DISABLE: '1'run: |python tests/studio/run_real_mlx_smoke.py reload \@@ -357,7 +360,8 @@ jobs:- name: MLX export round-trip — RELOAD merged_16bit (fresh process)env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}UNSLOTH_COMPILE_DISABLE: '1'run: |python tests/studio/run_real_mlx_smoke.py reload \@@ -372,7 +376,8 @@ jobs:# LoRA + merged_16bit assertions remain the gating signal.- name: MLX export round-trip — RELOAD GGUF via llama-cli (fresh process)env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |if python -c "import json,sys; m=json.load(open('mlx_workdir/train_metrics.json')); sys.exit(0 if m.get('gguf_supported') else 1)"; thenpython tests/studio/run_real_mlx_smoke.py reload \diff --git a/.github/workflows/studio-api-smoke.yml b/.github/workflows/studio-api-smoke.ymlindex b196805cf7f..15efee382e4 100644--- a/.github/workflows/studio-api-smoke.yml+++ b/.github/workflows/studio-api-smoke.yml@@ -83,7 +83,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -100,7 +101,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefaildiff --git a/.github/workflows/studio-inference-smoke.yml b/.github/workflows/studio-inference-smoke.ymlindex c2c4fa03bf3..aebf90380ae 100644--- a/.github/workflows/studio-inference-smoke.yml+++ b/.github/workflows/studio-inference-smoke.yml@@ -97,7 +97,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -114,7 +115,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefail@@ -364,7 +366,8 @@ jobs:id: download-ggufif: steps.cache-gguf.outputs.cache-hit != 'true' || steps.cache-gguf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p gguf-cache@@ -380,7 +383,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefail@@ -845,7 +849,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -863,7 +868,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefaildiff --git a/.github/workflows/studio-mac-api-smoke.yml b/.github/workflows/studio-mac-api-smoke.ymlindex 412726538c2..617ce189dc4 100644--- a/.github/workflows/studio-mac-api-smoke.yml+++ b/.github/workflows/studio-mac-api-smoke.yml@@ -68,7 +68,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -85,7 +86,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefaildiff --git a/.github/workflows/studio-mac-inference-smoke.yml b/.github/workflows/studio-mac-inference-smoke.ymlindex c794a34acd3..d562294d423 100644--- a/.github/workflows/studio-mac-inference-smoke.yml+++ b/.github/workflows/studio-mac-inference-smoke.yml@@ -91,7 +91,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -110,7 +111,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefail@@ -346,7 +348,8 @@ jobs:id: download-ggufif: steps.cache-gguf.outputs.cache-hit != 'true' || steps.cache-gguf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p gguf-cache@@ -363,7 +366,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefail@@ -725,7 +729,8 @@ jobs:# Authenticated + parallel: shared macos-14 NAT egress stalls# multi-GB anonymous downloads.env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p gguf-cache@@ -752,7 +757,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefaildiff --git a/.github/workflows/studio-mac-install-matrix.yml b/.github/workflows/studio-mac-install-matrix.ymlindex da944d4b5c6..362305cdd4f 100644--- a/.github/workflows/studio-mac-install-matrix.yml+++ b/.github/workflows/studio-mac-install-matrix.yml@@ -63,7 +63,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefaildiff --git a/.github/workflows/studio-mac-ui-smoke.yml b/.github/workflows/studio-mac-ui-smoke.ymlindex 4f9f94b534a..512af54d533 100644--- a/.github/workflows/studio-mac-ui-smoke.yml+++ b/.github/workflows/studio-mac-ui-smoke.yml@@ -68,7 +68,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -85,7 +86,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefaildiff --git a/.github/workflows/studio-mac-update-smoke.yml b/.github/workflows/studio-mac-update-smoke.ymlindex f554a164156..d104306c7ed 100644--- a/.github/workflows/studio-mac-update-smoke.yml+++ b/.github/workflows/studio-mac-update-smoke.yml@@ -62,7 +62,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefail@@ -74,7 +75,8 @@ jobs:- name: First update should be a no-op (prebuilt already validated)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |set -o pipefailunsloth studio update --local 2>&1 | tee logs/update.log@@ -93,7 +95,8 @@ jobs:- name: Second update must also be a no-openv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |set -o pipefailunsloth studio update --local 2>&1 | tee logs/update2.logdiff --git a/.github/workflows/studio-ui-smoke.yml b/.github/workflows/studio-ui-smoke.ymlindex dcf9fd26af9..297a585430d 100644--- a/.github/workflows/studio-ui-smoke.yml+++ b/.github/workflows/studio-ui-smoke.yml@@ -82,7 +82,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -99,7 +100,8 @@ jobs:- name: Install Studio (--local, --no-torch)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefaildiff --git a/.github/workflows/studio-update-smoke.yml b/.github/workflows/studio-update-smoke.ymlindex 307bb51972a..08a79afacd8 100644--- a/.github/workflows/studio-update-smoke.yml+++ b/.github/workflows/studio-update-smoke.yml@@ -71,7 +71,8 @@ jobs:# prebuilt path falls back to source build.env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |mkdir -p logsset -o pipefail@@ -86,7 +87,8 @@ jobs:# idempotency regressed.env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |set -o pipefailunsloth studio update --local 2>&1 | tee logs/update.log@@ -109,7 +111,8 @@ jobs:# the first one.env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |set -o pipefailunsloth studio update --local 2>&1 | tee logs/update2.logdiff --git a/.github/workflows/studio-windows-api-smoke.yml b/.github/workflows/studio-windows-api-smoke.ymlindex 78efe918ac7..e9abd2d6695 100644--- a/.github/workflows/studio-windows-api-smoke.yml+++ b/.github/workflows/studio-windows-api-smoke.yml@@ -75,7 +75,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -124,7 +125,8 @@ jobs:shell: pwshenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |New-Item -ItemType Directory -Force -Path logs | Out-Null# *>&1 captures Write-Host (Information stream) output;diff --git a/.github/workflows/studio-windows-inference-smoke.yml b/.github/workflows/studio-windows-inference-smoke.ymlindex a997c89b671..c44c68278d4 100644--- a/.github/workflows/studio-windows-inference-smoke.yml+++ b/.github/workflows/studio-windows-inference-smoke.yml@@ -127,7 +127,8 @@ jobs:# described above (outcome != success).if: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -179,7 +180,8 @@ jobs:shell: pwshenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |New-Item -ItemType Directory -Force -Path logs | Out-Null# *>&1 captures Write-Host (Information stream) output;@@ -476,7 +478,8 @@ jobs:id: download-ggufif: steps.cache-gguf.outputs.cache-hit != 'true' || steps.cache-gguf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p gguf-cache@@ -524,7 +527,8 @@ jobs:shell: pwshenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |New-Item -ItemType Directory -Force -Path logs | Out-Null# *>&1 captures Write-Host (Information stream) output;@@ -906,7 +910,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -956,7 +961,8 @@ jobs:shell: pwshenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |New-Item -ItemType Directory -Force -Path logs | Out-Null# *>&1 captures Write-Host (Information stream) output;@@ -1299,7 +1305,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -1376,7 +1383,8 @@ jobs:shell: pwshenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |New-Item -ItemType Directory -Force -Path logs | Out-Null$ProgressPreference = 'SilentlyContinue'diff --git a/.github/workflows/studio-windows-ui-smoke.yml b/.github/workflows/studio-windows-ui-smoke.ymlindex 00458d213bc..405309916aa 100644--- a/.github/workflows/studio-windows-ui-smoke.yml+++ b/.github/workflows/studio-windows-ui-smoke.yml@@ -91,7 +91,8 @@ jobs:id: prime-hfif: steps.cache-hf.outputs.cache-hit != 'true' || steps.cache-hf.outcome != 'success'env:- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |python -m pip install --upgrade huggingface_hubmkdir -p hf-cache@@ -155,7 +156,8 @@ jobs:shell: pwshenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |New-Item -ItemType Directory -Force -Path logs | Out-Null# *>&1 redirects ALL PowerShell streams (stdout, stderr,diff --git a/.github/workflows/studio-windows-update-smoke.yml b/.github/workflows/studio-windows-update-smoke.ymlindex 1a2a7df4930..888b3d70a3c 100644--- a/.github/workflows/studio-windows-update-smoke.yml+++ b/.github/workflows/studio-windows-update-smoke.yml@@ -133,7 +133,8 @@ jobs:shell: pwshenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |New-Item -ItemType Directory -Force -Path logs | Out-Null# *>&1 captures Write-Host (Information stream) output;@@ -180,7 +181,8 @@ jobs:- name: First update should be a no-op (prebuilt already validated)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |set -o pipefailunsloth studio update --local 2>&1 | tee logs/update.log@@ -199,7 +201,8 @@ jobs:- name: Second update must also be a no-openv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- HF_TOKEN: ${{ secrets.HF_TOKEN }}+ # Withheld on PR: this step runs checked-out PR code; public GGUF still downloads.+ HF_TOKEN: ${{ github.event_name != 'pull_request' && secrets.HF_TOKEN || '' }}run: |set -o pipefailunsloth studio update --local 2>&1 | tee logs/update2.log