[GH-ISSUE #4524] [Engine] STRATA_CKPT_ASYNC on a CUDA layer split: checkpoint copies fail (invalid resource handle), then the engine dies #2039

Closed
opened 2026-11-04 01:56:10 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @coryjett on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4524

Area

Engine

Desktop app, Terminal or source?

Terminal (Linux release 0.2.7, engine 0.1.52); the same engine code is on main at 46c152a1.

What happened

With STRATA_CKPT_ASYNC=1 (plus STRATA_CKPT_POOL=1 STRATA_CKPT_THREADS=1 STRATA_PARK_TRACE=1) on a two-card CUDA
layer split, the first checkpoint copies fail and the engine ends up in a sticky CUDA error:

strata parktrace: async ckpt d2d 49.67 ms
strata parktrace: save small copies 4.91 ms
strata: STRATA_CKPT_ASYNC: a checkpoint copy failed (invalid resource handle)
... (11 of these over the run)
strata serve: checkpoint save: conversation snapshot running-state copy: unspecified launch failure
strata serve: saving a checkpoint part failed
[strata] 2026-10-28 17:48:35 engine started: .../0.1.52-linux-x86_64-cuda-cuda13/strata --serve ...

After the first failure every request ran 60-80 s and returned no tokens (the client saw 503s); after the
"unspecified launch failure" the server restarted the engine. The model also took 227 s to load against 91 s for the
same profile without the variables. Without STRATA_CKPT_ASYNC the same profile ran four other arms the same hour
without an error.

docs/DETAILS.md (~1501) measured STRATA_CKPT_ASYNC on one RTX 3090 (73 -> 62 ms per checkpoint). On a split the
checkpoint's K/V lives on two devices; "invalid resource handle" looks like a stream or event used on the wrong device
(unconfirmed static analysis: I have not traced the copy path). Either the option should refuse a layer split with a
reason line, as other single-GPU options do, or the stage copy needs the right device current.

Smallest steps or command that reproduce it

Serve Flash-Next IQ3_S on two NVIDIA cards ("gpu": [0, 1], "layer_split": "25", --trim-stage-weights,
conversation cache on) with STRATA_CKPT_ASYNC=1 in the engine environment; send a ~60K-token prompt followed by a
few short turns on the same conversation (the first checkpoint saves trigger it).

Reproduction status

Reproduced locally, once (one sweep arm, 2 runs, both dead after the first failure). Full engine log kept. The four
variables were set together; the failing line names STRATA_CKPT_ASYNC itself, but I have not yet run it alone. Happy
to do that isolation run (about 15 minutes) if useful.

Strata version

0.2.7 (engine 0.1.52, Control 0.1.52).

Graphics card, memory and system

2x RTX 3090 24 GB (PCIe 3.0 x16, one per socket), 2x Xeon E5-2620 v3, 256 GB, Ubuntu 26.10, driver 580.178.04, CUDA 13.

Model, size and settings

Flash-Next IQ3_S, layer split 25 with --trim-stage-weights, --expert-cache auto (arena), conversation cache
40 GiB / 16 slots, --prefill 16384, MTP --spec 4; the full profile is in #4468.

Logs

The lines above; the whole engine log (about 3,000 lines) on request.

Originally created by @coryjett on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4524 ### Area Engine ### Desktop app, Terminal or source? Terminal (Linux release 0.2.7, engine 0.1.52); the same engine code is on `main` at 46c152a1. ### What happened With `STRATA_CKPT_ASYNC=1` (plus `STRATA_CKPT_POOL=1 STRATA_CKPT_THREADS=1 STRATA_PARK_TRACE=1`) on a two-card CUDA layer split, the first checkpoint copies fail and the engine ends up in a sticky CUDA error: ``` strata parktrace: async ckpt d2d 49.67 ms strata parktrace: save small copies 4.91 ms strata: STRATA_CKPT_ASYNC: a checkpoint copy failed (invalid resource handle) ... (11 of these over the run) strata serve: checkpoint save: conversation snapshot running-state copy: unspecified launch failure strata serve: saving a checkpoint part failed [strata] 2026-10-28 17:48:35 engine started: .../0.1.52-linux-x86_64-cuda-cuda13/strata --serve ... ``` After the first failure every request ran 60-80 s and returned no tokens (the client saw 503s); after the "unspecified launch failure" the server restarted the engine. The model also took 227 s to load against 91 s for the same profile without the variables. Without `STRATA_CKPT_ASYNC` the same profile ran four other arms the same hour without an error. docs/DETAILS.md (~1501) measured `STRATA_CKPT_ASYNC` on one RTX 3090 (73 -> 62 ms per checkpoint). On a split the checkpoint's K/V lives on two devices; "invalid resource handle" looks like a stream or event used on the wrong device (unconfirmed static analysis: I have not traced the copy path). Either the option should refuse a layer split with a reason line, as other single-GPU options do, or the stage copy needs the right device current. ### Smallest steps or command that reproduce it Serve Flash-Next IQ3_S on two NVIDIA cards (`"gpu": [0, 1]`, `"layer_split": "25"`, `--trim-stage-weights`, conversation cache on) with `STRATA_CKPT_ASYNC=1` in the engine environment; send a ~60K-token prompt followed by a few short turns on the same conversation (the first checkpoint saves trigger it). ### Reproduction status Reproduced locally, once (one sweep arm, 2 runs, both dead after the first failure). Full engine log kept. The four variables were set together; the failing line names `STRATA_CKPT_ASYNC` itself, but I have not yet run it alone. Happy to do that isolation run (about 15 minutes) if useful. ### Strata version 0.2.7 (engine 0.1.52, Control 0.1.52). ### Graphics card, memory and system 2x RTX 3090 24 GB (PCIe 3.0 x16, one per socket), 2x Xeon E5-2620 v3, 256 GB, Ubuntu 26.10, driver 580.178.04, CUDA 13. ### Model, size and settings Flash-Next IQ3_S, layer split 25 with `--trim-stage-weights`, `--expert-cache auto` (arena), conversation cache 40 GiB / 16 slots, `--prefill 16384`, MTP `--spec 4`; the full profile is in #4468. ### Logs The lines above; the whole engine log (about 3,000 lines) on request.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660592440 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2039
No description provided.