[builder] builder for scaled_upper_triang_masked_softmax (#2234)

This commit is contained in:
Jiarui Fang
2022-12-30 09:58:00 +08:00
committed by GitHub
parent 31fe84237b
commit db4cbdc7fb
6 changed files with 53 additions and 18 deletions

View File

@@ -324,7 +324,7 @@ def main():
if n >= WARMUP_STEPS:
tflops_list.append(step_tflops)
logger.info(f"max memory {torch.cuda.memory_allocated() / 1024**2} MB", ranks=[0])
logger.info(f"max memory {torch.cuda.max_memory_allocated() / 1024**2} MB", ranks=[0])
tflops_list.sort()
median_index = ((NUM_STEPS - WARMUP_STEPS) >> 1) + WARMUP_STEPS