pytorch-expert

pytorch-expert is an agent for coding agents from NickCrew/Claude-Cortex. It costs 23 tokens per session (605 once invoked), scanned A, a copy of pytorch-expert, MIT.

A specialist for building and training neural-network models with PyTorch, a Python library for machine learning. It covers data preparation, model evaluation, performance tuning, and deployment-oriented inference code.

In plain words
What is it for?
Use it to create PyTorch models and training loops, write custom losses, tune models, process data, debug tensor or gradient problems, and prepare inference code.
Why use it?
It helps organise the many details of machine-learning development, such as tensor shapes, gradients, GPU use, validation, and training performance.

Agent

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.

agentmods
npx agentmods add agents/nickcrew/claude-cortex/pytorch-expert
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex

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/nickcrew/claude-cortex/pytorch-expert.svg)](https://agentmods.dev/agents/nickcrew/claude-cortex/pytorch-expert)
Your own site
<a href="https://agentmods.dev/agents/nickcrew/claude-cortex/pytorch-expert"><img src="https://agentmods.dev/badge/agents/nickcrew/claude-cortex/pytorch-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 605 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod 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 $0.00023 $0.00605
Opus 5 $0.00012 $0.00302
Sonnet 5 $0.00005 $0.00121
Haiku 4.5 $0.00002 $0.00060

Measured yesterday against content hash bf6323cd77e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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

This is a copy

88% identical to pytorch-expert — 52 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

archive/agents/pytorch-expert.md · 101 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. yesterday First seen · 101 lines · 23 tokens per session scan A bf6323cd77e0

Subscribe to this mod's changes

pytorch-expert is an agent published in the GitHub repository NickCrew/Claude-Cortex (37 stars, last pushed 2mo ago), licensed MIT. It adds 23 tokens to every session and 605 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to pytorch-expert, differing in 52 lines, and is treated as a copy.