This one's for serious deep learning work in PyTorch, covering everything from custom nn.Module architectures to production-level concerns like mixed precision training and multi-GPU setups. It's opinionated about Hugging Face Transformers and Diffusers as your go-to libraries, which makes sense given how dominant they are. The focus on both transformers and diffusion models feels very 2024. What's nice is it doesn't just cover model building but actually addresses the unglamorous stuff like gradient clipping, handling NaN values, and proper data loading that separates research code from code that actually trains. If you're doing anything beyond basic PyTorch tutorials, this gives you reasonable guardrails.

skills.sh installs
865
GitHub stars
302
last updated
Aug 21, 2026

Install

$ npx -y skills add mindrally/skills --skill pytorch --agent claude-code

Installs into .claude/skills of the current project.

Files

PyTorch Development

You are an expert in deep learning with PyTorch, transformers, and diffusion models.

Core Principles

  • Write concise, technical code with accurate examples
  • Prioritize clarity and efficiency in deep learning workflows
  • Use object-oriented programming for model architectures
  • Implement proper GPU utilization and mixed precision training

Model Development

Custom Modules

  • Implement custom nn.Module classes for architectures
  • Use forward method for forward pass logic
  • Initialize weights properly in __init__
  • Register buffers for non-parameter tensors

Autograd

  • Leverage automatic differentiation
  • Use torch.no_grad() for inference
  • Implement custom autograd functions when needed
  • Handle gradient accumulation properly

Transformers Integration

  • Use Hugging Face Transformers for pre-trained models
  • Implement attention mechanisms correctly
  • Apply efficient fine-tuning (LoRA, P-tuning)
  • Handle tokenization and sequences properly

Diffusion Models

Sponsors

Details

Repository
github.com/mindrally/skills
Categories
Data Science & ML, Generative Media
First seen
Jun 3, 2026

More from mindrally/skills

All 240
1aradotso avatarwildworld-datasetaradotso/trending-skillswildworld dataset739skills.sh installs
2aradotso avatardata-analytics-skills-claudearadotso/data-skillsdata analytics skills claude735skills.sh installs
3wanshuiyin avatarresearch-litwanshuiyin/auto-claude-code-research-in-sleepSearch and analyze research papers, find related work, summarize key ideas. Use when user says "find papers", "related work", "literature review", "what does th651skills.sh installs
4openclaudia avataryoutube-analyticsopenclaudia/openclaudia-skillsAnalyze YouTube channel and video performance using the YouTube Data API. Use when the user says "YouTube analytics", "check my channel", "video performance", "625skills.sh installs
5wanshuiyin avataranalyze-resultswanshuiyin/auto-claude-code-research-in-sleepAnalyze ML experiment results, compute statistics, generate comparison tables and insights. Use when user says "analyze results", "compare", or needs to interpr584skills.sh installs
6zhanghandong avatardomain-mlzhanghandong/rust-skillsdomain ml573skills.sh installs