Skip to content

Commit c2c5186

Browse files
committed
fix: update model configuration parameters in test files for consistency
1 parent 6d9d951 commit c2c5186

6 files changed

Lines changed: 18 additions & 18 deletions

test/convergence/bf16/test_mini_models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,10 @@
552552
vision_config=CLIPVisionConfig(
553553
hidden_size=1024,
554554
image_size=336,
555-
intermediate_size=2048, #4096
555+
intermediate_size=2048, # 4096
556556
model_type="clip_vision_model",
557-
num_attention_heads=4, #16
558-
num_hidden_layers=4, #24
557+
num_attention_heads=4, # 16
558+
num_hidden_layers=4, # 24
559559
patch_size=14,
560560
projection_dim=768,
561561
vocab_size=32000,

test/convergence/bf16/test_mini_models_multimodal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,10 @@
357357
vision_config=CLIPVisionConfig(
358358
hidden_size=1024,
359359
image_size=336,
360-
intermediate_size=4096,
360+
intermediate_size=2048, # 4096
361361
model_type="clip_vision_model",
362-
num_attention_heads=16,
363-
num_hidden_layers=24,
362+
num_attention_heads=4, # 16
363+
num_hidden_layers=4, # 24
364364
patch_size=14,
365365
projection_dim=768,
366366
vocab_size=32000,

test/convergence/bf16/test_mini_models_with_logits.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,10 @@
553553
vision_config=CLIPVisionConfig(
554554
hidden_size=1024,
555555
image_size=336,
556-
intermediate_size=4096,
556+
intermediate_size=2048, # 4096
557557
model_type="clip_vision_model",
558-
num_attention_heads=16,
559-
num_hidden_layers=24,
558+
num_attention_heads=4, # 16
559+
num_hidden_layers=4, # 24
560560
patch_size=14,
561561
projection_dim=768,
562562
vocab_size=32000,

test/convergence/fp32/test_mini_models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,10 @@
580580
vision_config=CLIPVisionConfig(
581581
hidden_size=1024,
582582
image_size=336,
583-
intermediate_size=4096,
583+
intermediate_size=2048, # 4096
584584
model_type="clip_vision_model",
585-
num_attention_heads=16,
586-
num_hidden_layers=24,
585+
num_attention_heads=4, # 16
586+
num_hidden_layers=4, # 24
587587
patch_size=14,
588588
projection_dim=768,
589589
vocab_size=32000,

test/convergence/fp32/test_mini_models_multimodal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,10 @@
357357
vision_config=CLIPVisionConfig(
358358
hidden_size=1024,
359359
image_size=336,
360-
intermediate_size=4096,
360+
intermediate_size=2048, # 4096
361361
model_type="clip_vision_model",
362-
num_attention_heads=16,
363-
num_hidden_layers=24,
362+
num_attention_heads=4, # 16
363+
num_hidden_layers=4, # 24
364364
patch_size=14,
365365
projection_dim=768,
366366
vocab_size=32000,

test/convergence/fp32/test_mini_models_with_logits.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,10 @@
553553
vision_config=CLIPVisionConfig(
554554
hidden_size=1024,
555555
image_size=336,
556-
intermediate_size=4096,
556+
intermediate_size=2048, # 4096
557557
model_type="clip_vision_model",
558-
num_attention_heads=16,
559-
num_hidden_layers=24,
558+
num_attention_heads=4, # 16
559+
num_hidden_layers=4, # 24
560560
patch_size=14,
561561
projection_dim=768,
562562
vocab_size=32000,

0 commit comments

Comments
 (0)