Self-Supervised Training Loop (AMP + EMA + DDP)
CommunityBuild robust SSL training loops with AMP.
Authorsovr610
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill bundles a production-grade workflow for self-supervised learning that unifies AMP, EMA target networks, and distributed data-parallel training to accelerate and stabilize representation learning at scale.
Core Features & Use Cases
- End-to-end SSL training loop with automatic mixed precision (AMP) using autocast and GradScaler
- Exponential moving average (EMA) target network with cosine-annealed tau for stable representations
- DDP-ready setup: online encoder wrapped for gradients; target encoder updated only via EMA
- Robust checkpointing with six-state save/load, auto-resume, and pruning for fault tolerance
- Integrated monitoring utilities and templates (scheduler, wandb logger, diagnostics) for production-like workflows
- Ready-to-use templates for trainer, scheduler, EMA, and utilities to accelerate SSL experimentation
Quick Start
Initialize the Self-Supervised Trainer with a minimal config and run train on a tiny synthetic dataset to verify the end-to-end AMP, EMA, and DDP workflow.
Dependency Matrix
Required Modules
torchpytest
Components
scriptsreferencesassets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Self-Supervised Training Loop (AMP + EMA + DDP) Download link: https://github.com/sovr610/refffiy/archive/main.zip#self-supervised-training-loop-amp-ema-ddp Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.