"""SFT, rejection sampling, and GRPO training loops."""