Ci/multiprocessing dataloader tests#29
Merged
Merged
Conversation
ivanbasov
approved these changes
Mar 25, 2026
c015f05 to
2db609e
Compare
Production defaults use num_workers=4 with spawn multiprocessing, but all CI jobs and tests forced num_workers=0. Add coverage for both layers: - New test (test_dataloader_multiprocessing.py): verifies the Stim inference datapipe is pickle-safe and produces correct results with num_workers=2 across X, Z, and mixed bases. Runs on CPU in a dedicated ci.yml job. - New ci-gpu.yml step: re-runs inference with PREDECODER_INFERENCE_NUM_WORKERS=2 after the existing smoke run, exercising the full logical_error_rate.py pipeline (multi-worker DataLoader → model forward → PyMatching → LER check). Signed-off-by: kvmto <kmato@nvidia.com>
2db609e to
2b014d3
Compare
2 tasks
ivanbasov
pushed a commit
that referenced
this pull request
Apr 10, 2026
Production defaults use num_workers=4 with spawn multiprocessing, but all CI jobs and tests forced num_workers=0. Add coverage for both layers: - New test (test_dataloader_multiprocessing.py): verifies the Stim inference datapipe is pickle-safe and produces correct results with num_workers=2 across X, Z, and mixed bases. Runs on CPU in a dedicated ci.yml job. - New ci-gpu.yml step: re-runs inference with PREDECODER_INFERENCE_NUM_WORKERS=2 after the existing smoke run, exercising the full logical_error_rate.py pipeline (multi-worker DataLoader → model forward → PyMatching → LER check). Signed-off-by: kvmto <kmato@nvidia.com>
ivanbasov
pushed a commit
that referenced
this pull request
Apr 10, 2026
Production defaults use num_workers=4 with spawn multiprocessing, but all CI jobs and tests forced num_workers=0. Add coverage for both layers: - New test (test_dataloader_multiprocessing.py): verifies the Stim inference datapipe is pickle-safe and produces correct results with num_workers=2 across X, Z, and mixed bases. Runs on CPU in a dedicated ci.yml job. - New ci-gpu.yml step: re-runs inference with PREDECODER_INFERENCE_NUM_WORKERS=2 after the existing smoke run, exercising the full logical_error_rate.py pipeline (multi-worker DataLoader → model forward → PyMatching → LER check). Signed-off-by: kvmto <kmato@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
test_dataloader_multiprocessing.py: verifies the Stim inference datapipe works withnum_workers=2and spawn multiprocessing (X, Z, mixed bases). CPU-only.multiprocessing-dataloaderjob toci.ymlto run the above on every push/PR.ci-gpu.ymlgpu-teststhat re-runs withPREDECODER_INFERENCE_NUM_WORKERS=2, exercising the fulllogical_error_rate.pypipeline with multi-worker loading.Production defaults use
num_workers=4, but all CI and tests previously forcednum_workers=0.Test plan
multiprocessing-dataloaderjob passesgpu-testsmulti-worker inference step passes