[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78X34JFKH305C9CMAG6EHDW":3,"skill-same:01M78X34JFKH305C9CMAG6EHDW":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M78X34JFKH305C9CMAG6EHDW","loader-pipelines",null,"Build, inspect, and troubleshoot FFCV Loader pipelines: ordering, decoders, native and torch transforms, custom Operation contracts, subsets, partial batches, distributed sampling, and training integration.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fffcv\u002Fsub-skills\u002Floader-pipelines\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: loader-pipelines\ndescription: \"Build, inspect, and troubleshoot FFCV Loader pipelines: ordering,\n  decoders, native and torch transforms, custom Operation contracts, subsets,\n  partial batches, distributed sampling, and training integration.\"\nmetadata:\n  disco-role: operating\ndisable-model-invocation: true\nlicense: Apache 2.0\n---\n\n# FFCV loader pipelines\n\nUse this sub-skill when a Researcher must construct or debug an FFCV\n`Loader`, its per-field `PipelineSpec`, or the operations between a field\ndecoder and a training step. It owns traversal\u002Forder semantics, decoder-first\npipeline construction, state and preallocated-memory contracts, NumPy\u002FJIT to\nPyTorch\u002FCPU\u002FGPU boundaries, index-aware operations, filtering\u002Fsubsets,\npartial batches, and distributed\u002Ftraining integration.\n\nDo not use it for dataset writing\u002Ffield encoding or broad cache and throughput\ntuning; hand those concerns to the writer or performance sub-skill. Keep the\npipeline's exact field names, target shapes\u002Fdtypes\u002Fdevices, order, seed,\nsubset, and `drop_last` policy explicit before changing code.\n\n## Fast routing\n\n1. Identify the `.beton` fields and desired outputs. Start with [pipelines.md](references\u002Fpipelines.md).\n2. Choose explicit decoder and transform stages from [image-pipelines.md](references\u002Fimage-pipelines.md)\n   or the relevant field decoder. A decoder is first; put `ToTensor` before any\n   torch operation and `ToDevice` before GPU-only work.\n3. For a custom operation, read [custom-operations.md](references\u002Fcustom-operations.md)\n   and validate its state, allocation, callable signature, partial-batch, and\n   optional `with_indices` behavior.\n4. Apply subset\u002Forder\u002Fdistributed\u002Fdrop-last decisions and then use\n   [training-integration.md](references\u002Ftraining-integration.md) for a bounded\n   loop. Diagnose construction and runtime failures with\n   [troubleshooting.md](references\u002Ftroubleshooting.md).\n\n## Non-negotiable rules\n\n- A missing pipeline entry gets the field's default decoder plus `ToTensor()`;\n  an explicit `None` disables that field. Do not confuse omitted with disabled.\n- A sequence is normalized into a `PipelineSpec`; if its first operation is an\n  instance of the field's decoder class, it is consumed as the decoder. A\n  `PipelineSpec(source=..., decoder=..., transforms=...)` is useful for\n  explicit sources and shared operation references.\n- Native NumPy operations must remain before `ToTensor`\u002F`ToDevice`. A\n  `torch.nn.Module` is wrapped automatically as `ModuleWrapper`, but it is not\n  a JIT\u002FNumba operation; place it after tensor conversion and on the intended\n  device. `ToTorchImage` changes HWC batches to BCHW.\n- Every non-default operation must accurately advance `State` and return an\n  allocation query when it writes a new output. Functions must accept the\n  arguments the generated graph supplies, return the effective batch, and never\n  assume `batch_size` samples when `drop_last=False`.\n- `with_indices=True` receives the selected dataset indices, not positions in\n  the current batch. Seed or key deterministic index-aware behavior from those\n  indices; do not use an unstable worker\u002Fthread RNG as the identity.\n- `SimpleRGBImageDecoder` rejects variable-resolution image datasets. Use a\n  crop\u002Fresize decoder when a fixed output shape is required.\n- `QUASI_RANDOM` is unavailable with `distributed=True`; use sequential or\n  random order with a shared explicit seed instead.\n\n## Verification handoff\n\nFor a new pipeline, verify a tiny synthetic `.beton` fixture: field count and\noutput order, exact shapes\u002Fdtypes\u002Fdevices, all samples under both full and\npartial batches, two epochs with the intended seed\u002Forder, and a deliberately\nvariable-resolution image case if images are involved. The installed facts for\nthis checkout support CPU synthetic loader smoke and tiny A100 CUDA allocation;\nCUDA-specific native suites are optional because the GPU is shared.\n\nTwo high-value synthetic checks beyond the baseline tests are: (1) write 7 fixed-size images plus labels, load with `indices=[6, 1, 5, 0, 4, 2, 3]`, `drop_last=False`, and an index-aware transform that derives its output from each original id; assert the same id keeps the same result across sequential and seeded-random epochs and that the final one-row batch has no stale values; (2) write mixed-resolution images and run a crop-decoder -> native flip -> `ToTensor` -> `ToDevice` -> `ToTorchImage` -> torch module pipeline on a one-row tail, asserting HWC\u002FBCHW layout, dtype, device, and active batch length at every boundary. Run these outside the runtime skill tree as verification cases.\n","# FFCV loader pipelines\n\nUse this sub-skill when a Researcher must construct or debug an FFCV\n`Loader`, its per-field `PipelineSpec`, or the operations between a field\ndecoder and a training step. It owns traversal\u002Forder semantics, decoder-first\npipeline construction, state and preallocated-memory contracts, NumPy\u002FJIT to\nPyTorch\u002FCPU\u002FGPU boundaries, index-aware operations, filtering\u002Fsubsets,\npartial batches, and distributed\u002Ftraining integration.\n\nDo not use it for dataset writing\u002Ffield encoding or broad cache and throughput\ntuning; hand those concerns to the writer or performance sub-skill. Keep the\npipeline's exact field names, target shapes\u002Fdtypes\u002Fdevices, order, seed,\nsubset, and `drop_last` policy explicit before changing code.\n\n## Fast routing\n\n1. Identify the `.beton` fields and desired outputs. Start with [pipelines.md](references\u002Fpipelines.md).\n2. Choose explicit decoder and transform stages from [image-pipelines.md](references\u002Fimage-pipelines.md)\n   or the relevant field decoder. A decoder is first; put `ToTensor` before any\n   torch operation and `ToDevice` before GPU-only work.\n3. For a custom operation, read [custom-operations.md](references\u002Fcustom-operations.md)\n   and validate its state, allocation, callable signature, partial-batch, and\n   optional `with_indices` behavior.\n4. Apply subset\u002Forder\u002Fdistributed\u002Fdrop-last decisions and then use\n   [training-integration.md](references\u002Ftraining-integration.md) for a bounded\n   loop. Diagnose construction and runtime failures with\n   [troubleshooting.md](references\u002Ftroubleshooting.md).\n\n## Non-negotiable rules\n\n- A missing pipeline entry gets the field's default decoder plus `ToTensor()`;\n  an explicit `None` disables that field. Do not confuse omitted with disabled.\n- A sequence is normalized into a `PipelineSpec`; if its first operation is an\n  instance of the field's decoder class, it is consumed as the decoder. A\n  `PipelineSpec(source=..., decoder=..., transforms=...)` is useful for\n  explicit sources and shared operation references.\n- Native NumPy operations must remain before `ToTensor`\u002F`ToDevice`. A\n  `torch.nn.Module` is wrapped automatically as `ModuleWrapper`, but it is not\n  a JIT\u002FNumba operation; place it after tensor conversion and on the intended\n  device. `ToTorchImage` changes HWC batches to BCHW.\n- Every non-default operation must accurately advance `State` and return an\n  allocation query when it writes a new output. Functions must accept the\n  arguments the generated graph supplies, return the effective batch, and never\n  assume `batch_size` samples when `drop_last=False`.\n- `with_indices=True` receives the selected dataset indices, not positions in\n  the current batch. Seed or key deterministic index-aware behavior from those\n  indices; do not use an unstable worker\u002Fthread RNG as the identity.\n- `SimpleRGBImageDecoder` rejects variable-resolution image datasets. Use a\n  crop\u002Fresize decoder when a fixed output shape is required.\n- `QUASI_RANDOM` is unavailable with `distributed=True`; use sequential or\n  random order with a shared explicit seed instead.\n\n## Verification handoff\n\nFor a new pipeline, verify a tiny synthetic `.beton` fixture: field count and\noutput order, exact shapes\u002Fdtypes\u002Fdevices, all samples under both full and\npartial batches, two epochs with the intended seed\u002Forder, and a deliberately\nvariable-resolution image case if images are involved. The installed facts for\nthis checkout support CPU synthetic loader smoke and tiny A100 CUDA allocation;\nCUDA-specific native suites are optional because the GPU is shared.\n\nTwo high-value synthetic checks beyond the baseline tests are: (1) write 7 fixed-size images plus labels, load with `indices=[6, 1, 5, 0, 4, 2, 3]`, `drop_last=False`, and an index-aware transform that derives its output from each original id; assert the same id keeps the same result across sequential and seeded-random epochs and that the final one-row batch has no stale values; (2) write mixed-resolution images and run a crop-decoder -> native flip -> `ToTensor` -> `ToDevice` -> `ToTorchImage` -> torch module pipeline on a one-row tail, asserting HWC\u002FBCHW layout, dtype, device, and active batch length at every boundary. Run these outside the runtime skill tree as verification cases.\n",{"name":5,"license":23,"metadata":24,"description":7,"disable-model-invocation":26},"Apache 2.0",{"disco-role":25},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fffcv\u002Fsub-skills\u002Floader-pipelines",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":26},[36,39,42],{"tool":37,"command":38},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill loader-pipelines",{"tool":40,"command":41},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill loader-pipelines",{"tool":43,"command":44},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill loader-pipelines","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fffcv\u002Fsub-skills\u002Floader-pipelines\u002FSKILL.md",[47,53,57,61,65],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fcustom-operations.md","REFERENCE","参考文档",10871,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fffcv\u002Fsub-skills\u002Floader-pipelines\u002Freferences\u002Fcustom-operations.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fimage-pipelines.md",8863,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fffcv\u002Fsub-skills\u002Floader-pipelines\u002Freferences\u002Fimage-pipelines.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fpipelines.md",10504,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fffcv\u002Fsub-skills\u002Floader-pipelines\u002Freferences\u002Fpipelines.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Ftraining-integration.md",9096,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fffcv\u002Fsub-skills\u002Floader-pipelines\u002Freferences\u002Ftraining-integration.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Ftroubleshooting.md",10798,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fffcv\u002Fsub-skills\u002Floader-pipelines\u002Freferences\u002Ftroubleshooting.md",[70,77,84,91,98,105],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp 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.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","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.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","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()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert 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.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch 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).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]