Skip to content

PR #8514 staging CI - #1

Closed
mahiatlinux wants to merge 32 commits into
mainfrom
pr-8514-ci
Closed

mahiatlinux wants to merge 32 commits into
mainfrom
pr-8514-ci

Conversation

@mahiatlinux

Copy link
Copy Markdown
Owner

Staging-only CI validation for unslothai#8514.

This PR exists only to run fork GitHub Actions checks and should be closed after validation.

mahiatlinux and others added 30 commits August 12, 2026 13:11
The dialog is centred with `top-1/2 -translate-y-1/2`, so any height change
moves both edges. `CommandList` was sized with `max-h-[420px]`, which meant it
opened at the height of the "Loading…" row and grew to full height the moment
`buildIndex()` resolved, re-laying out and re-centring the surface in the middle
of the 100ms zoom. In the Tauri WebKit view that reads as a visible stutter; in
the browser it is mostly hidden by faster compositing.

Changes in `chat-search-dialog.tsx`:

- pin `CommandList` to `h-[420px] max-h-[60dvh]` whenever a chat exists, so
  loading, arriving results and filtering never resize the surface. The list
  only collapses in the genuinely empty "No chats yet." case.
- mount `INITIAL_ROW_COUNT` (24) rows first and the remainder at 220ms, after
  the open animation, so a 200 thread history does not lay out every row
  mid-transition.
- run filtering through `useDeferredValue`, keeping `selectVisibleChats` off the
  keystroke path. It scans `searchText` for every conversation, which includes
  tool call output.
- ease the open and close at 180ms with `cubic-bezier(0.16, 1, 0.3, 1)`.

`use-chat-search-index.ts` keeps the last built index in a module-level
`cachedIndex`, so reopening paints the previous rows immediately and revalidates
in place instead of falling back to the empty state. When the dialog is closed
the hook listens for `CHAT_HISTORY_UPDATED_EVENT` and drops the cache, so a chat
deleted while search is closed cannot reappear on the next open.

`index.css` adds `will-change: transform, opacity` to `.chat-search-surface`.
The surface carries a 70px blur shadow that WebKit otherwise repaints on every
frame of the zoom.

Verified in the Tauri dev build against the same chat history that reproduced the
stutter, and in the browser at localhost:5173. `tsc -b` clean, 1960 frontend
tests pass. No GPU checks apply.
Four items from the round one review, all reproduced against head first.

`use-chat-search-index.ts`:

- `cachedIndex` is now assigned after the cancellation and sequence checks. A
  rebuild that resolved late could otherwise overwrite a newer snapshot, or
  repopulate the cache after the closed-dialog listener invalidated it, which put
  deleted chats back on the next open with the loading state suppressed.
- the closed-dialog invalidation returns early when nothing is cached.
  `CHAT_HISTORY_UPDATED_EVENT` fires per streaming chunk, so the previous version
  allocated a new array and re-rendered on each one throughout generation.

`chat-search-dialog.tsx`:

- the query and row-limit reset moved from close to open, in a layout effect.
  Radix keeps the surface mounted for the 180ms exit animation, so trimming back
  to 24 rows on close tore down the DOM mid-transition. Resetting before the
  reopened dialog paints keeps the exit untouched and avoids a flash of the
  previous query's results.
- `matchesChatQuery` gates activation. The list trails the input by a render
  while the deferred filter catches up, so Enter could open a chat that no longer
  matches what the input shows. Re-checking the row against the live query keeps
  clicks on visible rows working while dropping the stale activation.

`tsc -b` clean, 1960 frontend tests pass. UI behaviour verified in the Tauri dev
build: open, type, close, reopen, and delete-then-open.
`chat-search-dialog.tsx`:

- reserve the fixed list height from `ready` rather than `loading`. `run()` calls
  `setLoading(true)` from a passive effect, so on the first open of a session the
  opening render still saw `loading === false` with no items and picked the
  compact branch, then jumped to 420px during the animation. The hook now
  reports whether an index exists, which is known on the first render.
- reset the query and row cap during the opening render instead of in a layout
  effect. Radix mounts the portal as that render commits, so a layout effect
  trimmed rows only after React had already built the previous result set into
  the DOM.
- filter on `activeQuery`, which bypasses `useDeferredValue` for an empty query.
  The deferred value keeps returning the previous query during the urgent reset,
  so a reopened dialog could paint the old filtered subset next to an empty
  input.
