Spaces:
Sleeping
Sleeping
Reuben Tan
commited on
Commit
·
eef4692
1
Parent(s):
09b656f
test new path
Browse files
global_local/models/video_instruction_ft_model.py
CHANGED
@@ -30,6 +30,12 @@ class VideoInstructionFTLLAMA(Blip2Base):
|
|
30 |
|
31 |
@classmethod
|
32 |
def init_video_Qformer(cls, num_query_token, vision_width,num_hidden_layers =2):
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
encoder_config = BertConfig.from_pretrained("bert-base-uncased")
|
34 |
encoder_config.num_hidden_layers = num_hidden_layers
|
35 |
encoder_config.encoder_width = vision_width
|
|
|
30 |
|
31 |
@classmethod
|
32 |
def init_video_Qformer(cls, num_query_token, vision_width,num_hidden_layers =2):
|
33 |
+
|
34 |
+
model = AutoModel.from_pretrained("bert-base-uncased")
|
35 |
+
model.push_to_hub("bert-base-uncased")
|
36 |
+
#model.push_to_hub("huggingface/bert-base-uncased")
|
37 |
+
sys.exit()
|
38 |
+
|
39 |
encoder_config = BertConfig.from_pretrained("bert-base-uncased")
|
40 |
encoder_config.num_hidden_layers = num_hidden_layers
|
41 |
encoder_config.encoder_width = vision_width
|