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
rail_representation_lossCompute RAIL-KD layerwise and concatenated intermediate representation losses from pooled hidden states.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when a distillation experiment must implement the RAIL-KD intermediate representation objective. It is appropriate after a teacher-layer mapping has selected exactly one teacher layer for each student layer. Do not use it for attention distribution matching, MiniLM relation losses, or layer-search logic.
[m][tokens][teacher_dim].[m][tokens][student_dim].layerwise for RAIL-KDl or concatenated for RAIL-KDc.Run:
python scripts/rail_loss.py --demo
python -m pytest tests
This skill uses small pure-Python numeric lists for portability. Production transformer code should pass actual tensors through equivalent pooling, projection, normalization, and distance operations while preserving the same contracts.