- validate selection against `selectVisibleChats(items, query)` rather than a
  per-item match. The per-item check ignored the two-tier rule, where a global
  `userSearchText` hit suppresses `searchText` matches, so a row outside the live
  result set could still be activated. The scan runs on activation only.

`use-chat-search-index.ts`:

- `rebuildPending` tracks a history change whose debounced rebuild has not landed.
  Closing the dialog in that window cancelled the rebuild and left a snapshot
  already known to be out of date, which the next open then showed. The cleanup
  now drops the cache in that case.
- `ready` is exported alongside `items` and `loading`, cleared wherever the cache
  is invalidated.

`tsc -b` clean, 1960 frontend tests pass.
The empty-history first open reserved 420px while the index was still building, then collapsed to the compact branch as soon as the empty build resolved, so the centered dialog shrank mid-animation. The height now comes from what the cache already knows at the opening render and is held for that whole open.

Closing within 300ms of a history event also cleared the rendered items from the effect cleanup, tearing every row out of the list while Radix kept the surface mounted for its 180ms exit. That path and the closed-dialog listener now drop only the module cache; the reopening render discards the stale rows before they can paint.
The index cache sits at module scope so it survives the sidebar unmount, and a web logout only runs navigate({ to: "/login" }) with no reload. A second account logging in on the same page therefore opened the search dialog onto the previous user's rows until the rebuild landed.

Reads and writes now go through readCachedIndex/writeCachedIndex, stamped with getAuthSessionEpoch(), the same session marker features/credentials/bootstrap.ts uses. A build that straddles a logout is discarded rather than stamped onto the new session.
The property was applied by a permanent class rule, so the dialog kept its
own compositing layer for its whole life rather than just the open zoom. In
WebView2 that disables subpixel text antialiasing, leaving the search rows
visibly soft on Windows.

Both Blink and WebKit already promote an element while a transform/opacity
animation is actually running, so the zoom keeps its layer without the hint.
Four review findings on the search index cache.

The storage listener dropped the module cache but told no one, so a dialog
already open kept rendering rows built before another tab's change, with
nothing scheduled to replace them. It now re-raises the change as the same
same-document event a local change fires, which every in-tab listener
already handles. Tabs only learn of a change through localStorage, so the
re-raise cannot echo back.

That write sat on the streaming path, where the history event fires per
chunk, and a synchronous setItem there blocks the producing tab and wakes
every other one. It is coalesced to at most one write per quiet window.

Releasing uncached rows happened in the closing render, inside the portal
Radix keeps mounted for the exit animation, which is the teardown the rest
of this change avoids. It waits for the exit instead.

The persisted row hint outlives the page but was not cleared on logout, so
after a reload on the login screen the next account sized its first open
from the previous one's history. It now clears when the auth session does.
Four more review findings on the search index cache.

An account switch performed in another tab reached this one as a token
write and nothing else: the session epoch lives in this document's memory
and its events are same-document, so the cached rows still matched their
epoch and the next open showed the previous account's titles while the
rebuild already used the new account's token. The storage listener now
treats a token write as an invalidation, and the shared row hint goes with
it. A routine refresh writes that key too and costs one rebuild, which is
the safe way to be wrong.

The revision write was throttled rather than coalesced, so a long
generation wrote once per debounce period instead of once when it went
quiet. The timer is rescheduled on each update, and a pagehide flush keeps
a delete that is followed by closing the tab from being lost with the page.

Releasing rows was one-shot: a history event arriving after it had already
run left the hook holding the conversation text until the dialog was
reopened. Invalidation reschedules it, which moves a timer rather than
rendering, so a stream still costs nothing until it stops.
…ation' into fix/studio-chat-search-animation
Three review findings.

An account switch made elsewhere reached this document as a token write, so
a build already in flight had been started for the account that just went
away. Its epoch check could not catch that, because the epoch is this
document's and this document never signed out: the result would have been
written back to the cache and the UI as the previous account's titles. The
storage listener now raises a distinct session event, and an open dialog
answers it by dropping its rows and rebuilding at once, which advances the
request sequence and retires the older build.

The cross-tab write shared one quiet window with the per-chunk streaming
path, so a delete during a long generation stayed unannounced until the
generation finished and other tabs went on offering the deleted chat as a
live row. Only the message-write path coalesces now; everything else
publishes immediately. That logic moves to its own module so it can be
tested, the same way the row hint was.

