Skip to content
Skillpedia
Machine learning15k · #11074

data-loading

What it does

The skill improves how training data is loaded and prepared. It is for practitioners whose training is slowed by data input.

When to use it

  • ✓When you set up a DataLoader or data preprocessing for model training.
  • ✓When your GPU sits idle while it waits for data.
  • ✓When you work with large datasets and need faster input.

Skill link

https://github.com/aiming-lab/AutoResearchClaw/blob/main/researchclaw/skills/builtin/tooling/data-loading/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/aiming-lab/AutoResearchClaw/blob/main/researchclaw/skills/builtin/tooling/data-loading/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“My GPU is idle during training. Speed up my PyTorch data loader.”

5 new skills a week. 1 minute to read.

How it works

The agent recommends worker and pinned memory settings, persistent workers, cached transformations, and memory-mapped files for large data. It also suggests profiling to find input bottlenecks.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Efficient Data Loading Best Practice

  1. Use num_workers = min(8, os.cpu_count()) for DataLoader
  2. Enable pin_memory=True when using GPU
  3. Use persistent_workers=True to avoid re-spawning
  4. Pre-compute and cache transformations when possible
  5. For image data: use torchvision.transforms.v2 (faster)
  6. For large datasets: consider memory-mapped files or WebDataset
  7. Profile with torch.utils.bottleneck to find I/O bottlenecks
FAQ

What is pin memory?

A setting that speeds up copying data from the computer's memory to the GPU.

What does it suggest for very large datasets?

Memory-mapped files or WebDataset-style storage.

How do I find the slow part?

Profile the loader with a PyTorch bottleneck tool to see where the time goes.

Details

Original description by the author

Optimize data loading pipeline to prevent GPU starvation. Use when setting up DataLoader or data preprocessing.

repo: aiming-lab/AutoResearchClaw

Popularity

GitHub stars
15k
Ranking position
#11074
License
MIT
Updated
8/19/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills