技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
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.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
.beton
read-back, and writer resource controls.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.
import ffcv
and import ffcv._libffcv. Read installation
before diagnosing compiled-install failures.ToTensor; put ToDevice before GPU work and
ToTorchImage where the model needs BCHW layout.drop_last explicit. Validate a complete batch and a one-row tail when
partial batches are allowed.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.
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.