Skip to content

Commit 58c5455

Browse files
Remove torchao nightly version check in mx component (#1872)
Nightly build is no longer required for MXFP8
1 parent 8631e19 commit 58c5455

File tree

1 file changed

+0
-9
lines changed
  • torchtitan/components/quantization

1 file changed

+0
-9
lines changed

torchtitan/components/quantization/mx.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# LICENSE file in the root directory of this source tree.
66

77
from functools import partial
8-
from importlib.metadata import version
98
from importlib.util import find_spec
109
from typing import Any, List
1110

@@ -108,14 +107,6 @@ def __init__(self, job_config: JobConfig, parallel_dims: ParallelDims):
108107
raise ImportError(
109108
"torchao is not installed. Please install it to use MXFP8 linear layers."
110109
)
111-
torchao_version = version("torchao")
112-
113-
# Require latest release or nightly builds for prototype features
114-
is_nightly_build = torchao_version.startswith("0.14.0")
115-
if not is_nightly_build:
116-
raise ImportError(
117-
f"torchao version {torchao_version} is too old, please install torchao nightly build and try again"
118-
)
119110

120111
# Can be removed if we enable the emulated versions
121112
assert has_cuda_capability(

0 commit comments

Comments
 (0)