Skip to content

Commit ccf54b9

Browse files
committed
test fix
Signed-off-by: Pawel Gadzinski <[email protected]>
1 parent 7df9094 commit ccf54b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/pytorch/test_cpu_offloading.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@
5454

5555

5656
class Utils:
57+
# Tensor big engough that both data and scaling factor tensor are bigger than 256 * 1024 elements,
58+
# so that they are offloaded to GPU.
5759
tensor1 = torch.randn((1024, 1024), device="cuda", dtype=torch.bfloat16)
58-
_B = 64
59-
_S = 256
60+
_B = 128
61+
_S = 512
6062
_H = 4
6163
_D = 256
6264

0 commit comments

Comments
 (0)