Repository navigation
Kaggle Studio GPU CI: request hardware detection after sign-in - #16728
Merged
Merged
Conversation
Since #16469 the startup hardware warmup is opt-in, so /api/health keeps hardware_detecting set (with hardware_detection_deferred) until an authenticated detect_hardware=true request, which the harness never sent: every run timed out in studio_ready. A deferred detection now counts as up, and the harness asks for detection after login and waits for the verdict, as the UI does.
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. |
…he key check With hardware detection deferred, /api/health is ready before the CLI's model finishes loading, so the first completion got 'No model loaded'. Retry that answer while the process lives, up to the health deadline.
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. 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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Kaggle T4 Studio GPU check (
kaggle-studio-gpu) has failed on every run since #16469 made the startup ML warmup opt-in, onmainas well as on PRs:studio_ready: Unsloth never became ready: timed out after 421s.Cause: without the
hardwarewarmup,/api/healthreportshardware_detecting: truetogether withhardware_detection_deferred: true, and detection only starts on an authenticatedGET /api/health?detect_hardware=true(what the UI sends after sign-in). The harness polled the unauthenticated endpoint and waited forhardware_detectingto clear, which never happens, so it timed out while the server sat healthy.Fix (harness only):
health_is_readytreats a deferred detection as up (the server is idle, waiting for the request).hardware_detectedkeeps the old strict check (healthy and no detection pending).authenticaterequests detection withdetect_hardware=trueand waits for the verdict within the existing health deadline, so training and export still run only after detection, as before. A detection that never finishes failsauthenticatewith the last health payload.No Studio code changes.
Tests
tests/kaggle/test_studio_gpu_harness.py: 188 passed, with new assertions for the deferred payload (health_is_readytrue,hardware_detectedfalse).kaggle-t4-studio-gpu-cidispatched on this branch; the result is posted as thekaggle-studio-gpustatus on the head commit.