-
Stefy Lanza (nextime / spora ) authored
The pre-load check went through AutoConfig, which reaches the network — 20 s on the first call against 0.8 s once local — and with trust_remote_code EXECUTES the repo own config code, another 2.7-5.6 s, to read two plain JSON fields. A validation that can hang is not a validation. It now reads config.json from what is already on disk (a local directory, or the hub cache via try_to_load_from_cache) and judges from vision_config, model_type and architectures: 0.1 ms, no network, no remote code. A model whose config is not here yet is still not judged — the load fetches it and the check on the loaded object decides. Co-Authored-By:
Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014T3rZozi1Ehk96NG1WesgC
37f1040d