Skip to content

Commit 79edbdf

Browse files
docs(recipe): keep recipe functions self-contained (#6337)
Signed-off-by: Kamran Jafari <kjafarisadeg@nvidia.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent df35bfd commit 79edbdf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎skills/adding-model-support/recipe-patterns.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ def <model>_<size>_peft_config(peft_scheme: str | PEFT = "lora") -> ConfigContai
6868
return cfg
6969
```
7070

71+
Keep each recipe function self-contained: start from the shared `_*_common()` base and set every other option inside the function, repeating lines rather than adding family-private helpers or calling another recipe, since users usually read and copy a single recipe.
72+
7173
## Common Base Functions
7274

7375
| Function | Use Case |

0 commit comments

Comments
 (0)