跳到正文
cccskills
免费在 GitHub 公开

ffcv

Use FFCV to convert datasets into .beton files, build fast PyTorch loader pipelines, handle image and custom fields/transforms, and tune cache, traversal, and throughput behavior.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(21)

  • SKILL.md3.5 KB
  • references/api-reference.md3.0 KB
  • references/installation.md2.9 KB
  • references/repo-provenance.md1.1 KB
  • references/repo-routing-metadata.json404 B
  • references/troubleshooting.md4.0 KB
  • scripts/ffcv_smoke.py2.4 KB
  • sub-skills/dataset-writing/references/fields-and-formats.md8.5 KB
  • sub-skills/dataset-writing/references/troubleshooting.md6.4 KB
  • sub-skills/dataset-writing/references/workflows.md7.7 KB
  • sub-skills/dataset-writing/SKILL.md6.7 KB
  • sub-skills/loader-pipelines/references/custom-operations.md10.6 KB
  • sub-skills/loader-pipelines/references/image-pipelines.md8.7 KB
  • sub-skills/loader-pipelines/references/pipelines.md10.3 KB
  • sub-skills/loader-pipelines/references/training-integration.md8.9 KB
  • sub-skills/loader-pipelines/references/troubleshooting.md10.5 KB
  • sub-skills/loader-pipelines/SKILL.md4.5 KB
  • sub-skills/performance-tuning/references/benchmarking.md5.8 KB
  • sub-skills/performance-tuning/references/troubleshooting.md10.0 KB
  • sub-skills/performance-tuning/references/tuning.md9.8 KB
  • sub-skills/performance-tuning/SKILL.md6.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

FFCV operating router

Use this skill when a task names FFCV, .beton, DatasetWriter, Loader, OrderOption, FFCV fields/decoders/transforms, or an FFCV cache/throughput problem. FFCV is a compiled, PyTorch-oriented data storage and loading system; it replaces the data input path, not the model or optimizer.

Choose a route

  • Convert or inspect a dataset — read dataset-writing. It covers indexable datasets, local WebDataset shards, field schemas, custom fields, .beton read-back, and writer resource controls.
  • Build or debug a loader/pipeline — read loader-pipelines. It covers decoder selection, operation order, images, CPU/GPU boundaries, custom operations, subsets, partial batches, and training integration.
  • Diagnose speed, memory, or distributed behavior — read performance-tuning. It covers OS versus process cache, sequential/random/quasi-random traversal, concurrency, compilation, measurement, and distributed constraints.

For a task spanning routes, write the dataset first, validate it structurally, then construct the loader, then tune one resource variable at a time. Do not start with benchmark numbers or a full training run when a tiny .beton fixture can expose the same correctness issue.

Minimal operating contract

  1. Install FFCV with a compatible PyTorch, NumPy/Numba, OpenCV, and TurboJPEG runtime. The package includes a native extension; verify both import ffcv and import ffcv._libffcv. Read installation before diagnosing compiled-install failures.
  2. A writer mapping's insertion order is the sample tuple order. Declare short, unique ASCII field names and adapt mapping-shaped samples to an explicit tuple before multiprocessing.
  3. A loader pipeline starts with the field decoder. Keep native NumPy/JIT transforms before ToTensor; put ToDevice before GPU work and ToTorchImage where the model needs BCHW layout.
  4. Make shape, dtype, device, field names, order, seed, cache mode, batch size, and drop_last explicit. Validate a complete batch and a one-row tail when partial batches are allowed.
  5. Treat CUDA as additive runtime coverage unless the downstream task truly requires it. A CPU import or smoke test does not prove GPU transfer, normalization, or multi-GPU correctness.

Use api-reference for verified signatures and object relationships, and troubleshooting for cross-cutting install, schema, pipeline, cache, and device failures. The small helper scripts/ffcv_smoke.py creates a temporary integer .beton file and checks a sequential loader; pass --cuda only on a reserved compatible GPU.

Scope boundary

This graph is self-contained operating knowledge for package users. It does not require the original checkout, source examples, downloaded datasets, benchmark- scale matrices, ImageNet/CIFAR training, release automation, Docker files, or binary documentation assets. Those are evidence behind the distilled guidance, not runtime dependencies.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa

免费

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa-v2

免费

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

ab3dmot

免费

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

acme

免费

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题