{"record":{"id":"017cae12bf0a6d95","repo":"sgl-project/sglang","slug":"f-no-safetensors-files-found-in-component-model-p","errorCode":null,"errorMessage":"f\"No safetensors files found in {component_model_path}\"","messagePattern":"f\"No safetensors files found in (.+?)\"","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/sglang/multimodal_gen/runtime/loader/component_loaders/bridge_loader.py","lineNumber":64,"sourceCode":"            server_args.pipeline_config, self.pipeline_bridge_config_attr, None\n        )\n        if bridge_config is not None:\n            bridge_config.update_model_arch(config)\n        else:\n            # Create a minimal config from hf_config\n            from sglang.multimodal_gen.configs.models.bridges.mova_dual_tower import (\n                MOVADualTowerConfig,\n            )\n\n            bridge_config = MOVADualTowerConfig()\n            bridge_config.update_model_arch(config)\n\n        model_cls, _ = ModelRegistry.resolve_model_cls(class_name)\n\n        # Find all safetensors files\n        safetensors_list = _list_safetensors_files(component_model_path)\n        if not safetensors_list:\n            raise ValueError(f\"No safetensors files found in {component_model_path}\")\n\n        default_dtype = resolve_precision(\n            server_args, component_name, precision_attr=\"dit_precision\"\n        )\n\n        logger.info(\n            \"Loading %s from %s safetensors files, default_dtype: %s\",\n            class_name,\n            len(safetensors_list),\n            default_dtype,\n        )\n\n        use_fsdp = server_args.should_use_fsdp_for_component(component_name)\n        component_starts_on_cpu = server_args.should_start_component_on_cpu(\n            component_name\n        )\n\n        # Use the FSDP loader when FSDP is requested or shard rules are declared.","sourceCodeStart":46,"sourceCodeEnd":82,"githubUrl":"https://github.com/sgl-project/sglang/blob/0132848349585cfe6aae51c4941cbae872505f8a/python/sglang/multimodal_gen/runtime/loader/component_loaders/bridge_loader.py#L46-L82","documentation":"After resolving the model class, the bridge loader globs the component directory for *.safetensors files. If none are found it raises this ValueError, because there are no weights to load into the bridge model.","triggerScenarios":"load_customized on a directory containing only .bin/.pt checkpoints, an empty weights folder, or a subdirectory layout (e.g. a nested subfolder holding the safetensors) that the glob doesn't cover.","commonSituations":"Checkpoint downloaded partially (weights missing); weights stored in pytorch_model.bin format from an older export; wrong path given so the directory exists but has no weight files.","solutions":["Verify the directory actually contains *.safetensors files: ls <component_model_path>","Convert .bin checkpoints to safetensors or re-export the component with a recent diffusers/transformers version","Fix the component path in server args to point at the directory that holds the safetensors shards"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"from pathlib import Path\n\nst = list(Path(component_model_path).glob(\"*.safetensors\"))\nassert st, f\"no safetensors in {component_model_path}\"","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Check component directories contain *.safetensors before launch","Re-verify downloads after pulling checkpoints (file counts/sizes)"],"tags":["model-loading","safetensors","missing-weights"],"backgroundTag":"checkpoint-files-not-found","analyzedSha":"0132848349585cfe6aae51c4941cbae872505f8a","analyzedAt":"2026-08-28T05:10:05.995Z","schemaVersion":2},"datasetVersion":"2026-08-28T06:17:29.519Z"}