Repository navigation
Conversation
Contributor
|
jioffe502
marked this pull request as draft
September 23, 2026 03:40
3 tasks done
jioffe502
force-pushed
the
jioffe502/elastic-embedding-actor-pools
branch
from
October 12, 2026 20:43
435b74f to
42014a5
Compare
Contributor
|
Closing. The embed tail this targeted is fixed by #2837 (async vLLM + 4 batches in flight per actor), which keeps each engine's GPU busy instead of adding engines. A controller that grew embed engines this way was neutral on top of #2837 on ViDoRe, bo767 and dc10k at 8 GPUs, and a 5th engine on 1 GPU gave only +1.3%. |
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
Expose an opt-in bounded embedding actor pool for batch/Ray Data, using Ray's native actor-pool autoscaling. Existing defaults and fixed
embed_workersbehavior are unchanged.embed_workers_min,embed_workers_initial, andembed_workers_maxto batch tuning and programmatic ingest-plan options.(minimum, maximum, initial)concurrency contract. Initial resource admission budgets the initial count without reserving or clamping the maximum.IngestEmbedBatchOptionsandbuild_embed_option_kwargsarguments; new builder bounds are keyword-only.nemo_agent/agent.pyrequired by the repository-wide formatter, alongside the new validator's formatting fix.No adaptive default, payback controller, global Ray patch, release gate, device-placement guarantee, Helm change, or new dedicated CLI flag is included.
Validation
git diff --checkpasses.435b74f03repository unit tests, pre-commit, slim imports, Windows/macOS installs and automated review pass. Docker build/test is still in progress; aggregate validation awaits it. All code checks, including Docker, passed on preceding heada28c932b9.Why the boundary is native opt-in controls
The accompanying investigation found concrete reasons not to promote the experimental phase-aware controller/default:
Research GPU runs use a pinned historical Retriever source, not this current-main PR revision. They establish the promotion boundary, not an end-to-end performance claim for this PR. The BRIGHT wall-time comparison is additionally cold/warm-cache confounded.
Completed bounded correctness matrix
Values below are fixed → elastic/calibrated. Recall@5 and nDCG@10 are primary; Recall@10 is always reported.
The new text pairs preserve every official retrieval ID, with one vector per document and no new chunking. They use shared frozen query vectors, exact float64 L2 retrieval with stable-ID tie ordering, and checked NeMo/TREC evaluator parity. All output vectors are finite, nonzero, normalized, and uniquely identified. BO767 is a read-only saved-artifact diagnosis, not an unjustified new confirmation run.
BrowseComp includes all 100,195 documents and 830 queries. Both successful arms keep the first 8192 tokens of the prefixed model input (right truncation). An earlier unbounded launch failed closed because the historical VL wrapper ignored its requested input-length setting; the failure is retained and is not a quality retry.
The warmed-cache BrowseComp pair demonstrates useful embedding-plus-parquet scaling: 3248.096 → 2212.881 seconds (31.87% less time; 46.78% more documents/second), and 697.653 → 635.958 sampled GPU Wh (8.84% less). This is one bounded pair, not a full-ingest, controller-payback, statistical, or cross-hardware guarantee. Four actors use two physical GPUs; six use three. No Ray task failures, actor restarts, or object-store spill occurred; cleanup passed.
BrowseComp has no per-query primary-metric loss in either qrel set. Eleven exact top-10 lists change only at unjudged documents. Deeper recall is not invariant: query 1224/document 72114 moves from rank 99 to 105, reducing Recall@100 while Recall@1000 is unchanged. All 3153 observed Ray batch boundaries match; corpus inference is the first isolated divergence before any ANN index. A specific internal kernel cause is not claimed.
Safety remains profile-specific: sampled peak memory reaches 45,042/46,068 MiB with only 1,026 MiB headroom. Logical fractional-GPU reservations are not a memory-safety envelope. Together with the BO767 quality failure and missing controller release/replay/isolation contracts, the evidence supports native opt-in controls and does not support an adaptive default or the experimental controller in this PR.