Skip to content

Studio: make UNSLOTH_DISABLE_UPDATE_CHECK also stop the llama.cpp and whisper.cpp checks - #11155

Merged
Lyxot merged 4 commits into
unslothai:mainfrom
NilayYadav:studio-update-check-optout-llama
Sep 17, 2026
Merged

Lyxot merged 4 commits into
unslothai:mainfrom
NilayYadav:studio-update-check-optout-llama

Conversation

@NilayYadav

Copy link
Copy Markdown
Collaborator

Setting UNSLOTH_DISABLE_UPDATE_CHECK=1 stopped the PyPI check, but Studio still called GitHub for llama.cpp and whisper.cpp updates every time the page loaded, and again from the backend picker in Settings. On hosts without internet, these calls also made the status endpoint slow.

The update status routes, the freshness lookup and the Settings backend picker now skip the network when the variable is set. The picker shows a short note explaining why it is empty.

Tested with new unit tests and on a live Studio behind a logging proxy: no GitHub connections with the variable set, including Settings, and normal behaviour without it.

@NilayYadav

Copy link
Copy Markdown
Collaborator Author

@codex review

1 similar comment
@NilayYadav

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-16T21:14:44.282310Z c6dc32c Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 0b334981ab

ℹ️ 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".

@NilayYadav

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a3ecda71f5

ℹ️ 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".

@NilayYadav

Copy link
Copy Markdown
Collaborator Author

@codex review

1 similar comment
@NilayYadav

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: c6dc32c000

ℹ️ 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".

@danielhanchen

Copy link
Copy Markdown
Member

Confirmed the opt-out only covered the PyPI check and that llama.cpp and whisper.cpp still reached GitHub from the status path, so the gating in llama_cpp_update.py and whisper_cpp_update.py is the right direction. Could you drop the unrelated reformatting in studio/backend/main.py and tests/studio/playwright_queue_localization.py so the branch is just the update-check change?

@Lyxot
Lyxot force-pushed the studio-update-check-optout-llama branch from 7cb5cc9 to 772fed8 Compare September 17, 2026 04:53
@Lyxot

Lyxot commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Rebased onto current main and dropped the pre-commit.ci formatting commit. Main already carries that formatting, and the commit was conflicting with main in tests/studio/playwright_queue_localization.py. The four commits are otherwise unchanged, and the diff is now only the update-check change. CI on the rebased branch passes.

@Lyxot

Lyxot commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

@codex review

@Lyxot Lyxot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The opt-out now covers the llama.cpp and whisper.cpp update checks and the backend picker, and explicit backend switches still work. CI passes on current main.

@Lyxot
Lyxot merged commit 9feca8a into unslothai:main Sep 17, 2026
53 checks passed
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
… whisper.cpp checks (unslothai#11155)

* Studio: honour UNSLOTH_DISABLE_UPDATE_CHECK in llama.cpp and whisper.cpp update checks

* Studio: honour UNSLOTH_DISABLE_UPDATE_CHECK in the llama.cpp backend picker

* Studio: translate the update-checks-disabled backend picker note

* Studio: refuse llama.cpp update requests when update checks are disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants