Skip to content

Commit

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

* Ruff auto-format
  • Loading branch information
jainapurva authored Sep 6, 2024
1 parent 88440e8 commit 144445a
Show file tree
Hide file tree
Showing 9 changed files with 694 additions and 263 deletions.
7 changes: 7 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# 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 @@ -10,4 +12,9 @@ include = [
"torchao/float8/float8_tensor.py",
"torchao/quantization/linear_activation_weight_observer.py",
"test/quantization/test_observer.py",
"torchao/dtypes/*"
]

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

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

0 comments on commit 144445a

Please sign in to comment.