Skip to content

Commit 14f6464

Browse files
authored
[Tests] Reduce the model size in the lumina test (huggingface#8985)
* Reduced model size for lumina-tests * Handled failing tests
1 parent ba5af5a commit 14f6464

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/pipelines/lumina/test_lumina_nextdit.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@ class LuminaText2ImgPipelinePipelineFastTests(unittest.TestCase, PipelineTesterM
3434
def get_dummy_components(self):
3535
torch.manual_seed(0)
3636
transformer = LuminaNextDiT2DModel(
37-
sample_size=16,
37+
sample_size=4,
3838
patch_size=2,
3939
in_channels=4,
40-
hidden_size=24,
40+
hidden_size=4,
4141
num_layers=2,
42-
num_attention_heads=3,
42+
num_attention_heads=1,
4343
num_kv_heads=1,
4444
multiple_of=16,
4545
ffn_dim_multiplier=None,
4646
norm_eps=1e-5,
4747
learn_sigma=True,
4848
qk_norm=True,
49-
cross_attention_dim=32,
49+
cross_attention_dim=8,
5050
scaling_factor=1.0,
5151
)
5252
torch.manual_seed(0)
@@ -57,8 +57,8 @@ def get_dummy_components(self):
5757

5858
torch.manual_seed(0)
5959
config = GemmaConfig(
60-
head_dim=4,
61-
hidden_size=32,
60+
head_dim=2,
61+
hidden_size=8,
6262
intermediate_size=37,
6363
num_attention_heads=4,
6464
num_hidden_layers=2,

0 commit comments

Comments
 (0)