Commit 35671db
committed
fix(inspect): use parent model_type for multimodal models in result
For multimodal models like CLIP, resolve_loader_config narrows the
hf_config to a sub-config (e.g. CLIPTextConfig with model_type
"clip_text_model"). The narrowed type is correct for internal
registry lookups (TasksManager, I/O specs), but the user-facing
InspectResult should show the parent model_type ("clip").
Use parent_hf_config.model_type for the display field while keeping
the narrowed model_type for all internal resolution paths.1 parent 299d352 commit 35671db
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
485 | 490 | | |
486 | | - | |
487 | | - | |
| 491 | + | |
| 492 | + | |
488 | 493 | | |
489 | 494 | | |
490 | 495 | | |
| |||
0 commit comments