add some small modifications

This commit is contained in:
Geoffrey19
2025-12-17 11:16:53 +08:00
committed by Michel Aractingi
parent 51bd288f1a
commit 9ce6dd9e25
@@ -209,6 +209,7 @@ class Qwen2_5_VLConfig(PretrainedConfig):
self.use_sliding_window = use_sliding_window
self.sliding_window = sliding_window
self.max_window_layers = max_window_layers
self.layer_types = ["dense"] * num_hidden_layers
# for backward compatibility
if num_key_value_heads is None:
@@ -239,5 +240,9 @@ class Qwen2_5_VLConfig(PretrainedConfig):
super().__init__(tie_word_embeddings=tie_word_embeddings, **kwargs)
@property
def text_config(self):
return self
__all__ = ["Qwen2_5_VLConfig"]