Releasing rows restarted its countdown on each invalidation, so a stream
with the dialog closed could hold an oversized index for the whole
generation. A pending release is left to run.
Two review findings.

Keying the cross-tab account check off the token meant an hourly refresh
read as an account switch: refreshSession rewrites that key with the same
session in place, so every rotation would have thrown away another tab's
warm cache and emptied an open dialog for nothing. Sessions now leave a
mark in storage, written where storeAuthTokens already detects a session
starting and removed where clearAuthTokens ends one. It moves on a session
boundary and never on a rotation, which is the question the search cache
was really asking. Nothing reads the value; only that it changed.

Pruning is how a message is deleted, and syncChatMessages was coalescing
that alongside the streaming autosave it shares an endpoint with, so an
explicit deletion could wait out an unrelated generation before other tabs
heard about it. It takes the immediate channel when pruneMissing is set.
Comments only, no code touched. The explanations had grown longer than the
code they sat above, several of them restating the same constraint in two
or three places. Same points, shorter, across the 13 files this branch adds
or changes: 126 lines in, 172 out.
…ation' into fix/studio-chat-search-animation
- a manual message edit publishes its revision at once instead of sharing the
  streaming autosave's coalescing window
- Archive All emits one cross-tab revision for the batch, not one per thread
- a session predating the session marker backfills it on its next token refresh,
  so a later sign-out is visible to the other tabs
- a failed rebuild drops the snapshot it was replacing rather than restoring it
- a persisted empty history answer ages out, since chats made elsewhere never
  reach this tab
mahiatlinux pushed a commit that referenced this pull request Sep 7, 2026
…#10361)

* feat(chat): render on-disk sandbox images in chat markdown

A model that writes `![plot](/api/inference/sandbox/<sid>/plot.png)` got "[Image blocked]"
before, and "Image not available" after unslothai#10269: the src carries no scheme, so sanitize keeps it
and safeMarkdownUrl returns it unchanged -- but the route answers on the Authorization header
(_authenticate_header_or_query), so a bare <img src> hits it unauthenticated and 401s. Only
tool cards did the authed fetch (tool-ui-python.tsx), so markdown was the one path left.

Resolve the src through sandboxFilePath(sandboxSessionIdFor(threadId, projectId)) and fetch it
into an object URL before it reaches the DOM: the session segment the model happened to write is
discarded and rebuilt from this chat's scope, so a project thread reads the project's workspace.
One hook, useSandboxImage, now does that for markdown AND for the Python card, which had its own
copy; abort + revokeObjectURL on cleanup in both.

Registering `img` replaces Streamdown's default renderer wholesale (its Components map is keyed by
tag), so everything that renderer did for a data: image is restated: wrapper, hidden-when-failed,
fallback text, hover download. The two features are load-bearing on each other rather than merely
compatible: unslothai#10269's early return for `data:`/`blob:` is exactly why the rewritten src survives the
way back out, and it returns those unchanged, so scheme-carrying sources never reach this path.

.avif joins _SANDBOX_MEDIA_TYPES (a raster codec, and nosniff pins the type either way); .svg stays
out on purpose -- the filename is model-chosen, so inline SVG would be same-origin script execution,
and a non-image extension stays the download card the file list already renders. Tests included.

* fix(chat): address review on sandbox markdown images: recorded session wins, decoded names, avif parity

Three review threads and one manual note, all in the same seam.

