Commit 496169c
committed
Fix scalar register_modules skipping config key for optional components
When a scalar value is mis-passed to register_modules (e.g. bool from
legacy positional super().__init__), record (None, None) in config like
the None branch instead of skipping register_to_config entirely. This
keeps config keys aligned with __init__ signature so .components and
enable_model_cpu_offload do not raise ValueError after init succeeds.1 parent 69ee02e commit 496169c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
0 commit comments