Require the model_index.json to sit at the snapshot ROOT before flagging a cached repo as pipeline-loadable: CachedFileInfo.file_name is the basename, so the previous name match also claimed nested copies (subdir/model_index.json) and the picker then sent a from_pretrained load that fails only after the GPU handoff. Scope by file_path against the revision's snapshot_path. Validate the maximum derived seed before the multi-run image loop: an explicit seed near 2**53-1 plus the per-run offset (base + i*batchSize) exceeded the backend cap and 422'd a later run after earlier images had already generated. Route local single-file .safetensors picks on the Images and Video pages through the single_file load path (parent dir + basename), matching the local GGUF branch: the pipeline route rejects a bare file with no model_index.json, and only after evicting the resident model. |
||
|---|---|---|
| .. | ||
| assets | ||
| auth | ||
| core | ||
| hub | ||
| loggers | ||
| models | ||
| plugins | ||
| requirements | ||
| routes | ||
| state | ||
| storage | ||
| tests | ||
| utils | ||
| __init__.py | ||
| _platform_compat.py | ||
| cloudflare_tunnel.py | ||
| colab.py | ||
| main.py | ||
| run.py | ||
| startup_banner.py | ||