Repository navigation
Unsloth Studio: show linked instances on the API page - #18312
Open
danielhanchen wants to merge 3 commits into
Open
danielhanchen wants to merge 3 commits into
danielhanchen wants to merge 3 commits into
Conversation
Owners with linked instances see a card per instance under the endpoint: online state, latency, GPU and VRAM, the loaded model and how it is reached. Cards open the details dialog; Manage opens Settings. Split from #12092. Mounted on the current API page instead of the earlier two-column layout rework. Co-authored-by: LeoBorcherding <[email protected]>
Codex Review Summary: ❌ FailedThis 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. |
This was referenced Nov 18, 2026
danielhanchen
added a commit
that referenced
this pull request
Nov 18, 2026
…18343) ## Comment the BLOCK constexpr on the bf16 stochastic rounding kernels `tests/test_triton_constexpr_comments.py` fails on `main` since #18282. It shows up in `Repo tests (CPU, rest)` on unrelated PRs, for example #18312 and #18313: ``` E AssertionError: tl.constexpr parameters without a comment: E unsloth/optimizers/bf16_stochastic_rounding.py:60 _round_kernel.BLOCK E unsloth/optimizers/bf16_stochastic_rounding.py:83 _adamw_kernel.BLOCK ``` ### Cause That lint requires every `tl.constexpr` parameter of an Unsloth Triton kernel to sit on its own line with a comment saying what it is. It does this because each distinct constexpr value compiles a new kernel. #18282 added `_round_kernel` and `_adamw_kernel`, whose `BLOCK` constexpr has no comment. `_round_kernel` also takes it inline on the `def` line. ### Fix Both kernels now take `BLOCK` on its own line with a comment: `# elements per program, fixed at _BLOCK`. `_round_kernel`'s signature is split one parameter per line to match. No behaviour changes. The parameters and their order are unchanged, and every launch still passes `BLOCK = _BLOCK` (1024). ### Verification - `tests/test_triton_constexpr_comments.py`: fails on `main` on these two lines and passes with this change. - `tests/test_bf16_stochastic_rounding.py`: 13 passed, 2 skipped on CPU across the two files. - ruff is clean.
This branch has not been deployed
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.
Owners with linked instances see one card per instance on the API page: online state, latency, GPU and VRAM, the loaded model and how it is reached (Localhost, LAN, Cloudflare, Public). A card opens the details dialog; Manage opens Settings.
Split from #12092 (by @LeoBorcherding), rebased on current
main. Stacked on #18311.mainhas redesigned the API page since #12092, so the cards are mounted as one section under the endpoint panel. The two-column layout rework anduse-fit-to-viewport.tsfrom #12092 are dropped.Tests
@wsl, 1 of 1 online, its GPU and VRAM and the loaded model. Pages without linked instances, and non-owners, render as onmain.