Skip to content

Commit ebf1db5

Browse files
committed
updates
1 parent 7725271 commit ebf1db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/models/test_modeling_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ def get_memory_usage(storage_dtype, compute_dtype):
14181418
self.assertTrue(fp8_e4m3_bf16_memory_footprint < fp8_e4m3_fp32_memory_footprint < fp32_memory_footprint)
14191419
# NOTE: the following assertion will fail on our CI (running Tesla T4) due to bf16 using more memory than fp32.
14201420
# On other devices, such as DGX (Ampere) and Audace (Ada), the test passes.
1421-
if compute_capability >= LEAST_COMPUTE_CAPABILITY:
1421+
if compute_capability and compute_capability >= LEAST_COMPUTE_CAPABILITY:
14221422
self.assertTrue(fp8_e4m3_bf16_max_memory < fp8_e4m3_fp32_max_memory)
14231423
# On this dummy test case with a small model, sometimes fp8_e4m3_fp32 max memory usage is higher than fp32 by a few
14241424
# bytes. This only happens for some models, so we allow a small tolerance.

0 commit comments

Comments
 (0)