Spaces:
Running on Zero
Running on Zero
File size: 708 Bytes
cd5905f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # 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",
]
|