Skip to content
Back to skills

Data Loading

ASecurity

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

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 29, 2026
ai-agentsgo

Security analysis

A100/100

Scanned September 29, 2026

npx -y skills add FOURTEEN1416/academic-agent-toolkit --skill data-loading --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Loading?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Loading
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fourteen1416-data-loading/badge)](https://www.skillsdirectory.com/skills/fourteen1416-data-loading)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-loading
description: Optimize data loading pipeline to prevent GPU starvation. Use when setting up DataLoader or data preprocessing.
metadata:
  category: tooling
  trigger-keywords: "data,loading,dataloader,dataset,preprocessing,augmentation"
  applicable-stages: "10"
  priority: "6"
  version: "1.0"
  author: researchclaw
  references: "PyTorch Data Loading Tutorial, pytorch.org"
---

## 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…