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
studio: authenticate HF downloads across Studio CI workflows (#5370)
Daniel Han8c606a70b5e5
diff --git a/.github/workflows/studio-api-smoke.yml b/.github/workflows/studio-api-smoke.ymlindex 4e8cc5c9c3e..742cba9ed97 100644--- a/.github/workflows/studio-api-smoke.yml+++ b/.github/workflows/studio-api-smoke.yml@@ -80,6 +80,8 @@ jobs:- name: Prime HF_HOME with the GGUFif: steps.cache-hf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cachediff --git a/.github/workflows/studio-inference-smoke.yml b/.github/workflows/studio-inference-smoke.ymlindex a1b54d6e65f..19e1ab9cc59 100644--- a/.github/workflows/studio-inference-smoke.yml+++ b/.github/workflows/studio-inference-smoke.yml@@ -94,6 +94,8 @@ jobs:- name: Prime HF_HOME with the GGUFif: steps.cache-hf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cache@@ -331,6 +333,8 @@ jobs:- name: Download GGUF if cache missif: steps.cache-gguf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p gguf-cache@@ -637,6 +641,8 @@ jobs:- name: Prime HF_HOME with the GGUF + mmprojif: steps.cache-hf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cachediff --git a/.github/workflows/studio-mac-api-smoke.yml b/.github/workflows/studio-mac-api-smoke.ymlindex 28a491840ba..98596f374a8 100644--- a/.github/workflows/studio-mac-api-smoke.yml+++ b/.github/workflows/studio-mac-api-smoke.yml@@ -65,6 +65,8 @@ jobs:- name: Prime HF_HOME with the GGUFif: steps.cache-hf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cachediff --git a/.github/workflows/studio-mac-inference-smoke.yml b/.github/workflows/studio-mac-inference-smoke.ymlindex 066ddf87b8a..97efe3e74d4 100644--- a/.github/workflows/studio-mac-inference-smoke.yml+++ b/.github/workflows/studio-mac-inference-smoke.yml@@ -88,6 +88,8 @@ jobs:- name: Prime HF_HOME with the GGUFif: steps.cache-hf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cache@@ -325,6 +327,8 @@ jobs:- name: Download GGUF if cache missif: steps.cache-gguf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p gguf-cache@@ -679,13 +683,24 @@ jobs:- name: Prime HF_HOME with the GGUF + mmprojif: steps.cache-hf.outputs.cache-hit != 'true'+ # Authenticated + parallel: shared macos-14 NAT egress stalls+ # multi-GB anonymous downloads.+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cacheHF_HUB_ENABLE_HF_TRANSFER=1 \- hf download "$GGUF_REPO" "$GGUF_FILE"+ hf download "$GGUF_REPO" "$GGUF_FILE" &+ MODEL_PID=$!HF_HUB_ENABLE_HF_TRANSFER=1 \- hf download "$GGUF_REPO" "$MMPROJ_FILE"+ hf download "$GGUF_REPO" "$MMPROJ_FILE" &+ MMPROJ_PID=$!+ wait "$MODEL_PID"+ wait "$MMPROJ_PID"+ # Fail loud on a partial download instead of in the next step.+ find hf-cache -name "$GGUF_FILE" -o -name "$MMPROJ_FILE" \+ | xargs -I{} ls -lhL {}- name: Install Studio (--local, --no-torch)env:diff --git a/.github/workflows/studio-mac-ui-smoke.yml b/.github/workflows/studio-mac-ui-smoke.ymlindex 75e958e023f..c921ddf63e7 100644--- a/.github/workflows/studio-mac-ui-smoke.yml+++ b/.github/workflows/studio-mac-ui-smoke.yml@@ -65,6 +65,8 @@ jobs:- name: Prime HF_HOME with the GGUFif: steps.cache-hf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cachediff --git a/.github/workflows/studio-ui-smoke.yml b/.github/workflows/studio-ui-smoke.ymlindex 6c4c66acd30..756eea64b2c 100644--- a/.github/workflows/studio-ui-smoke.yml+++ b/.github/workflows/studio-ui-smoke.yml@@ -79,6 +79,8 @@ jobs:- name: Prime HF_HOME with the GGUFif: steps.cache-hf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cachediff --git a/.github/workflows/studio-windows-api-smoke.yml b/.github/workflows/studio-windows-api-smoke.ymlindex db2e8a26a0b..d9ed5d55942 100644--- a/.github/workflows/studio-windows-api-smoke.yml+++ b/.github/workflows/studio-windows-api-smoke.yml@@ -72,6 +72,8 @@ jobs:- name: Prime HF_HOME with the GGUFif: steps.cache-hf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cachediff --git a/.github/workflows/studio-windows-inference-smoke.yml b/.github/workflows/studio-windows-inference-smoke.ymlindex e1406b7f45b..b33b6f9563f 100644--- a/.github/workflows/studio-windows-inference-smoke.yml+++ b/.github/workflows/studio-windows-inference-smoke.yml@@ -82,6 +82,8 @@ jobs:- name: Prime HF_HOME with the GGUFif: steps.cache-hf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cache@@ -382,6 +384,8 @@ jobs:- name: Download GGUF if cache missif: steps.cache-gguf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p gguf-cache@@ -776,6 +780,8 @@ jobs:- name: Prime HF_HOME with the GGUF + mmprojif: steps.cache-hf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cachediff --git a/.github/workflows/studio-windows-ui-smoke.yml b/.github/workflows/studio-windows-ui-smoke.ymlindex c550f048278..a5a4753ba53 100644--- a/.github/workflows/studio-windows-ui-smoke.yml+++ b/.github/workflows/studio-windows-ui-smoke.yml@@ -81,6 +81,8 @@ jobs:- name: Prime HF_HOME with the GGUFif: steps.cache-hf.outputs.cache-hit != 'true'+ env:+ HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |python -m pip install --upgrade huggingface_hub hf_transfermkdir -p hf-cache