Skip to content

Studio Images: SDXL-Turbo opens at its native 512x512 canvas - #16168

Merged
danielhanchen merged 2 commits into
mainfrom
studio-sdxl-turbo-512-canvas
Oct 30, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
studio-sdxl-turbo-512-canvas

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Summary

SDXL-Turbo is a 512x512 model: its model card and reference workflow render 512x512 in 1 step at CFG 1. Studio already uses 1 step and guidance 0 for it, but every family opens at 1024x1024, so a fresh SDXL-Turbo render starts at four times its trained pixel count. At 1024 the subject comes out duplicated or tiled.

This gives the Images page a per-family native canvas, applied to every build of the family (pipeline, single file, GGUF, quantised), and lists SDXL-Turbo at 512x512. SDXL base and every other family keep 1024. The width and height are still the user's to change; this only sets the canvas Studio opens with and returns to on Reset.

Change

  • image-generation-defaults.ts: NATIVE_CANVAS (sdxl-turbo -> 512x512), checked first in resolutionFor with the same name folding as the steps table, so SDXL_Turbo and unsloth/sdxl-turbo match too.
  • The quantised-canvas rule (Qwen-Image-2.1) and the GGUF exclusion are unchanged.

Results

stabilityai/sdxl-turbo fp16 in diffusers, 1 step, guidance 0, 4 prompts, the same seed per prompt at both sizes. One Colab L4, 1 warm-up per size:

canvas s/image (median of 4)
512x512 (this PR) 0.316
1024x1024 (main) 0.980

Top row 512x512, bottom row 1024x1024:

SDXL-Turbo, 1 step: 512x512 top row, 1024x1024 bottom row

At 1024 every prompt shows the subject doubled or tiled (two foxes, a split face, stacked fireplaces, two lighthouses); at 512 all four are single, coherent subjects.

Tests

  • image-generation-canvas-defaults.test.ts: 2 new tests (SDXL-Turbo is 512 on pipeline, int8, fp8 single file and GGUF builds under three spellings; SDXL base keeps 1024). The SDXL-Turbo test fails on main.
  • image-generation-canvas-defaults.test.ts + image-generation-defaults.test.ts: 29 passed.

Not proven

  • The renders were run in diffusers, not through a Studio install; the change itself only sets the canvas the page requests.
  • Only the 4 prompts above at 1 step; other aspect ratios were not compared.

@danielhanchen danielhanchen self-assigned this Oct 30, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-10-30T17:18:20.298659Z 8d1a6ff 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.

danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 30, 2026
@danielhanchen

Copy link
Copy Markdown
Member 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: 8d1a6ff6d8

ℹ️ 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 added a commit that referenced this pull request Oct 30, 2026
## Problem

`Repo tests (CPU, studio-install)` is red on main since #16145 (seen on
the staging run for #16168, a frontend-only change):

```
tests/studio/install/test_studio_extra_matches_requirements.py::test_studio_extra_matches_requirements_file
AssertionError: studio.txt lists ['usearch'] but the `studio` extra does not.
tests/studio/install/test_studio_extra_matches_requirements.py::test_studio_extra_matches_requirement_versions
AssertionError: studio.txt specifies [('usearch', '==2.26.6', '')] but the `studio` extra does not.
```

#16145 added `usearch==2.26.6` to
`studio/backend/requirements/studio.txt` and `no-torch-runtime.txt` for
the HNSW RAG tier, but not to the `studio` extra in `pyproject.toml`. So
`pip install "unsloth[studio]"` resolves a different stack from the one
`install.sh` builds, which is exactly what this guard is for.

## Fix

Add `"usearch==2.26.6"` to the `studio` extra, next to `sqlite-vec`.
usearch 2.26.6 ships wheels for every target (manylinux / musllinux
x86_64 and aarch64, macOS x86_64 / arm64 / universal2, win_amd64,
win_arm64), so it needs no platform marker, matching `studio.txt`.

## Verification

- `tests/studio/install/test_studio_extra_matches_requirements.py`: 2
failed on main, all 7 pass with this change.
`tests/studio/install/test_pymupdf_platform_pins.py` still passes.
- `pyproject.toml` still parses.
@danielhanchen
danielhanchen merged commit 377738b into main Oct 30, 2026
@danielhanchen
danielhanchen deleted the studio-sdxl-turbo-512-canvas branch October 30, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant