[agents docs] update models.md with class attributes and attention mask (#13665)
* [agents docs] update models.md with class attributes and attention mask guidance
- Add "Model class attributes" section documenting _no_split_modules,
_repeated_blocks, _skip_layerwise_casting_patterns, _keep_in_fp32_modules,
_cp_plan, and _supports_gradient_checkpointing with their corresponding
user-facing APIs and how they work
- Improve attention mask guidance: recommend passing None when no real
padding exists, document backend compatibility
- Move _no_split_modules from gotchas to its own section with first-principles
explanation of why it's needed (accelerate device hooks)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* update review-rules, ask to help identify unused code path
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>