model train-many: one launcher that owns an allocation and trains a queue of configs across its GPUs
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 18/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- python
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 11 h 17 min
- PR fusionados (30 d)
- 23
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rnabioco/leech
-
load_model_from_checkpoint drops num_out/signal_in_channels for models whose __init__ takes **kwargsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 Más de una semana Aptitud para principiantes 18/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
Los mantenedores suelen responder en 1 día
Todos los issues de rnabioco/leech
Issues similares
-
difficulty:1 documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MakazhanAlpamys/Soup#3533 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
onyx-dot-app/onyx#18730 ·
Los mantenedores suelen responder en 1 día
-
Claiming namespace `aadml`Abiertonamespace team:operations
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
EclipseFdn/open-vsx.org#16509 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
langflow-ai/langflow#16689 ·
Los mantenedores suelen responder en 1 día
-
ScoringSystem.get() and compute() return NotImplementedError instead of raising itPosiblemente ocupada @sc-lacanlale la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
aboutcode-org/vulnerablecode#2552 ·
Los mantenedores suelen responder en 5 días