Download ThinkStream/thinkstream/model/__init__.py from JohnCage/stream-tbstars: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/JohnCage/stream-tbstars/resolve/main/ThinkStream/thinkstream/model/__init__.py
- Command line
-
hf download hf://JohnCage/stream-tbstars/ThinkStream/thinkstream/model/__init__.py
-
curl -L -o __init__.py https://huggingface.co/JohnCage/stream-tbstars/resolve/main/ThinkStream/thinkstream/model/__init__.py
626 Bytes
| from transformers import ( | |
| PretrainedConfig, | |
| Qwen2_5_VLForConditionalGeneration, | |
| # Qwen3VLForConditionalGeneration, | |
| ) | |
| from thinkstream.model.casia.casia_vl import Qwen3VLForConditionalGeneration | |
| MODEL_CLS = { | |
| "qwen2.5vl": Qwen2_5_VLForConditionalGeneration, | |
| "qwen3vl": Qwen3VLForConditionalGeneration, | |
| } | |
| DEFAULT_VIDEO_FLEX_WINDOW_SIZE = 20 | |
| def get_text_config(config: PretrainedConfig) -> PretrainedConfig: | |
| """Return the text backbone sub-config, handling both flat and nested layouts.""" | |
| tc = getattr(config, "text_config", None) | |
| return tc if tc is not None else config | |