[PR #2380] [CLOSED] setup: calibrate a dual config whose gpu is the string 0,1 #4014

Closed
opened 2026-11-07 15:32:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2380
Author: @MEsfits
Created: 10/14/2026
Status: ❌ Closed

Base: main ← Head: fix-calibrate-string-gpu


📝 Commits (1)

  • 01cb90d setup: calibrate a dual config whose gpu is the string 0,1 (#2378)

📊 Changes

2 files changed (+31 additions, -2 deletions)

View changed files

📝 setup.py (+20 -2)
📝 tools/test_setup_amd.py (+11 -0)

📄 Description

Fixes #2378.

hardware_key() passed the config's raw "gpu" value to gpu_info(), which matches a single card by number — so ./setup.sh --calibrate on a dual config with "gpu": "0,1" ran every measurement round, then died with there is no GPU 0,1 at the save step (and left tier-measurement flags half-written into the user's file).

  • New gpu_sel() normalizes 0, [0, 2] and "0,2" (the string form serve already splits); hardware_key() uses it for the string case, keeping None flowing to hip_config_cards where it means "default card".
  • recommend_remote_expert_opt() uses it too instead of silently skipping string-form duals with a helper cache.
  • Regression test test_nvidia_string_dual_keys_like_the_list in CalibrationKey.

Verified: string "0,1" yields the identical key as [0, 1]; single-int, single-string, and missing-key forms unchanged; all 36 test_setup_amd.py tests pass; full test_setup_*.py (583 tests) shows only the same 10 pre-existing environment failures as unmodified code (stash A/B).

Tested live on 2x RTX 3090 (24GB): the previously crashing save path now completes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2380 **Author:** [@MEsfits](https://github.com/MEsfits) **Created:** 10/14/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-calibrate-string-gpu` --- ### 📝 Commits (1) - [`01cb90d`](https://github.com/Niko1221/Strata/commit/01cb90dcd7651f6d7420d36afd90d5b90cce3557) setup: calibrate a dual config whose gpu is the string 0,1 (#2378) ### 📊 Changes **2 files changed** (+31 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+20 -2) 📝 `tools/test_setup_amd.py` (+11 -0) </details> ### 📄 Description Fixes #2378. `hardware_key()` passed the config's raw `"gpu"` value to `gpu_info()`, which matches a single card by number — so `./setup.sh --calibrate` on a dual config with `"gpu": "0,1"` ran every measurement round, then died with `there is no GPU 0,1` at the save step (and left tier-measurement flags half-written into the user's file). - New `gpu_sel()` normalizes `0`, `[0, 2]` and `"0,2"` (the string form `serve` already splits); `hardware_key()` uses it for the string case, keeping `None` flowing to `hip_config_cards` where it means "default card". - `recommend_remote_expert_opt()` uses it too instead of silently skipping string-form duals with a helper cache. - Regression test `test_nvidia_string_dual_keys_like_the_list` in `CalibrationKey`. Verified: string `"0,1"` yields the identical key as `[0, 1]`; single-int, single-string, and missing-key forms unchanged; all 36 `test_setup_amd.py` tests pass; full `test_setup_*.py` (583 tests) shows only the same 10 pre-existing environment failures as unmodified code (stash A/B). Tested live on 2x RTX 3090 (24GB): the previously crashing save path now completes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:32:28 +07:00
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#4014
No description provided.