The Whole Paper Fits in One Sigmoid: Implementing the SDAR Gate
A developer implemented the SDAR gate, a gated distillation mechanism for reinforcement learning with language models, in PyTorch. The gate uses a sigmoid function to weight a per-token KL divergence …