fix(workflow): size auto tiles for the segment GPU's VRAM - #27
Merged
Conversation
Tile planning (prepare) runs on a CPU node, so it cannot query the segment GPU and falls back to an 8 GiB guess, logging "GPU memory query failed". Add a gpu_memory_gb config option forwarded to auto_tile_shape_cellpose so tiles are sized for the real GPU (e.g. 24, 40, 80) without a query or warning. null keeps the previous behaviour. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On SLURM the
prepare(tile planning) job runs on a CPU node, so it can't see the segment GPU. Withtile_shape: "auto"it logged:…and sized every tile for 8 GiB — harmless but under-utilises bigger GPUs.
Add a
gpu_memory_gbconfig field forwarded toauto_tile_shape_cellpose(gpu_memory=…)so tiles are sized for the real GPU (e.g.24,40,80) with no query and no warning.nullkeeps the old 8 GiB-guess behaviour. Documented in the config + guide.Test
auto_tile_shape_cellpose((64,4096,4096), do_3D=True, use_gpu=True, gpu_memory=24G)→(64,1753,1753)and emits no warning;gpu_memory=None→(64,915,915)with the fallback warning. Full local workflow run still 12/12.🤖 Generated with Claude Code