Repository navigation
Conversation
…lements_cpu_split)
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
[Medium impact] The PR appears safe to merge, with all previous findings addressed and no new actionable issues found. SummaryAdds an opt-in split that moves page-image preparation and final detection cleanup to CPU workers while keeping inference on the GPU.
Review checks were based on source and test inspection; tests were not run.
|
…t pools; reject split on CPU actor
…es; document helpers
|
Moving to draft. On the current stack (main + #2785 + eager embed engine build), 16 CPUs per GPU, one run per arm, the split at 2 page-element workers per GPU never beat the unsplit layout at 4 per GPU:
With the split, page-element detection becomes the slowest stage, and object-store peak rises by about 20 GiB at 8 GPUs. Combined with |
|
Closing: the split measured 316 pps vs 320 pps for the current layout (4 page-element workers per GPU), and #2824 now sizes workers from the hardware. Not worth ~900 lines and a new toggle. Branch kept for reference. |
Description
Local page-element detection does image decode, resize/pad and box fusion inside the GPU actor, so GPU actors get added just to cover CPU work. With
page_elements_cpu_split=True, the single PE node becomes three:postprocess.page_elements_v3*columns.Worker counts default to 2x / 1x the GPU count. Preflight can shrink these defaults; explicit counts stay fixed. Set it with
BatchTuningParams,ingest.extract.batch.*, or--page-elements-cpu-split.Scope: 3 tuning fields (params, plan, CLI),
split.py/split_actors.py, the graph gate and overrides, and the performance guide.Unchanged:
page_elements_invoke_url) ignores the flag.Measured on 8x RTX PRO 6000, ~213k pages, cold cache:
Parity on 48 pages: identical detections. Recall on a 20-file set was within run-to-run noise.
Tests:
tests/test_page_elements_split.py: split vs unsplit equivalence.tests/test_ingest_plans.py:Checklist
Link to Devin session: https://nvidia-cloud.devinenterprise.com/sessions/7d9c7cab9ad1422dacf44cd4fd5c715d
Open in Devin Desktop: https://nvidia-cloud.devinenterprise.com/desktop/session/7d9c7cab9ad1422dacf44cd4fd5c715d?variant=devin
Requested by: @jioffe502