Repository navigation
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
[Medium impact] The change affects actor sizing in batch ingestion workflows. The PR still needs the existing fix for captioned ingestion on a 2-GPU cluster before merging. Findings
Fix with agent prompt### Issue 1
nemo_retriever/src/nemo_retriever/graph/ingestor_runtime.py:323-327
On a 2-GPU cluster, local captioning, local embedding, and all three extraction stages cannot start with elastic extraction. Each extraction pool now requires at least 2 actors, reserving 0.6 GPUs together. Captioning needs 1 GPU and embedding needs another 0.5, so preflight rejects the 2.1-GPU minimum before processing any documents.
Fixed mode can fit this configuration because each extraction pool can shrink to 1 actor. Adjust the extraction minimums to fit the shared caption and embedding budget.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryAdds opt-in elastic actor pools for batch extraction and embedding.
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…overrides Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
42a90df to
89c101c
Compare
| _set_elastic_pool( | ||
| ocr_actor_name, | ||
| plan.ocr_min_actors, | ||
| plan.ocr_max_actors, | ||
| plan.ocr_initial_actors, |
There was a problem hiding this comment.
Captioned ingestion cannot start
On a 2-GPU cluster, local captioning, local embedding, and all three extraction stages cannot start with elastic extraction. Each extraction pool now requires at least 2 actors, reserving 0.6 GPUs together. Captioning needs 1 GPU and embedding needs another 0.5, so preflight rejects the 2.1-GPU minimum before processing any documents.
Fixed mode can fit this configuration because each extraction pool can shrink to 1 actor. Adjust the extraction minimums to fit the shared caption and embedding budget.
Knowledge Base Used: Graph construction and execution
Prompt To Fix With AI
This is a comment left during a code review.
Path: nemo_retriever/src/nemo_retriever/graph/ingestor_runtime.py
Line: 316-320
Comment:
**Captioned ingestion cannot start**
On a 2-GPU cluster, local captioning, local embedding, and all three extraction stages cannot start with elastic extraction. Each extraction pool now requires at least 2 actors, reserving 0.6 GPUs together. Captioning needs 1 GPU and embedding needs another 0.5, so preflight rejects the 2.1-GPU minimum before processing any documents.
Fixed mode can fit this configuration because each extraction pool can shrink to 1 actor. Adjust the extraction minimums to fit the shared caption and embedding budget.
**Knowledge Base Used:** [Graph construction and execution](https://app.greptile.com/nvidia-public-github/-/custom-context/knowledge-base/nvidia/nemo-retriever/-/docs/graph-construction-and-execution.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
# Conflicts: # nemo_retriever/src/nemo_retriever/common/params/utils.py # nemo_retriever/src/nemo_retriever/graph/ingestor_runtime.py # nemo_retriever/src/nemo_retriever/ingest/plan.py # nemo_retriever/tests/test_ingest_plans.py
|
Closing. Its own campaign was mixed (gain on 1x H100, none on 2x H200, OCR OOMs on 4x L40S), and Ray Data's native autoscaler doesn't fit our GPU pools: it adds 1 actor per decision at ~1.75 slot occupancy, packed fractional embed actors onto one GPU, and vLLM engines added later fail the free-memory check or OOM. The embed side is covered by #2837. |
Description
Adds an opt-in
actor_pool_mode("fixed"default |"elastic") toBatchTuningParams, carried onIngestExtractBatchOptions/IngestEmbedBatchOptionsasingest.extract.batch.actor_pool_modeandingest.embed.batch.actor_pool_mode, so external benchmark runners (e.g. NRBlibrary.settings) can set them. The NRL harness that used to validate these override paths was removed frommainin #2777, so this PR no longer touches it.Today
resolve_requested_plancomputes per-stage min/initial/max actor counts, butbatch_tuning_to_node_overridessends only*_initial_actorsto Ray as a fixed count. Withelastic, stages that have no explicit worker count get Ray's native(min, max, initial)tuple from the existing heuristic bounds:PageElementDetectionActor, the OCR actor,TableStructureActor_BatchEmbedActor(stays fixed when local captioning recomputes its budget;min == maxemits a plain int, so single-GPU embed is unchanged)Preflight (
_preflight_executor_nodes) admitsminfor elastic pools, plans the startup count up toinitialwithin the budget, and leavesmaxuntouched so Ray can grow into resources released later. The internalelastic_poolmarker is never forwarded tomap_batches. Explicit*_workers, remote endpoints, CPU-only runs, GPU fractions, and all non-elastic auto tuples (e.g.StoreOperator) behave exactly as before.Example on a 2-GPU cluster: PE
(2, 20, 6), OCR(2, 20, 6), embed(2, 8, 4), compared with fixed6 / 6 / 4today.Related: #2741 and #2756 add explicit per-stage bounds; this switch reuses the heuristic bounds instead. Exploratory: NRB BO767 campaigns showed mixed results (a gain on 1× H100, no gain on 2× H200, OCR OOMs on 4× L40S), so this isn't proposed for merge as-is.
Checklist
Link to Devin session: https://nvidia-cloud.devinenterprise.com/sessions/8c8e73611f52484a97367e37465678e3
Open in Devin Desktop: https://nvidia-cloud.devinenterprise.com/desktop/session/8c8e73611f52484a97367e37465678e3?variant=devin