Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit ed7eba8

Browse files
committed
Ufmt and bash fix
1 parent 9344b72 commit ed7eba8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

float8_experimental/float8_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
from typing import Literal, Tuple
88

9+
import float8_experimental.config as config
10+
911
import torch
1012
import torch.distributed as dist
1113

12-
import float8_experimental.config as config
13-
1414
# Helpful visualizer for debugging (only supports fp32):
1515
# https://www.h-schmidt.net/FloatConverter/IEEE754.html
1616

test/test_dtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
Float8RowwiseParallel,
2626
PrepareFloat8ModuleInput,
2727
)
28-
from float8_experimental.float8_utils import tensor_to_scale, e4m3_dtype
28+
from float8_experimental.float8_utils import e4m3_dtype, tensor_to_scale
2929
from torch.distributed._tensor import distribute_tensor, DTensor, Replicate, Shard
3030
from torch.distributed.device_mesh import DeviceMesh, init_device_mesh
3131
from torch.distributed.tensor.parallel import parallelize_module

test/test_everything.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# terminate script on first error
44
set -e
5-
IS_ROCM=$(rocm-smi --version)
5+
IS_ROCM=$(rocm-smi --version || true)
66

77
pytest test/test_base.py
88
pytest test/test_sam.py

0 commit comments

Comments
 (0)