Skip to content

Add SharedDistSamplingBackend — multi-channel sampling backend#577

Draft
kmontemayor2-sc wants to merge 9 commits intomainfrom
kmonte/shared-backend-decomp-2
Draft

Add SharedDistSamplingBackend — multi-channel sampling backend#577
kmontemayor2-sc wants to merge 9 commits intomainfrom
kmonte/shared-backend-decomp-2

Conversation

@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator

@kmontemayor2-sc kmontemayor2-sc commented Apr 6, 2026

Part of a larger change to support multiple cleints reading from the same backend.
We do this for graph store mode so that we can have the "full" storage cluster backend rpc, which is required by GLT, but we can only "read" from one rank per client (this goes along with CONTIGUOUS).

Introduce SharedDistSamplingBackend which manages a pool of worker
processes servicing multiple compute-rank channels through a fair-queued
round-robin scheduler. This replaces the per-channel producer model in
graph-store mode with a shared backend + lightweight per-channel state.

Includes tests for pure business logic helpers (_compute_num_batches,
_epoch_batch_indices, _compute_worker_seeds_ranges), shuffle behavior,
and completion reporting.

kmonte and others added 2 commits April 6, 2026 20:59
…r.py

Move create_dist_sampler(), SamplerInput, and SamplerRuntime out of
dist_sampling_producer.py into a shared utils module so they can be
reused by the upcoming SharedDistSamplingBackend.

Also rename `w` -> `worker` in DistSamplingProducer.init() for clarity.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Introduce SharedDistSamplingBackend which manages a pool of worker
processes servicing multiple compute-rank channels through a fair-queued
round-robin scheduler. This replaces the per-channel producer model in
graph-store mode with a shared backend + lightweight per-channel state.

Includes tests for pure business logic helpers (_compute_num_batches,
_epoch_batch_indices, _compute_worker_seeds_ranges), shuffle behavior,
and completion reporting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator Author

/all_test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

GiGL Automation

@ 21:04:57UTC : 🔄 E2E Test started.

@ 22:26:32UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

GiGL Automation

@ 21:04:57UTC : 🔄 Scala Unit Test started.

@ 21:13:43UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

GiGL Automation

@ 21:04:58UTC : 🔄 Lint Test started.

@ 21:12:05UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

GiGL Automation

@ 21:05:00UTC : 🔄 Integration Test started.

@ 22:24:47UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

GiGL Automation

@ 21:05:00UTC : 🔄 Python Unit Test started.

@ 22:31:38UTC : ✅ Workflow completed successfully.

@kmontemayor2-sc kmontemayor2-sc changed the title Kmonte/shared backend decomp 2 Add SharedDistSamplingBackend — multi-channel sampling backend Apr 8, 2026
kmonte and others added 6 commits April 8, 2026 16:57
…r module docstring

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…sses

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants