Commit 90e7ca9
Restore _to_safe_string in LazyConfig.save_yaml, plus minor VLM/transformers tweaks
- lazy_config/lazy.py: re-add _to_safe_string so callable _target_ values are
emitted as importable dotted paths in config.yaml. Without this, save_yaml's
fallback `str(value)` produced "<class '...'>" / "<function ... at 0x...>"
strings that break downstream consumers like export_model.
- configs/base/defaults/vlm.py: add VLMConfig.safetensors_path for loading a
safetensors checkpoint from a different folder than model_name.
- utils/vfm/monkey_patch.py: loosen _EXPECTED_TRANSFORMERS_VERSION from exact
"4.57.1" to "4.57." prefix so patch-version bumps don't trip the guard.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent c92dddf commit 90e7ca9
3 files changed
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
324 | 344 | | |
325 | 345 | | |
326 | 346 | | |
| |||
338 | 358 | | |
339 | 359 | | |
340 | 360 | | |
341 | | - | |
| 361 | + | |
342 | 362 | | |
343 | 363 | | |
344 | 364 | | |
345 | 365 | | |
346 | 366 | | |
347 | 367 | | |
348 | | - | |
| 368 | + | |
349 | 369 | | |
350 | 370 | | |
351 | 371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments