Spaces:
Running on Zero
Running on Zero
Download models/bagel/__init__.py from hugging-apps/thinkmorph-ssl: direct link, hf CLI and curl.
- Browser
- Download file 708 Bytes
-
https://huggingface.co/spaces/hugging-apps/thinkmorph-ssl/resolve/main/models/bagel/__init__.py
- Command line
-
hf download hf://spaces/hugging-apps/thinkmorph-ssl/models/bagel/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/hugging-apps/thinkmorph-ssl/resolve/main/models/bagel/__init__.py
708 Bytes
| # Adapted from https://github.com/ByteDance-Seed/Bagel/blob/main/modeling/bagel/__init__.py | |
| # Copyright 2025 Bytedance Ltd. and/or its affiliates. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| from models.registry import register_model | |
| from .bagel import Bagel, BagelConfig | |
| from .monkey_patch import apply_liger_kernel_to_bagel | |
| from .qwen2_navit import Qwen2Config, Qwen2ForCausalLM, Qwen2Model | |
| from .siglip_navit import SiglipVisionConfig, SiglipVisionModel | |
| register_model( | |
| "bagel", | |
| BagelConfig, | |
| Bagel, | |
| ) | |
| __all__ = [ | |
| "BagelConfig", | |
| "Bagel", | |
| "Qwen2Config", | |
| "Qwen2Model", | |
| "Qwen2ForCausalLM", | |
| "SiglipVisionConfig", | |
| "SiglipVisionModel", | |
| "apply_liger_kernel_to_bagel", | |
| ] | |