dataflow
Route DataFlow workflows for pipelines, text and document processing, serving, evaluation, and Ray acceleration.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- dataflow
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Route DataFlow workflows for pipelines, text and document processing, serving, evaluation, and Ray acceleration.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/api-overview.md4.0 KB
- 参考文档references/installation-and-backends.md3.1 KB
- 参考文档references/repo-provenance.md1.4 KB
- 参考文档references/repo-routing-metadata.json508 B
- 参考文档references/troubleshooting.md3.6 KB
- 脚本scripts/check_dataflow_env.py6.4 KB
- 脚本scripts/inspect_dataflow_surface.py6.4 KB
03 SKILL.md 正文
DataFlow
Use this repo skill for open-dataflow / dataflow tasks that prepare data, build pipelines, launch serving backends, run evaluations, or wrap operators with RayOrch.
First reads
references/repo-provenance.md— source commit, package version, evidence paths, and refresh baseline.references/installation-and-backends.md— install commands, verified import checks, and backend selection.references/api-overview.md— verified public surface for the most important classes, CLIs, and serving helpers.references/troubleshooting.md— cross-cutting install/import, key-mismatch, TTY, and backend failure guidance.references/repo-routing-metadata.json— routing metadata used by the managed repo-skill router.
Fast start
- Install the package for local inspection or use the published distribution:
python -m pip install -e .- or
python -m pip install open-dataflow
- Run a safe environment smoke check:
python scripts/check_dataflow_env.py
- Inspect the public API surface when you need signatures or command names:
python scripts/inspect_dataflow_surface.py
- Read the focused sub-skill that matches the task family below.
Route map
pipeline-foundations
Use for operator, pipeline, storage, prompt, wrapper, and compile-time key-validation work.
Typical requests:
- create or debug a
PipelineABC,BatchedPipelineABC, orStreamBatchedPipelineABC - choose between
FileStorage,LazyFileStorage,DummyStorage, batch storage, or MyScale storage - fix
input_*/output_*mismatches orKey Matching Error - validate
prompt_restrict,PromptABC,DIYPromptABC, ordraw_graph
serving-cli
Use for CLI routing, dataflow init, chat, eval, pdf2model, text2model, webui, and serving class setup.
Typical requests:
- inspect command groups and help output
- choose an API, local, or hosted serving backend
- understand credential, timeout, or WebUI side effects
- diagnose missing optional serving dependencies
text-workflows
Use for text cleaning, filtering, reasoning, code, conversation, Text2SQL, prompt-driven generation, translation, and text2model prep.
Typical requests:
- adapt CPU-safe text filters or prompt-driven generators
- map columns such as
raw_content,instruction,problem,generated_code, orgolden_answer - prepare offline text fixtures or text2model inputs
- separate API-backed stages from pure local filtering
document-vision-rag
Use for PDF/OCR, visual QA, knowledge-base cleaning, LightRAG, Agentic RAG, speech, chemistry, and pdf2model planning.
Typical requests:
- validate document inputs before OCR or retrieval
- choose between KBC, PDF VQA, or document-prep flows
- reason about MinerU, FlashMinerU, DataFlex, LlamaFactory, and audio extras
- diagnose missing documents, suffixes, or hardware/credential limits
rayorch-acceleration
Use for RayOrch wrapping, actor cleanup, and pipeline acceleration without changing the surrounding pipeline contract.
Typical requests:
- wrap an existing operator with
RayAcceleratedOperator - preserve order and storage behavior through CPU or GPU execution
- decide when to use
replicas,num_gpus_per_replica, orenv - debug shutdown or optional Ray dependency issues
How to choose
- If the task is mainly about how DataFlow operators and pipeline storage work, start with
pipeline-foundations. - If the task is mainly about CLI commands, serving, or launch-time dependencies, start with
serving-cli. - If the task is mainly about text or tabular dataset transformation, start with
text-workflows. - If the task is mainly about documents, PDFs, OCR, RAG, or pdf2model, start with
document-vision-rag. - If the task is mainly about distributed acceleration of an existing operator, start with
rayorch-acceleration. - If the request spans multiple families, use the root references first, then hand off to the narrowest sub-skill that owns the final action.
What this root skill does not do
- It does not execute training, downloads, or backend-heavy workflows by default.
- It does not rely on the original checkout after generation; bundled references and scripts carry the reusable guidance.
- It does not replace the focused sub-skills when the request is already narrow.
When to revisit provenance
Read references/repo-provenance.md before deciding whether this skill is stale for a checkout of DataFlow or before running a refresh workflow.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).