-
Notifications
You must be signed in to change notification settings - Fork 344
Closed
Description
I just rebased on latest main branch, running float8 tests fails with an unrelated error:
(pytorch) [[email protected] ~/local/ao (main)]$ pytest test/float8/test_base.py -s -x
======================================================================================================= test session starts =======================================================================================================
platform linux -- Python 3.11.0, pytest-8.3.3, pluggy-1.5.0
rootdir: /data/users/vasiliy/ao
plugins: hypothesis-6.111.2, typeguard-4.3.0
collected 0 items / 1 error
============================================================================================================= ERRORS ==============================================================================================================
____________________________________________________________________________________________ ERROR collecting test/float8/test_base.py ____________________________________________________________________________________________
test/float8/test_base.py:19: in <module>
from torchao.utils import TORCH_VERSION_AT_LEAST_2_5
torchao/__init__.py:31: in <module>
from torchao.quantization import (
torchao/quantization/__init__.py:8: in <module>
from .quant_api import * # noqa: F403
torchao/quantization/quant_api.py:26: in <module>
from torchao.dtypes.uintx.uintx import UintxLayoutType
torchao/dtypes/__init__.py:4: in <module>
from .affine_quantized_tensor import (
torchao/dtypes/affine_quantized_tensor.py:3: in <module>
import torchao.ops
torchao/ops.py:8: in <module>
lib.define("quant_llm_linear(int EXPONENT, int MANTISSA, Tensor _in_feats, Tensor _weights, Tensor _scales, int splitK) -> Tensor")
../pytorch/torch/library.py:146: in define
result = self.m.define(schema, alias_analysis, tuple(tags))
E RuntimeError: Tried to register an operator (torchao::quant_llm_linear(int EXPONENT, int MANTISSA, Tensor _in_feats, Tensor _weights, Tensor _scales, int splitK) -> Tensor) with the same name and overload name multiple times. Each overload's schema should only be registered with a single call to def(). Duplicate registration: registered at /dev/null:241. Original registration: registered at /data/users/vasiliy/ao/torchao/csrc/fp6_llm.cpp:5
===================================================================================================== short test summary info =====================================================================================================
ERROR test/float8/test_base.py - RuntimeError: Tried to register an operator (torchao::quant_llm_linear(int EXPONENT, int MANTISSA, Tensor _in_feats, Tensor _weights, Tensor _scales, int splitK) -> Tensor) with the same name and overload name multiple tim...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!======================================================================================================== 1 error in 1.85s =========================================================================================================
(pytorch) [[email protected] ~/local/ao (main)]$ git log -n 1
commit 9229df9acd912bcf00e8faf138a33382d94e23b2 (HEAD -> main, origin/main, origin/HEAD)
Author: Apurva Jain <[email protected]>
Date: Tue Oct 1 17:55:26 2024 -0700
Float8 dynamic autoquant (#946)
(pytorch) [[email protected] ~/local/ao (main)]$ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
Metadata
Metadata
Assignees
Labels
No labels