model train-many: one launcher that owns an allocation and trains a queue of configs across its GPUs
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 18/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- infrastructure, machine-learning
Direzione di ricerca
Start from the existing leech model train entry point and the _grid_point_worker failure-handling pattern, then read how model_last.pt and model_resume.pt are written and resumed. The new train-many launcher needs one persistent worker per GPU fed from a queue, and it depends on the shared-memory corpus issue. Done means the five listed tests pass, including the bit-identical standalone match.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Allocations here arrive in bursts, and the preference is to use a held allocation fully, in one job. The pipeline instead submits one Slurm job per model (seed x arm x fold x pairwise pair). Each pays its own queue wait, ~3 min corpus load, and compile; a run that early-stops frees a GPU nobody refills; and --gpus 4 DDP gives only 2.25x end to end while one run already saturates an A30 at 95% (CLAUDE.md). For sweeps, four independent single-GPU runs give ~4x throughput.
Spec
Add leech model train-many: a launcher that owns the allocation and trains a queue of configs.
- Input:
--queue queue.json, a list of{output_dir, <TrainConfig fields>}sharing--train-data/--val-data. Output: one directory per config exactly asleech model trainwrites it. - Loads the corpus once (depends on the shared-memory corpus issue), starts one persistent worker per visible GPU pinned to
cuda:i, and feeds workers from a queue so a worker finishing or early-stopping immediately takes the next config. - Each config runs the unmodified single-GPU trainer with its own seeded sampler. Never share a DataLoader, sampler or batch stream between models: a run in the pool must be bit-identical to the same run standalone.
- Failure isolation: an exception in one config is recorded (
status: failed+ traceback in that config's dir) and the queue continues (cf._grid_point_worker). Exit non-zero at the end if any config failed. - Walltime: read
SLURM_JOB_END_TIME; do not start a config whose expected duration (median of completed siblings; unknown until one completes) exceeds the time left. Skipped configs are listed in the summary. - Resume: on restart, skip dirs with
model_last.pt, resume dirs withmodel_resume.pt(passing--resumeas today, so the recipe/corpus fingerprint guard still applies).model_resume.ptstays undeclared as a Snakemake output. - CPU budget: require
cpus_per_task >= n_gpus * (1 + num_workers); refuse with that message otherwise. - Write
train_many_summary.json(config -> status, device, wall time, best metric). - Pipeline: a
train_sweep_{pair}rule owns the allocation (queue asparams, outputs are the per-configmetrics.jsonfiles). Prefer this to Snakemakegroup:jobs, which are separate processes and cannot share the corpus.
Acceptance criteria
- Four configs on a 4-GPU node run concurrently on four distinct devices; a fifth starts on the first GPU to free.
- Per-config
model_best.ptis bit-identical to a standalone same-seedleech model trainrun. - One deliberately failing config does not stop the others and yields a non-zero overall exit.
- Killed mid-run and restarted: finished configs are skipped, in-flight ones resume.
- A config is not started when it cannot finish before
SLURM_JOB_END_TIME.
Tests
test_train_many_assigns_distinct_devices(CPU stand-in devices)test_train_many_isolates_failurestest_train_many_resumes_and_skips_completetest_train_many_respects_walltime_budgettest_train_many_matches_standalone_run
Blocked by / non-goals
- Blocked by the shared-memory corpus issue (without it, N workers hold N corpus copies).
- Not packing multiple models onto one GPU, not multi-node, not changing any recipe.
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 0
- Merge medio
- 11h 17m
- PR unite (30g)
- 23
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rnabioco/leech
-
load_model_from_checkpoint drops num_out/signal_in_channels for models whose __init__ takes **kwargsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 Più di una settimana Idoneità per principianti 18/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di rnabioco/leech
Issue simili
-
ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
accepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
future-agi/future-agi#5070 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
juandresrodca/AdminForge#69 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
deepset-ai/haystack-integrations#817 ·
I maintainer di solito rispondono entro 12 giorni
-
[Bug]: test_remote_realpath_uses_argument_vector fails on Windows with Python 3.13+ (ntpath.isabs)Forse già presa @gouyu-hou l’ha presa oggi. Apertatriage/confirmed
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
agentscope-ai/agentscope#4397 ·
I maintainer di solito rispondono entro 2 giorni