executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
trainingRoutes PyTorch Metric Learning questions about trainers, hooks, logging, checkpointing, and optional distributed wrappers.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the user wants to wire PyTorch Metric Learning into an actual training loop, validation hook, or checkpoint/logging workflow.
MPerClassSampler during training?"BaseTrainer, MetricLossOnly, TrainWithClassifier, CascadedEmbeddings, DeepAdversarialMetricLearning, TwoStreamMetricLoss.logging_presets.HookContainer, record-keeper integration, model saving/loading, early stopping, validation hooks, and metric history access.models, optimizers, loss_funcs, mining_funcs, sampler, batch_size, iterations_per_epoch, freeze_these, freeze_trunk_batchnorm, label_hierarchy_level, data_and_label_getter, dataset_labels, set_min_label_to_zero, lr_schedulers, and gradient_clippers.DistributedLossWrapper and DistributedMinerWrapper.components.evaluation.data unless the question is purely about their role inside a trainer.references/training-workflows.md for the trainer map, hook sequence, and config expectations.scripts/smoke_training.py when you want to confirm the trainer wiring on toy data without downloads.references/troubleshooting.md when the failure mentions missing dictionary keys, frozen modules, checkpointing, or logging dependencies.components first.evaluation after the trainer is set up.data before wiring the trainer.BaseTrainer argument pattern.MetricLossOnly needs a trunk model and a metric_loss entry.TrainWithClassifier expects a trunk/classifier architecture and both metric and classification losses.CascadedEmbeddings splits the embedding dimension into multiple stages.DeepAdversarialMetricLearning adds generator-specific loss keys and epoch scheduling.TwoStreamMetricLoss expects a dataset that yields (anchor, positive, label).HookContainer is the easiest path for record-keeper, tensorboard, early stopping, and model checkpointing.references/training-workflows.md for trainer and hook details.references/troubleshooting.md for trainer-key, checkpoint, logging, and distributed-wrapper failures.scripts/smoke_training.py for a tiny end-to-end trainer smoke check.