merge: store one corpus per prepare config and represent splits/folds as row-index files
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 18/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- data-engineering
Línea de trabajo
Start with _merge_arrays_by_split and _merge_folds in src/leech/splitting/splitter.py, then trace how LeechDataset and _ArrayStream.keep consume the split files. The spec lists five tests to add, including bit-identical model_best.pt against legacy splits. Done means one merged corpus plus split_rows.npz, legacy directories still loading, and all five tests passing. Coordinate with #411 and #289 first.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
leech data merge writes train, val and test as three full copies of the corpus (_merge_arrays_by_split, src/leech/splitting/splitter.py), and --k-fold K writes K full copies (_merge_folds). Grid-search and ablation rules re-prepare and re-merge on top (grid_search.smk, ablation.smk). With home at 106% of quota and 36.5 GiB per production corpus, the same bytes are stored 3-5 times, and "a derived corpus is a function of its config; write it once" is the repo owner's standing rule.
Spec
Store one corpus per prepare config and represent each split as a row-index file over it.
mergeemits the merged corpus once plussplit_rows.npz(train,val,testint64 row indices; for k-fold,fold_{k}_train/val) and the existingsplit_runs.json. The merge's member-set validation and run-holdout logic stay inside_merge_arrays_by_split(CLAUDE.md: no second merge).LeechDatasetaccepts(corpus_path, rows); it already selects by mask (_ArrayStream.keep,ChunkTable.select), so extend that to take an index array and preserve row order.- Per-input label/
source_groupoverrides (-i label=file.npz) become per-row columns in the merged corpus so they survive without per-split copies. - Backwards compatible: existing three-file split directories keep loading; a one-line log states which layout was read.
eval test,predict, bundling andsplit_runs.jsonconsumers work with both. - Coordinate with #411 (
--split-from DIR): that flag should readsplit_rows.npzdirectly in the new layout and keep the current behaviour for old layouts. Do not duplicate the work of #289 (streaming through the spill).
Acceptance criteria
data mergeon a fixture writes one corpus + index file; total stored bytes ~1x the corpus (was ~1x per split, i.e. train+val+test copies, and K copies for k-fold).- Training on
(corpus, rows)yields bit-identicalmodel_best.ptto training on the legacy per-split files for the same seed. - A held-out run in
split_runs.jsonhas none of its rows intrain/valindex sets. - Legacy split directories still load and evaluate.
Tests
test_merge_writes_single_corpus_and_row_indextest_dataset_from_rows_matches_legacy_split_filestest_kfold_rows_partition_corpustest_run_holdout_rows_disjoint_from_traintest_legacy_split_layout_still_loads
Non-goals
- fp16 storage, mmap, or any change to the chunk format (
CHUNK_FIELDS, #288). - Removing the legacy layout reader in this change.
- 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
-
model train-many: one launcher that owns an allocation and trains a queue of configs across its GPUsAbierto
Dificultad 5/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
-
docs: powerpc not supportedAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
microsoft/TokenEconomizer#360 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
reasons-gate
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
benthomasson/reasons-service#190 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día