技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
reading-pipelines【数据与研究】Guide agents that need to read, transform, decode, batch, sample, mix, split, and validate existing WebDataset shards.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about consuming WebDataset shards or shard lists, not writing them. It covers the common read path: shard expansion, worker/node splitting, tar-to-sample grouping, decoding, filtering, tuple extraction, batching, repetition, and PyTorch CPU loader integration.
WebDataset(...).shuffle(...).decode(...).to_tuple(...).DataPipeline equivalent for the same read flow.DataLoader or WebLoader integration on CPU.:: lists, YAML multi-shard specs,
directory shard lists, or resampled shard streams.gopen side effects: use
io-caching-security.references/data-formats.md.DataPipeline.split_by_node, split_by_worker, detshuffle, or resampled=True.partial or only is needed.select, rename, rename_keys, extract_keys, or to_tuple.batched, unbatched, with_epoch, repeat, or with_length only when the loader contract needs them.WebDataset defaults to nodesplitter=single_node_only and workersplitter=split_by_worker.shardshuffle=None is a warning state; set it explicitly to False or a positive buffer size.empty_check=True raises when a worker sees no samples.decode() raises DecodingError unless you supply a handler.with_length() only sets __len__; it does not change the number of yielded samples.with_epoch() and repeat() control iteration length, not shard contents.WebDataset(path).decode().to_tuple(...).DataPipeline(SimpleShardList(...), tarfile_to_samples(), ...).empty_check.RoundRobin or RandomMix after the basic read path.scripts/smoke_read_pipeline.py.Keep the guidance in this sub-skill bounded to reads and transforms. Do not promise writer-side, network, or training behavior beyond what the bundled references and tests cover.