RayOrch: Programming and Executing Lineage-Controlled Multi-Grain Dataflows for Foundation-Model Data Preparation

Hugging Face Daily Papers Papers

Summary

RayOrch introduces a programming model and distributed execution engine for lineage-controlled dataflows in foundation-model data preparation, achieving significant speedups on GPUs compared to existing systems like RayData and Daft.

Preparing high quality training data for foundation models requires scalable pipelines that transform heterogeneous documents and videos into structured records. Such pipelines expand each parent item into an ordered and input dependent sequence of children, whose counts may be long tailed. GPUs should batch children across parents while preserving parent relationships, child order, completion status, and result routing. Existing systems either hide parallelism behind coarse grained jobs or expose flat records that force applications to manage lineage and regrouping. We present RayOrch, a programming model and distributed execution engine that preserves parent child relations throughout execution. Programs declare ordered variable cardinality expansions and matching gathers. The compiler validates each pair, while the runtime records child membership, immediate parents, immutable ordinals, and terminal states. Per Call FIFO Ready Queues batch ready children across parents. Gathers reconstruct results from declared membership and ordinals rather than batch boundaries or completion order. Parents can advance as soon as all required children become terminal. Typed parent scoped failures suppress undispatched siblings of the failed parent while allowing unrelated parents to continue. On NVIDIA H20 GPUs, RayOrch achieves 15.14 times speedup when scaling MinerU from 4 to 64 GPUs and 7.82 times speedup when scaling a video pipeline from 8 to 64 GPUs. It reduces end to end time by 13.1 percent versus Ray Data and 29.0 percent versus Daft on MinerU, and by 16.0 percent versus Ray Data on Docling. Code available at https://github.com/OpenDCAI/RayOrch .
Original Article
View Cached Full Text

Cached at: 09/28/26, 08:03 AM

Paper page - RayOrch: Programming and Executing Lineage-Controlled Multi-Grain Dataflows for Foundation-Model Data Preparation

Source: https://huggingface.co/papers/2609.18703 Published on Sep 16

#2 Paper of the day Authors:

,

,

,

,

,

,

,

,

,

,

,

,

,

,

Abstract

Preparinghighqualitytrainingdataforfoundationmodelsrequiresscalablepipelinesthattransformheterogeneousdocumentsandvideosintostructuredrecords.Suchpipelinesexpandeachparentitemintoanorderedandinputdependentsequenceofchildren,whosecountsmaybelongtailed.GPUsshouldbatchchildrenacrossparentswhilepreservingparentrelationships,childorder,completionstatus,andresultrouting.Existingsystemseitherhideparallelismbehindcoarsegrainedjobsorexposeflatrecordsthatforceapplicationstomanagelineageandregrouping.WepresentRayOrch,aprogrammingmodelanddistributedexecutionenginethatpreservesparentchildrelationsthroughoutexecution.Programsdeclareorderedvariablecardinalityexpansionsandmatchinggathers.Thecompilervalidateseachpair,whiletheruntimerecordschildmembership,immediateparents,immutableordinals,andterminalstates.PerCallFIFOReadyQueuesbatchreadychildrenacrossparents.Gathersreconstructresultsfromdeclaredmembershipandordinalsratherthanbatchboundariesorcompletionorder.Parentscanadvanceassoonasallrequiredchildrenbecometerminal.Typedparentscopedfailuressuppressundispatchedsiblingsofthefailedparentwhileallowingunrelatedparentstocontinue.OnNVIDIAH20GPUs,RayOrchachieves15.14timesspeedupwhenscalingMinerUfrom4to64GPUsand7.82timesspeedupwhenscalingavideopipelinefrom8to64GPUs.Itreducesendtoendtimeby13.1percentversusRayDataand29.0percentversusDaftonMinerU,andby16.0percentversusRayDataonDocling.Codeavailableathttps://github.com/OpenDCAI/RayOrch.

View arXiv pageView PDFProject pageGitHub11Add to collection

Get this paper in your agent:

hf papers read 2609\.18703

Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2609.18703 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2609.18703 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2609.18703 in a Space README.md to link it from this page.

Collections including this paper0

No Collection including this paper

Add this paper to acollectionto link it from this page.

Similar Articles