Skip to content

Commit a9dc341

Browse files
guangy10facebook-github-bot
authored andcommitted
remove torchao dependency (#2599)
Summary: X-link: pytorch/pytorch#122524 Pull Request resolved: #2599 bypass-github-export-checks bypass-github-pytorch-ci-checks bypass-github-executorch-ci-checks Reviewed By: jerryzh168 Differential Revision: D55263008 fbshipit-source-id: e62d8df96fb64b811cd3ecf4e547bbb9e9fefcc7
1 parent 4c99948 commit a9dc341

File tree

5 files changed

+2
-5
lines changed

5 files changed

+2
-5
lines changed

.ci/docker/ci_commit_pins/pytorch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ef0d470eb372a5e68f6332bea9b1df26fca28b59
1+
export-D55263008

examples/models/llama2/quantize.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import torch.nn.functional as F
1414
from .ops.quantized_ops import * # noqa
1515

16-
# TODO: move to correct place
1716
from torchao.quantization.quant_primitives import (
1817
get_group_qparams_symmetric,
1918
group_quantize_tensor_symmetric,

exir/passes/TARGETS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ python_library(
127127
"//caffe2:torch",
128128
"//executorch/exir:pass_base",
129129
"//executorch/exir/dialects:lib",
130-
"//pytorch/ao:torchao",
131130
],
132131
)
133132

exir/passes/_quant_patterns_and_replacements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
should_lower_to_edge,
1515
)
1616
from torch import fx
17-
from torchao.quantization.quant_primitives import quantized_decomposed_lib
17+
from torch.ao.quantization.fx._decomposed import quantized_decomposed_lib
1818

1919

2020
__all__ = [

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ dependencies=[
2121
"sympy",
2222
"tabulate",
2323
"tomli",
24-
"torchao-nightly",
2524
"zstd",
2625
]
2726

0 commit comments

Comments
 (0)