Skip to content

Commit 22d2d44

Browse files
authored
Fix flux image_generation_test. Change input dim to match encoder (#1726)
Quick fix to address issue a failing test for `experiments/flux` that I encountered and opened and described in #1725. Fix is to match `context_in_dim` to the corresponding text embedding size of the encoder model `t5-v1_1-base`.
1 parent 5a8256c commit 22d2d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchtitan/experiments/flux/tests/test_generate_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_generate_image(self):
9898
t1 = time.perf_counter()
9999

100100
model = self._get_test_model(
101-
context_in_dim=4096, device=torch_device, dtype=torch.bfloat16
101+
context_in_dim=768, device=torch_device, dtype=torch.bfloat16
102102
)
103103
model.eval()
104104

0 commit comments

Comments
 (0)