Skip to content

feat(workflow): prefetch segmentation model for offline GPU nodes - #31

Merged
lguerard merged 1 commit into
mainfrom
feat/workflow-prefetch-model
Jun 25, 2026
Merged

feat(workflow): prefetch segmentation model for offline GPU nodes#31
lguerard merged 1 commit into
mainfrom
feat/workflow-prefetch-model

Conversation

@lguerard

Copy link
Copy Markdown
Contributor

The bug (caught by the new per-tile logs)

Segment jobs died with message: None / empty SLURM log. The per-tile log revealed the real trace:

cellpose/models.py → cache_model_path → download_url_to_file → urlopen
OSError: [Errno 101] Network is unreachable

scicore's GPU nodes have no internet, so Cellpose couldn't download the nuclei weights at run time. (Not GPU, not OOM — those were earlier red herrings; sacct showed MaxRSS ~1 GB, ExitCode 1.)

Fix

  • New fetch_model localrule — runs on the networked submit host, caches the model into shared $HOME/.cellpose before any GPU job. segment now depends on its model.ready marker. No-ops for method: threshold.
  • Listed under localrules: so it's never submitted to an offline node. Dedicated logs/fetch_model.log (avoids racing the sequential steps.log).
  • Fix pixi [project][workspace] deprecation.
  • Document offline-cluster + empty-log troubleshooting.

Test

Local run 13/13; fetch_model runs first as a localrule, logs/fetch_model.log captures its output, segment waits on model.ready. pixi.toml parses under [workspace].

🤖 Generated with Claude Code

…odes

Compute nodes without internet made Cellpose fail at run time while
downloading its weights ("Network is unreachable"). Add a fetch_model
localrule that runs on the (networked) submit host and caches the model
into shared $HOME before any GPU job; the segment rule now depends on it.
Its own log file avoids racing the shared steps.log.

Also fix the pixi [project] -> [workspace] deprecation warning and
document the offline-cluster and empty-SLURM-log cases.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lguerard
lguerard merged commit 8d5617f into main Jun 25, 2026
2 checks passed
@lguerard
lguerard deleted the feat/workflow-prefetch-model branch June 25, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant