perf-doctor

Analyze Relax training scripts for performance and memory misconfigurations.

1|Updated Jun 3, 2026
One-click install
npx skills add https://github.com/EnkeZ/tgsopd --skill perf-doctor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perf-doctor
Source: https://github.com/EnkeZ/tgsopd/tree/main/skills/perf-doctor
Command: npx skills add https://github.com/EnkeZ/tgsopd --skill perf-doctor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill analyzes Relax training launch scripts to identify and address misconfigurations that may impact performance (time/MFU) or GPU memory usage.

Core Features & Use Cases

  • Performance Diagnostics: Identifies slow or inefficient flags that may be causing performance issues.
  • Memory Usage Analysis: Checks for memory inefficiencies, such as unnecessary memory usage or potential out-of-memory conditions.
  • Use Case: Before launching a training script, use perf-doctor to ensure that it is optimized for performance and memory usage, potentially avoiding long training times or failures.

Quick Start

Run the perf-doctor skill on your training script to analyze its performance and memory usage.

Frequently Asked Questions about perf-doctor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose and optimize my Relax training script for GPU memory usage?

To diagnose GPU memory usage in a Relax training script, you can analyze the launch script to identify misconfigured flags and memory inefficiencies that cause unnecessary memory consumption or out-of-memory conditions.

What causes poor performance and low MFU during machine learning training?

Poor performance and low MFU during training are frequently caused by misconfigured flags in the training launch script, which can be identified through a performance analysis of the script.

How do I check my training script for misconfigurations before launching?

You can check a training script for misconfigurations by running a diagnostic analysis to detect slow or inefficient flags, ensuring the script is optimized for performance and memory before execution.

Can I prevent out-of-memory errors by analyzing training launch scripts beforehand?

Yes, analyzing training launch scripts beforehand checks for memory inefficiencies and potential out-of-memory conditions, ensuring memory usage is optimized and preventing training failures before execution.

Does perf-doctor work with any machine learning training script or only the Relax framework?

perf-doctor specifically analyzes and optimizes training scripts built for the Relax framework, checking for performance and memory inefficiencies tailored to that environment.

When should I run a training script analysis to avoid long training times?

You should run a training script analysis right before launching the script, as this identifies and addresses performance bottlenecks and memory issues, potentially avoiding long training times or failures.