Commit aed5c64
[.ai doc] Refine .ai attention-mask and component-mutation guidance (#13982)
Refine .ai attention-mask and component-mutation guidance from a PR review
- models.md: clarify padding-mask bullet β pass None when padding is
uniform (mask.all()) or when the model is trained to tolerate padding
without a mask
- pipelines.md: add gotcha #7 β don't mutate registered component state
per call; prefer an already-prepared component, otherwise snapshot and
restore (PAG pattern)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: dg845 <58458699+dg845@users.noreply.github.com>1 parent 7104cb4 commit aed5c64
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
0 commit comments