Download src/InternVLA-M1/InternVLA/model/framework/__init__.py from Tinghong-Ye22/code-Psi0-yth-v21: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/Tinghong-Ye22/code-Psi0-yth-v21/resolve/main/src/InternVLA-M1/InternVLA/model/framework/__init__.py
- Command line
-
hf download hf://Tinghong-Ye22/code-Psi0-yth-v21/src/InternVLA-M1/InternVLA/model/framework/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Tinghong-Ye22/code-Psi0-yth-v21/resolve/main/src/InternVLA-M1/InternVLA/model/framework/__init__.py
772 Bytes
| """ | |
| Framework factory utilities. | |
| Selects and instantiates a registered framework implementation based on config. | |
| """ | |
| def build_framework(cfg): | |
| """ | |
| Build a framework model from config. | |
| Args: | |
| cfg: Config object (OmegaConf / namespace) containing: | |
| cfg.framework.framework_py: Identifier string (e.g. "InternVLA-M1") | |
| Returns: | |
| nn.Module: Instantiated framework model. | |
| Raises: | |
| NotImplementedError: If the specified framework id is unsupported. | |
| """ | |
| if cfg.framework.framework_py == "InternVLA-M1": | |
| from InternVLA.model.framework.M1 import build_model_framework | |
| return build_model_framework(cfg) | |
| raise NotImplementedError(f"Framework {cfg.framework.framework_py} is not implemented.") | |