pytorch

Installation
SKILL.md

PyTorch

Use PyTorch when model artifacts are tensors first and everything else second.

When to use PyTorch

Use PyTorch when you need to:

  • load .pt or .pth checkpoints safely onto CPU or GPU
  • inspect state_dict keys, module hierarchy, and parameter shapes
  • switch a model into stable inference mode for probing
  • script quick tensor statistics or output checks against a checkpoint

Quick Start

Use a disposable, resource-limited environment for untrusted artifacts; restricted loading is not a sandbox or a guarantee against parser vulnerabilities.

import torch
Installs
11
GitHub Stars
37
First Seen
Sep 5, 2026