Spaces:
Sleeping
Sleeping
Fix config lift model_type priority: gpt_oss InternVL3.5 wrapper now HIGH
Browse files304 unmodified lines305306307308309310311312313314315316317304 unmodified linesif candidate:# One level deepif candidate.get("vocab_size"):config = {**candidate, **{k: v for k, v in config.items() if k not in _SKIP_KEYS}}break# Two levels deep (e.g. thinker_config.text_config)for inner_key in _NESTED_KEYS:inner = candidate.get(inner_key, {})if inner and inner.get("vocab_size"):config = {**inner, **{k: v for k, v in config.items() if k not in _SKIP_KEYS}}breakelse:continue304 unmodified lines305306307308309310311312313314315316317318319320321322304 unmodified linesif candidate:# One level deepif candidate.get("vocab_size"):# Let nested model_type win over top-level wrapper typeouter = {k: v for k, v in config.items()if k not in _SKIP_KEYS and k != "model_type"}config = {**outer, **candidate}break# Two levels deep (e.g. thinker_config.text_config)for inner_key in _NESTED_KEYS:inner = candidate.get(inner_key, {})if inner and inner.get("vocab_size"):outer = {k: v for k, v in config.items()if k not in _SKIP_KEYS and k != "model_type"}config = {**outer, **inner}breakelse:continue
scan.py+7-2