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
clip_contrastive_objectiveCompute CLIP-style normalized image/text similarity and symmetric InfoNCE loss for paired multimodal embeddings.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when implementing or checking the core CLIP training mechanism: paired image/text embeddings, L2 normalization, temperature-scaled cosine logits, and symmetric InfoNCE loss.
logit_scale.logits = logit_scale * image_norm @ text_norm.T.Run python tests/test_contrastive_objective.py.
A tiny batch confirms the mechanism but is not full-scale distributed CLIP pretraining.
Stress checks include unequal embedding magnitudes to confirm L2 normalization makes the contrastive mechanism scale-invariant before logits are computed.