Skip to content

Commit

Permalink
Revert "Lint fixes #1 torchao/dtypes" (#836)
Browse files Browse the repository at this point in the history
Revert "Lint fixes #1 torchao/dtypes (#827)"

This reverts commit 144445a.

Co-authored-by: Mark Saroufim <[email protected]>
  • Loading branch information
2 people authored and jainapurva committed Sep 9, 2024
1 parent 50e670f commit a1d86bd
Show file tree
Hide file tree
Showing 9 changed files with 263 additions and 694 deletions.
7 changes: 0 additions & 7 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# We plan to add files in chunks using the 'include' list below.
# To add a new path: Simply add it to the 'include' list.
# Example: To lint all files in every subfolder of 'test', add "test/**/*"
# To exclude a file type: Simply add it to the 'include' list.
# Example: To lint all files in every subfolder of 'test', add "test/**/*"
include = [
"torchao/float8/inference.py",
"torchao/float8/float8_utils.py",
Expand All @@ -12,9 +10,4 @@ include = [
"torchao/float8/float8_tensor.py",
"torchao/quantization/linear_activation_weight_observer.py",
"test/quantization/test_observer.py",
"torchao/dtypes/*"
]

exclude = [
"**/*.md"
]
3 changes: 1 addition & 2 deletions torchao/dtypes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .nf4tensor import NF4Tensor, to_nf4

# from ..prototype.dtypes.uint2 import UInt2Tensor, BitnetTensor
from .uint4 import UInt4Tensor
from .affine_quantized_tensor import (
Expand All @@ -22,7 +21,7 @@
__all__ = [
"NF4Tensor",
"to_nf4",
"UInt4Tensor",
"UInt4Tensor"
"AffineQuantizedTensor",
"to_affine_quantized_intx",
"to_affine_quantized_intx_static",
Expand Down
Loading

0 comments on commit a1d86bd

Please sign in to comment.