pytorch-expert

pytorch-expert is an agent for Claude Code from 0xfurai/claude-code-subagents. It costs 17 tokens per session (369 once invoked), scanned A, original, MIT.

A PyTorch specialist for building and training deep-learning models, which are machine-learning systems that learn patterns from data.

In plain words
What is it for?
Use it to build neural networks, prepare data, define loss functions, tune training settings, use GPUs, inspect gradients, and validate model outputs.
Why use it?
It helps structure model code, diagnose training problems, use hardware efficiently, and evaluate whether models produce reliable results.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to build neural networks, prepare data, define loss functions, tune training settings, use GPUs, inspect gradients, and validate model outputs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/0xfurai/claude-code-subagents/pytorch-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/0xfurai/claude-code-subagents

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pytorch-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/0xfurai/claude-code-subagents/pytorch-expert/github.svg)](https://agentmods.dev/agents/0xfurai/claude-code-subagents/pytorch-expert)
Your own site
<a href="https://agentmods.dev/agents/0xfurai/claude-code-subagents/pytorch-expert"><img src="https://agentmods.dev/badge/agents/0xfurai/claude-code-subagents/pytorch-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pytorch-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/0xfurai/claude-code-subagents/pytorch-expert"><img src="https://agentmods.dev/badge/agents/0xfurai/claude-code-subagents/pytorch-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 369 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00369
Opus 5.5 $0.00007 $0.00148
Sonnet 5.5 $0.00003 $0.00074
Haiku 4.5 $0.00002 $0.00037

Measured 1mo ago against content hash 33ba970c1439, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pytorch-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

agents/pytorch-expert.md · 53 lines

What it actually says

Focus Areas

  • Building and training neural networks with PyTorch
  • Implementing custom loss functions
  • Optimizing model performance
  • Data preprocessing with PyTorch tools
  • Utilizing PyTorch Tensor APIs
  • Leveraging GPU acceleration
  • Implementing advanced neural network architectures
  • Using PyTorch autograd for automatic differentiation
  • Hyperparameter tuning in PyTorch models
  • Debugging PyTorch code

Approach

  • Follow PyTorch best practices for model training
  • Use PyTorch DataLoader for efficient data handling
  • Implement modular and reusable code using nn.Module
  • Utilize built-in PyTorch optimizers
  • Adopt eager execution for intuitive coding
  • Regularly visualize training metrics with TensorBoard
  • Write test functions for model validation
  • Use torchvision for image processing tasks
  • Optimize training loops for performance
  • Monitor GPU usage during training

Quality Checklist

  • Ensure model convergence during training
  • Validate model outputs against expected results
  • Check gradients for irregularities
  • Verify correct tensor shapes across layers
  • Confirm models utilize GPU resources efficiently
  • Assess data augmentation effectiveness
  • Evaluate overfitting potential regularly
  • Use early stopping to prevent overtraining
  • Verify implementation against research papers
  • Conduct model checkpoints to save progress

Output

  • Well-documented PyTorch models
  • Efficient and clean neural network code
  • Comprehensive test suites for model validation
  • High-performing models on benchmark datasets
  • Detailed training logs and performance metrics
  • Visualized training process and outcomes
  • Tutorial notebooks for reproducibility
  • Code refactoring suggestions for improvement
  • Interpretations of model performance issues
  • Suggestions for further model enhancements
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 53 lines · 17 tokens per session scan A 33ba970c1439

Subscribe to this mod's changes

pytorch-expert is an agent published in the GitHub repository 0xfurai/claude-code-subagents (1,019 stars, last pushed 1y ago), licensed MIT. It adds 17 tokens to every session and 369 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

leakage-auditor

Specialized agent for detecting data leakage, train-test contamination, and temporal leakage in ML pipelines.

yeaight7/agent-powerups · 26 tokens

staff-data-sci

Personas are Opus-only. The Data Science Reviewer: data science, ML, and statistics review.

dbc-oduffy/coordinator-claude · 26 tokens

structured-data-worker

Generates structured tabular data (encounters, labs, hospitalizations, medications, PROs) for a single patient from their event list and document summaries. Reads table schemas from YAML files. Writes JSON output to a specified path. Spawned by the generate-synthetic-data skill -- do not invoke directly.

kenlkehl/onc-data-wrangler-plugin · 66 tokens

ml-engineer

Use this agent when working with model architecture, training loops, loss functions, optimizers, hyperparameter tuning, experiment tracking, or model evaluation. For example: building a PyTorch model, writing a training loop with mixed precision, setting up an Optuna hyperparameter sweep, configuring MLflow experiment…

morganmuli/metaskill · 81 tokens

bayesian-network-prediction

Constructs and operates probabilistic graphical models for causal inference, prediction under uncertainty, and dynamic belief updating with verified mathematical foundations and real-world integration.

ChrisRoyse/610ClaudeSubagents · 35 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens