mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-23 09:46:00 +00:00
add some small modifications
This commit is contained in:
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.use_sliding_window = use_sliding_window
|
||||||
self.sliding_window = sliding_window
|
self.sliding_window = sliding_window
|
||||||
self.max_window_layers = max_window_layers
|
self.max_window_layers = max_window_layers
|
||||||
|
self.layer_types = ["dense"] * num_hidden_layers
|
||||||
|
|
||||||
# for backward compatibility
|
# for backward compatibility
|
||||||
if num_key_value_heads is None:
|
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)
|
super().__init__(tie_word_embeddings=tie_word_embeddings, **kwargs)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def text_config(self):
|
||||||
|
return self
|
||||||
|
|
||||||
|
|
||||||
__all__ = ["Qwen2_5_VLConfig"]
|
__all__ = ["Qwen2_5_VLConfig"]
|
||||||
|
|||||||
Reference in New Issue
Block a user