Skip to content
Back to skills

Reproducible Training Runs

ASecurity

Analyzes ML training scripts to enforce seed setting, deterministic operations, and environment tracking for exact reproducibility.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 29, 2026
ai-agentspythongoperformance

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add yeaight7/agent-powerups --skill reproducible-training-runs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reproducible Training Runs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reproducible Training Runs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeaight7-reproducible-training-runs/badge)](https://www.skillsdirectory.com/skills/yeaight7-reproducible-training-runs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reproducible-training-runs
description: Analyzes ML training scripts to enforce seed setting, deterministic operations, and environment tracking for exact reproducibility.
---
# Reproducible Training Runs

Use this skill when reviewing or modifying ML training scripts to ensure they produce deterministic, reproducible results across runs.

## Prerequisites

- A target Python training script.

## Instructions

When applying this skill, check for and enforce the following reproducibility standards:

1. **Global Seed Initialization:** Ensure a single function sets seeds for all relevant libraries (`random`, `numpy`, `torch`, `tensorflow`).
2. **Deterministic Algorithms:** For PyTorch or TensorFlow, check if deterministic algorithms are enabled (e.g., `torch.use_deterministic_algorithms(True)`).
3. **Data Loading:** Verify that data loaders use deterministic shuffling and that worker processes are seeded correctly to avoid identical augmentations.
4. **Environment & Config Tracking:** Ensure that the script logs the exact configuration, dependency versions, and data hashes.

## Safety & Style

- **Review First:** Point out missing reproducibility guards before rewriting the script.
- **Keep it Explicit:** Provide the exact snippet for seed initialization. Do not hide side effects.
- **Performance Trade-offs:** Warn the user if enabling deterministic algorithms will significantly impact training speed.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…