dataset: split `LeechDataset` into a frozen `TensorCorpus` and an augmenting dataset; block-only twins; batched cross-layer augmentation
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
- 8/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Área
- data-engineering
Línea de trabajo
Start with src/leech/dataset.py, where LeechDataset spans lines 510-1941, and the row/block twin pairs listed in the issue. Read tests/test_dataset_streaming.py::TestBlockFillParity and tests/test_backend_parity.py to see what is currently held equal. Done means TensorCorpus and LeechDataset are split with no external _private access, the parity tests become golden fixtures, and the existing training-equivalence tests pass unchanged.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Tier P3 · effort L · from the 2026-09-13 review (training F6, F7; models F9)
LeechDataset (src/leech/dataset.py:510-1941, 1,430 lines; __init__ 369
lines, 21 parameters, 22 fields) is a corpus loader (_ArrayStream,
_TensorFill, row and block fill, CSR expansion, the encoding-coverage
decision), a tensor store, and an augmenter. External code reaches into its
privates: resolve_val_dataloader_workers reads _signals_tensor
(dataset.py:2064), train_model reads train_dataset.chunks[0], benchmark
iterates dataset.chunks. model_type is only used to look up two
hand-maintained name sets. Four rules exist as row/block twins held bit-equal
by tests/test_dataset_streaming.py::TestBlockFillParity:
_prepare_signal/_prepare_signals_block (1415/1267),
_prepare_features/_prepare_features_block (1489/1314),
_encode_sequence/_encode_sequences_block (1665/1253),
_apply_augmentation/_apply_augmentation_batch (1539/1904). Enabling
--augment-shift-max-bases or --augment-time-mask-bases disables
__getitems__ entirely (dataset.py:1856-1857), the measured 9× cliff.
append_dwell_template_channels (dataset.py:186-229) is a Python double
loop with no test and no Rust counterpart.
Acceptance criteria
TensorCorpus(frozen: one contiguous tensor per field, a metadataChunkTable,effective_seq_encoding,is_contiguous), built byTensorCorpus.from_npz(...)/.from_chunks(...);LeechDataset(corpus, augment: AugmentConfig | None, *, needs_features, wide_features)only indexes and augments. No external module reads a_privateattribute of either (test with a grep-based assertion or__slots__).- The block form is the implementation; the row form is
block(x[None])[0];TestBlockFillParitybecomes golden-fixture tests (saved expected tensors), so the reference is data, not a second implementation._block_fill_supportedshrinks accordingly. - Cross-layer shift and time mask draw
(B,)parameters and apply with gather/mask tensors on the batched path;__getitems__is never disabled by an augmentation. append_dwell_template_channelsis vectorised and tested, andtests/test_backend_parity.pynotes it as Python-only (or it gains a Rust twin).- The fork-shares-contiguous-buffers invariant and the numpy-gather rule are preserved and asserted by the existing tests; peak RSS at load on the fixture is unchanged or lower (record it).
Non-goals
- Changing any tensor value:
test_train_epoch_matches_host_side_referenceand the streaming parity tests must pass unchanged.
- 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
-
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
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