pytorch
PyTorch for deep learning research and production
от skeletorflet★ 48 звёзд на GitHub
Установить pytorch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Core Concepts
- Tensors: Multi-dimensional arrays on CPU/GPU with autograd tracking
- Autograd: Automatic differentiation via
requires_gradandbackward() - nn.Module: Base class for neural network layers with
forward()method - Optimizers:
torch.optim.SGD,Adam,AdamWwithzero_grad()/step()loop - DataLoader: Batched, shuffled, parallel data loading with
Datasetsubclass - Distributed Training:
DistributedDataParallelfor multi-GPU with NCCL backend
Common Patterns
nn.Sequential(nn.Linear(d_in, d_hid), nn.ReLU(), nn.Linear(d_hid, d_out))for simple nets- Training loop:
for x, y in dataloader: pred = model(x); loss = loss_fn(pred, y); loss.backward(); optimizer.step(); optimizer.zero_grad() torch.utils.data.Datasetwith__len__and__getitem__for custom data- Transfer learning: freeze
requires_grad=Falseon backbone, train new head torch.compile(model)for graph optimization withmode="reduce-overhead"model.to("cuda")andx.to("cuda")for GPU execution
Best Practices
- Use
with torch.no_grad():for inference to disable gradient computation - Set
torch.manual_seed(42)andtorch.cuda.manual_seed_all(42)for reproducibility - Profile with
torch.profilerbefore optimizing GPU utilization - Use
pin_memory=Truein DataLoader for faster CPU-to-GPU transfer - Enable
grad_scalerfor mixed precision training withtorch.cuda.amp
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pytorch?
PyTorch for deep learning research and production
Как установить скилл pytorch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pytorch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…