pytorch-core

Installation
SKILL.md

Overview

Core PyTorch provides the fundamental building blocks for deep learning, focusing on tensor computation with strong GPU acceleration and a deep-learning-oriented autograd system. It emphasizes a "define-by-run" approach where models are standard Python objects.

When to Use

Use PyTorch Core when you need granular control over model architecture, custom training loops, or specific hardware optimizations like pinned memory for data transfers.

Decision Tree

  1. Do you know the input dimensions of your data?
    • YES: Use standard layers (e.g., nn.Linear).
    • NO: Use Lazy modules (e.g., nn.LazyLinear) to defer initialization.
  2. Is your bottleneck data transfer to the GPU?
    • YES: Enable pin_memory=True in your DataLoader.
    • NO: Standard data loading suffices.
  3. Are you fine-tuning a model?
    • YES: Set requires_grad=False for frozen parameters.
    • NO: Keep requires_grad=True for full training.
Related skills

More from cuba6112/skillfactory

Installs
2
First Seen
Feb 9, 2026