Download projector/configuration_projector.py from weili-0234/VideoRWKV7-VISTA200k: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/weili-0234/VideoRWKV7-VISTA200k/resolve/main/projector/configuration_projector.py
- Command line
-
hf download hf://weili-0234/VideoRWKV7-VISTA200k/projector/configuration_projector.py
-
curl -L -o configuration_projector.py https://huggingface.co/weili-0234/VideoRWKV7-VISTA200k/resolve/main/projector/configuration_projector.py
601 Bytes
| # Copyright (c) OpenMMLab. All rights reserved. | |
| from transformers import PretrainedConfig | |
| class ProjectorConfig(PretrainedConfig): | |
| model_type = 'projector' | |
| _auto_class = 'AutoConfig' | |
| def __init__( | |
| self, | |
| visual_hidden_size=4096, | |
| llm_hidden_size=4096, | |
| depth=2, | |
| hidden_act='gelu', | |
| bias=True, | |
| **kwargs, | |
| ): | |
| self.visual_hidden_size = visual_hidden_size | |
| self.llm_hidden_size = llm_hidden_size | |
| self.depth = depth | |
| self.hidden_act = hidden_act | |
| self.bias = bias | |
| super().__init__(**kwargs) | |