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
componentsRoutes PyTorch Metric Learning questions about losses, miners, distances, reducers, regularizers, self-supervised wrappers, and custom component implementations.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the user needs to choose, combine, or customize the metric-learning primitives that sit below training and evaluation.
indices_tuple?"LpDistance, CosineSimilarity, DotProductSimilarity, SNRDistance, and BatchedDistance.MeanReducer, AvgNonZeroReducer, ThresholdReducer, DivisorReducer, PerAnchorReducer, MultipleReducers, DoNothingReducer, SumReducer, ClassWeightedReducer.LpRegularizer, CenterInvariantRegularizer, RegularFaceRegularizer, SparseCentersRegularizer, ZeroMeanRegularizer.TripletMarginMiner, MultiSimilarityMiner, BatchHardMiner, BatchEasyHardMiner, DistanceWeightedMiner, PairMarginMiner, AngularMiner, HDCMiner, UniformHistogramMiner, EmbeddingsAlreadyPackagedAsTriplets.TripletMarginLoss, ContrastiveLoss, MultiSimilarityLoss, NTXentLoss, AngularLoss, ArcFaceLoss, CosFaceLoss, NormalizedSoftmaxLoss, ProxyAnchorLoss, ProxyNCALoss, SelfSupervisedLoss, CrossBatchMemory, MultipleLosses, SmoothAPLoss, VICRegLoss, and related metric/classification losses.BaseMetricLossFunction, BaseMiner, loss_and_miner_utils, and TorchInitWrapper.training.evaluation.data.references/losses-miners-and-customization.md for the compact component catalog and compatibility rules.scripts/smoke_components.py on toy tensors when you need a quick sanity check for a component stack or a custom extension.references/troubleshooting.md when the failure mentions labels, indices_tuple, no valid tuples, or an incompatible distance/reducer/regularizer.loss_and_miner_utils helpers instead of re-deriving tuple conversion logic.training or evaluation after the component choice is settled.distance object.indices_tuple instead of labels when the tuple has already been mined.num_classes and embedding_size, and some require an optimizer for their class weights.CrossBatchMemory wraps another loss and adds queue behavior; SelfSupervisedLoss adapts a pair or tuple loss to two views.MultipleLosses and MultipleReducers require matching keys or parallel lists.references/losses-miners-and-customization.md for the component catalog and extension notes.references/troubleshooting.md for predictable component-level failures.scripts/smoke_components.py for a tiny direct smoke check.