mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2378] setup --calibrate dies with 'there is no GPU 0,1' on a dual-GPU config using the string gpu form #962
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#962
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MEsfits on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2378
What happens
./setup.sh --calibrateon a dual-GPU config whose JSON carries"gpu": "0,1"(the string form) runs all measurement rounds to completion, then dies at the save step:Repro: any dual config with
"gpu": "0,1"+"layer_split": "auto"(e.g. hand-cloned from a setup-written one, or any config where the value stayed a string). Single-GPU and list-form ([0, 1]) configs save fine.Root cause
hardware_key()insetup.pypasses the raw config value togpu_info(), which matches one card by number:A string
"0,1"is not a list, so it is looked up whole as one GPU id and matches nothing. Note the server (serve/server.py:gpu_list()) already splits the string form, so configs like this start and serve fine — only setup's save path chokes.Same class of bug one function down in
recommend_remote_expert_opt():if not isinstance(cfg.get("gpu"), list) ...silently skips the helper-cache opt for string-form dual configs instead of applying it like the list form.Collateral damage (worth fixing alongside)
The crash lands after a partial config write. Observed on the victim file: tier-measurement leftovers baked in (
--adapt-every 1 --adapt-swaps 160 --adapt-decay 0.97) while previously tuned flags were wiped (--pcie-fracgone,--spec-min-pback to default). A failed save should leave the user's config byte-identical — write atomically (temp + rename) or not at all.Suggested fix
Normalize once, at the boundary (verified locally against this repo):
hardware_key():sel = cfg.get("gpu"); if isinstance(sel, str): sel = gpu_sel(sel)(keepNoneflowing tohip_config_cards, where it means "default card" — normalizing it to[]breakstest_no_gpu_in_the_config_is_the_supported_card_with_the_most_vram, found that the hard way).recommend_remote_expert_opt():if len(gpu_sel(cfg.get("gpu"))) < 2: return.Verified: string
"0,1"now yields the identical hardware key as[0, 1]; single-int, single-string, and missing-key forms unchanged; all 36test_setup_amd.pytests pass; fulltest_setup_*.pyrun (583 tests) shows only the same 10 pre-existing environment failures as unmodified code (confirmed viagit stashA/B).Happy to open this as a PR if you want the patch as-is.
@MEsfits commented on GitHub (Oct 14, 2026):
PR open: #2380
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.