The session a src RECORDS wins when it names one (r3941897041). Replay shows the model its own
tool-result stdout, not the envelope -- and stdout carries real workdir paths, so the sid a model
echoes into a URL IS the folder its files were written to. That is exactly what the tool card above
the prose already resolves from (the persisted envelope's sessionId); re-deriving from current scope
was the one place that disagreed with it, and it broke older answers' images after a project move.
sandboxSessionInSrc reads the recorded session back out (path segment, or ?session= under `_`);
markdownSandboxImageSrc falls back to this chat's scope only when nothing was recorded. A bare
outputs/plot.png still takes project-<id> else threadId, exactly as before.

And a dot segment can no longer smuggle a scope: sandboxFileForSrc decodes BEFORE judging (so %2e%2e
is caught too) and returns null on `..` -- one dot pops the prepended scope into another chat's
folder, two land on another route; a bare `.` is dropped as noise.

Download names decode (r3941897043): the tail is split on raw [?#] first, so delimiters keep their
meaning, then decodedSegment'd -- `loss curve #1.png` saves under its real name now.

.avif joins _IMAGE_EXTS (r3941897045), and the frontend pin now pins set(_SANDBOX_MEDIA_TYPES) ==
_IMAGE_EXTS outright: what the route serves inline, what a tool call reports inline, and what the
frontend renders as an <img> are one set in three files and must not drift apart again.

Tests re-pinned for recorded-wins (a moved chat's older answer keeps resolving to the folder named
in its own URL even when projectId is set; bare paths still beat scope from project over threadId),
the `?session=` form round-trips, dot segments fail honestly, and the decode pin rides the restatement.
6881 pass / 0 fail on the frontend suite, tsc -b clean; backend suites byte-identical to main here.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix sandbox image URL validation and error recovery

* Fix sandbox image retries reusing cancelled results

---------

Co-authored-by: CelesteHeartsong <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Etherll <[email protected]>
@mahiatlinux
mahiatlinux deleted the pr-8514-ci branch September 25, 2026 05:35
danielhanchen added a commit that referenced this pull request Nov 2, 2026
…nslothai#16312)

## Summary

SDXL sessions in Studio were slower than eager (`speed_mode=off`) while
the deferred per-block U-Net compile was still running. Each render
waited for a slice of that compile. On L4, renders 3-10 took 12.0-19.6 s
against 9.5-10.0 s eager. On A100 the compile never finished within 20
back-to-back renders, and the session took 91-95 s against 56 s eager.

With this change the background compile runs only while no render is
running. A back-to-back session now runs at eager speed or better from
the 3rd image on. A session with idle time between images still reaches
the compiled speed. Its renders stay at eager speed until the compile is
done.

## Root cause

`_wait_or_pause_bg_compile` (diffusion.py) called
`BackgroundCompile.pause(budget_s=slice)`. That call made each render
wait for three things, one after another, before it could start:

1. The slice itself (`UNSLOTH_DIFFUSION_BG_COMPILE_SLICE_S`, default =
the load's fastest eager render: 9.4-9.7 s on L4, 2.7 s on A100).
2. The block graph in flight. The compile could only park at a block
boundary (`yield_point`), so the render waited for that graph to finish:
0.3-5.3 s per render on L4 with the slice set to 0 (logs from the
earlier round).
3. One more block graph after every resume (`_owe_graph`), the guard
that kept back-to-back renders from starving the compile.

Running the render next to the compile is not an option. That compile is
pure-Python dynamo / inductor work holding the GIL, and an earlier
attempt measured renders 11-15x slower next to it. This is also why a
shorter slice did not help: the render still waited at a block boundary.

## Change

`diffusion_bg_compile.py`, idle-only mode (default on):

- **No slice, no wait, nothing owed.** A render stops the compile right
away. The compile resumes only once no render has run for
`UNSLOTH_DIFFUSION_BG_COMPILE_IDLE_S` (1 s). The kick itself also waits
that long, so the response of the 3rd image is not slowed. Back-to-back
renders (the next request arrives within 1 s) leave the compile parked.
With idle time between images, the compile runs during the gaps.
- **Mid-trace freeze** (resident denoiser, Python 3.12+). The compile
thread no longer runs on to the end of its block graph. It is frozen at
its next Python call through `sys.monitoring` PY_START, typically 1-13
ms after the render asks. Safety rules:
- The callback only acts on the compile thread, and only inside torch's
compile (`torch._dynamo` / `_inductor` / `_functorch` frames).
- It never parks with a lock-taking module on the stack (logging,
structlog, tqdm, imports, warnings, threading / concurrent, the inductor
compile-worker pool, Studio's compile config).
- It never parks in a Studio frame that is inside one of its lock
blocks. Those blocks are found from the function's AST, so the
CUDA-graph wrapper the sample replay runs through is not refused as a
whole.
- Frame verdicts are memoised per pause, so a refused region stays
cheap.
  - The event is switched off as soon as the thread parks.
- **compile_lock.** dynamo's `compile_lock` is wrapped (same RLock). A
thread that needs it while the frozen compile holds it lets the compile
finish that one frame, and the compile then freezes again, instead of
deadlocking.
- **Blocked compile thread.** A compile thread blocked without the GIL
(a Triton / C++ build in the pool, a subprocess) costs the render
nothing. The render does not wait for it: if the thread's innermost
frame does not change for 20 ms, the render goes ahead.
- **Offloaded denoisers** are not frozen (their eager forward moves
weights). For them, and on older Python, the compile parks at the next
block boundary with no slice and nothing owed.
- **Diagnostics.** A render that took more than 0.1 s to stop the
compile logs where and why. `describe()` gains `idle_only`, `freezes`,
`thaws`, `pause_wait_s`.

Kill switches:

- `UNSLOTH_DIFFUSION_BG_COMPILE_IDLE_ONLY=0` restores the previous slice
behaviour exactly. The old tests run under it.
- `UNSLOTH_DIFFUSION_BG_COMPILE_FREEZE=0` keeps idle-only but stops only
at block boundaries.

LoRA renders still wait for the whole compile, as before. Whole-module
compiles (DiT families, `UNSLOTH_DIFFUSION_UNET_REGIONAL=0`) do not
yield, so they keep their current wait path.

## Results

SDXL 1024^2, 25 steps, dpmpp_2m karras, a fresh Studio home and inductor
cache per cell, 20 new prompts per cell, one warm-up render first. The
base is the PR's merge base at the time of each run (`b1b286c9b7` for L4
#1 / A100 #1, `d6ab4f64ac` for the rest; the commits in between do not
touch these files); head is base plus this change. Eager is base with
`speed_mode=off`. Gap = 8 s idle before each render after the first, not
counted in the time. rN = repeat N.

**Back-to-back, total seconds for 20 images (same VM per row)**

| VM | base default | head default | base eager | head renders 3-20 |
eager renders 3-20 |
|---|---|---|---|---|---|
| L4 #1 | 241.73 / 236.47 | **191.90 / 191.86** | 193.14 / 192.33 |
9.33-9.69 | 9.49-9.89 |
| L4 #2 | 242.05 / 242.07 | **196.95 / 196.76** | 197.80 / 198.11 |
9.57-9.81 | 9.74-10.01 |
| L4 #3 | - | **195.25** | 195.50 / 196.21 | 9.53-9.68 | 9.67-9.90 |
| A100 #1 | 94.66 / 91.48 | **56.05 / 55.97** | 55.88 / 56.26 |
2.66-2.71 | 2.77-3.03 |
| A100 #2 | - | **55.87** | 55.79 / 56.16 | 2.66-2.69 | 2.77-2.87 |

On base, L4 renders 3-10 take 12.0-19.6 s. A100 base renders take
3.0-8.3 s across all 20, because its compile never finishes.

**With idle gaps (the compile gets idle time)**

| VM | base default | head default r1 / r2 | base eager | head: first
compiled render | head renders 3-9 (eager at the same index) | then |
|---|---|---|---|---|---|---|
| L4 #3 | 211.77 (renders 3-5: 17.2-19.6 s) | 196.10 / **189.42** |
198.09 (eager, same gaps) | render 10 (compile 136 s, 7 pauses) |
9.70-9.89 (9.85-9.97) | 8.86-8.95 |
| A100 #2 | 58.45 (renders 2-7: 3.4-4.8 s) | 57.70 / **52.42** | 56.08
(eager, same gaps) | render 10 (compile 74 s, 6 pauses) | 2.67-2.94
(2.79-2.81) | 2.25-2.30 |

- Stop latency: 23 of 26 pauses froze the compile mid-trace within
0.001-0.013 s. The other 3 stopped it within 0.16 s.
- On A100, 3 of the 14 head renders in that window ran above eager, by
0.03, 0.13 and 0.14 s (2.83 / 2.92 / 2.94 s). The other 11 were at or
below eager.
- The first compiled render (L4 10.13-10.16 s) includes the first
CUDA-graph capture. Base pays the same cost (10.33 s).

**A/A**

- Repeated eager arms: within 0.4 s per session on L4 and 0.4 s on A100.
- Repeated head arms: within 0.2 s per session back-to-back.
- Head r1 / r2 back-to-back: pixel-identical images (LPIPS 0 on all 20,
both cards).

**Images**

- Head back-to-back vs base, A100: identical on all 20 (LPIPS 0). Base
never compiled there.
- Head back-to-back vs base, L4: identical before base's compile
finished (9 of 20), compiled-vs-eager differences after (mean LPIPS
0.033, max 0.098). Base A/A shows the same split.
- With gaps on L4: head vs base 13 of 20 identical, mean 0.022.

**Another compiled family:** FLUX.2-klein-4B (4 steps, whole-model
compile path). Head and base give identical images (LPIPS 0, 6 of 6) and
the same times, 2 repeats each on A100 and L4:

- A100: 0.75-0.77 s per image on both.
- L4: 2.11-2.17 s per image on both.

## Tests

- New `tests/test_diffusion_bg_compile_idle.py`. Every test errors on
base (`IDLE_ENV` / `pause(freeze=)` do not exist there). Real dynamo
traces on CPU check that:
- a render freezes the compile inside a running trace within 0.2 s, with
no progress while the render holds the pause;
  - the event is off once parked;
  - the compiled output after resume matches eager;
  - the resume waits out the idle grace;
  - back-to-back pauses never wait and owe nothing;
  - without freeze, the compile parks at the next block boundary;
  - close ends a parked or a frozen compile;
- another thread compiling while the trace is frozen does not deadlock:
one thaw, then the compile freezes again;
- the frame refusal rules hold (a Studio frame is refused only inside
its lock block; `GraphedForward._eager` is not a lock block; the
memoised walk matches a fresh one);
  - the compile_lock proxy behaves like the RLock it wraps;
- the render-side routing is right (resident freezes, offloaded does
not, LoRA still waits).
- `tests/test_diffusion_unet_block_compile.py`: the slice-mode tests now
run with `UNSLOTH_DIFFUSION_BG_COMPILE_IDLE_ONLY=0` and still pass.
- Related suites (bg compile float seeds / state objects, U-Net block
compile, Z-Image CFG split, cold start, speed, block graph, CUDA graph,
offload CUDA graph, video i2v): 610 passed, 7 failed. The same 7 fail on
base:
`test_diffusion_cuda_graph.py::test_capture_then_replay_uses_one_graph_and_copies_statics`
(passes alone, order-dependent) and 6 in `test_video_i2v.py`.

## Not proven

- Renders 1-2 of a session are still slower than eager on base and head
alike: about +0.3 s at the 2nd image and +1.7-2.0 s at the 3rd (L4 11.7
s vs 9.8 s eager, A100 4.8 s vs 2.8 s). This is the deferred profile's
own cost: it warms the compile pool at the 2nd image, then at the 3rd
engages channels_last / fused QKV / fused VAE and pays a first fused VAE
decode of 1.5 s. It is not the background compile, and this change does
not touch it.
- The first head cell on each VM ran its engagement render at 17.1-17.5
s (L4) and 10.5 s (A100). Later head cells ran it at 11.7 s and 4.8 s.
This points to the first use of a fresh source tree on the VM, not to
this change. It was not isolated.
- A back-to-back client never gives the compile idle time, so it stays
at eager speed for the whole session (it never gets the compiled
speedup, 9.7 vs 8.9 s on L4).
- Freeze safety rests on a deny list of lock-taking modules and an AST
scan of Studio functions for `with ...lock...` blocks. Locks held by C++
code or by modules outside that list are not covered.
- Not every row ran the final code:
  - L4 #3 and A100 #2 ran the final code (base `d6ab4f64ac`).
- L4 #2 ran it before one deny-list change (base `d6ab4f64ac`):
`torch._inductor.async_compile` was still refused, which kept the
compile running beside 5 renders for 0.7-1.6 s, and structlog / rich
were added later.
- L4 #1, A100 #1 and the FLUX.2-klein rows ran an earlier revision (base
`b1b286c9b7`). In that revision every Studio CUDA-graph frame was
refused, so with idle gaps the compile was never frozen and ran beside
the renders (30-370 s renders); that is fixed in the final code. Its
back-to-back rows never reached that path: every pause found the compile
already parked at a block boundary.
- With the final code, no hang or slow render beyond the numbers above
was seen across the 9 SDXL cells of L4 #3 / A100 #2 (180 renders).
- One A100 run lost its disk mid-run (`OSError: [Errno 5] Input/output
error`), and its last cell hung with no output. It was counted as
infrastructure and rerun on a fresh VM (A100 #2). That hang was not
root-caused.
- Measured on L4 and A100 (Colab, Python 3.13, torch 2.13) only. Not
run: T4, H100, B200, AMD, Mac, Windows, Python 3.11 (where the
block-boundary fallback applies), offloaded SDXL budgets, LoRA sessions,
the HTTP server path (cells call `DiffusionBackend.generate` in
process).
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.

3 participants