[PR #450] [CLOSED] calibrate: a gpu list is not a layer split (#447) #2644

Closed
opened 2026-11-04 02:02:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/450
Author: @EdderTalmor
Created: 10/2/2026
Status: ❌ Closed

Base: main ← Head: fix/calibrate-helper-gpu-447


📝 Commits (1)

  • 6f71725 calibrate: a gpu list is not a layer split (#447)

📊 Changes

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

View changed files

📝 tools/calibrate.py (+15 -2)
📝 tools/test_calibrate.py (+16 -0)

📄 Description

Fixes #447.

tools/calibrate.py read "the config has a gpu list" as "this model splits layers across several cards" and appended --layer-split auto. A gpu list does not imply a split: the helper-GPU expert tier (--expert-cache-deviceN, docs/SECOND_GPU.md) runs one stage on one card with a second card visible for the tier, and the engine rejects --expert-cache-remote together with a layer split — so --calibrate exited before the sweep started and left the machine uncalibrated with only a warning line.

The fix mirrors serve.server.engine_args(): append the split only when several cards actually run stages (len(gpu_list(cfg)) > 1). Extracted as split_args(cfg) so it is testable without a GPU.

Tests added (tools/test_calibrate.py): the helper-tier config gets no split, a real multi-card split still gets auto", an explicit --layer-split` in the config is left as it is. Full suite passes: 12/12.

Verified on the reporter's setup shape: gpu: [0] + CUDA_VISIBLE_DEVICES: "0,1" + --expert-cache-device1 — the sweep now starts and writes the calibration record.


🔄 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/450 **Author:** [@EdderTalmor](https://github.com/EdderTalmor) **Created:** 10/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/calibrate-helper-gpu-447` --- ### 📝 Commits (1) - [`6f71725`](https://github.com/Niko1221/Strata/commit/6f71725781107eb7a661610ab38c7c1f70a4f0cf) calibrate: a gpu list is not a layer split (#447) ### 📊 Changes **2 files changed** (+31 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/calibrate.py` (+15 -2) 📝 `tools/test_calibrate.py` (+16 -0) </details> ### 📄 Description Fixes #447. `tools/calibrate.py` read "the config has a `gpu` list" as "this model splits layers across several cards" and appended `--layer-split auto`. A `gpu` list does not imply a split: the helper-GPU expert tier (`--expert-cache-deviceN`, docs/SECOND_GPU.md) runs one stage on one card with a second card visible for the tier, and the engine rejects `--expert-cache-remote` together with a layer split — so `--calibrate` exited before the sweep started and left the machine uncalibrated with only a warning line. The fix mirrors `serve.server.engine_args()`: append the split only when several cards actually run stages (`len(gpu_list(cfg)) > 1`). Extracted as `split_args(cfg)` so it is testable without a GPU. Tests added (`tools/test_calibrate.py`): the helper-tier config gets no split, a real multi-card split still gets `auto", an explicit `--layer-split` in the config is left as it is. Full suite passes: 12/12. Verified on the reporter's setup shape: `gpu: [0]` + `CUDA_VISIBLE_DEVICES: "0,1"` + `--expert-cache-device1` — the sweep now starts and writes the calibration record. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:02:01 +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#2644
No description provided.