Skip to content

Commit f9adfef

Browse files
committed
update
1 parent 7f54e45 commit f9adfef

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/parallax/utils/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,7 @@ def load_config_only(name: str, local_files_only: bool = False):
303303
def normalize_model_config(config: dict) -> dict:
304304
"""Expose nested text model fields at the top level for VLM-style configs."""
305305
text_config = config.get("text_config")
306-
if config.get("model_type") in {"qwen3_5", "qwen3_5_moe"} and isinstance(
307-
text_config, dict
308-
):
306+
if config.get("model_type") in {"qwen3_5", "qwen3_5_moe"} and isinstance(text_config, dict):
309307
normalized = {**config, **text_config}
310308
normalized["model_type"] = config["model_type"]
311309
normalized["architectures"] = config.get("architectures", normalized.get("architectures"))

tests/test_shard_loader.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ def test_qwen35_moe_uses_qwen35_text_args_and_sanitizer_module():
144144
}
145145
)
146146

147-
sanitizer_module, model_args = loader._load_mlx_lm_module_and_args(
148-
"qwen3_5_moe", config
149-
)
147+
sanitizer_module, model_args = loader._load_mlx_lm_module_and_args("qwen3_5_moe", config)
150148

151149
assert MODEL_CLASS_MAP["qwen3_5_moe"] == "mlx_lm.models.qwen3_5"
152150
assert sanitizer_module.__name__ == "mlx_lm.models.qwen3_5"

0 commit comments

Comments
 (0)