[EPD][Model Loader] Skip language-model checkpoint shards for --mm-encoder-only (#58086)

Signed-off-by: grYe99 <guorongye99@gmail.com>
Co-authored-by: grYe99 <guorongye99@gmail.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
GuorongYe
2026-09-24 00:41:15 -07:00
committed by GitHub
co-authored by grYe99 Cursor Agent
parent c3f5270270
commit 1291bdb85e
5 changed files with 483 additions and 14 deletions
@@ -79,7 +79,7 @@ def test_default_loader_hf_still_falls_back_to_pt(tmp_path):
# Control: load_format="hf" still picks up .pt weights via fallback.
(tmp_path / "model.pt").write_bytes(b"\x00\x00\x00\x00")
loader = DefaultModelLoader(LoadConfig(load_format="hf"))
_, files, use_safetensors = loader._prepare_weights(
_, files, use_safetensors, _ = loader._prepare_weights(
str(tmp_path),
None,
None,