Profiling in PyTorch (Part 1): A Beginner's Guide to torch.profiler
torch.profiler produces two artifacts: a statistical table showing where time goes and a Chrome/Perfetto trace showing when CPU and GPU events happen.
torch.profiler produces two artifacts: a statistical table showing where time goes and a Chrome/Perfetto trace showing when CPU and GPU events happen.
Migrating PipelineRL's rollout generation from vLLM V0 (0.8.5) to V1 (0.18.1) caused training metrics (clip rate, KL, entropy, reward) to diverge.
Agentic RL training of GPT-OSS-20B in verl initially failed with exploding gradient norms, KL and entropy, and flat rewards.
Gradient accumulation in the transformers Trainer did not match full-batch training because the default model loss averaged per-batch cross-entropy instead of summing token losses across all accumulated batches and dividing by the total count of non-padding tokens.
Building and debugging neural networks goes best with a disciplined workflow: inspect the data before modeling, establish simple baselines such as logistic regression on word2vec or fastText embeddings, and verify the implementation by overfitting a small batch (e.g. 16 examples) to near-zero loss with regularization off.