Skip to content

Commit

Permalink
remove torchao dependency (#2599)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
guangy10 authored and facebook-github-bot committed Mar 23, 2024
1 parent 4c99948 commit a9dc341
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ci/docker/ci_commit_pins/pytorch.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ef0d470eb372a5e68f6332bea9b1df26fca28b59
export-D55263008
1 change: 0 additions & 1 deletion examples/models/llama2/quantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import torch.nn.functional as F
from .ops.quantized_ops import * # noqa

# TODO: move to correct place
from torchao.quantization.quant_primitives import (
get_group_qparams_symmetric,
group_quantize_tensor_symmetric,
Expand Down
1 change: 0 additions & 1 deletion exir/passes/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ python_library(
"//caffe2:torch",
"//executorch/exir:pass_base",
"//executorch/exir/dialects:lib",
"//pytorch/ao:torchao",
],
)

Expand Down
2 changes: 1 addition & 1 deletion exir/passes/_quant_patterns_and_replacements.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
should_lower_to_edge,
)
from torch import fx
from torchao.quantization.quant_primitives import quantized_decomposed_lib
from torch.ao.quantization.fx._decomposed import quantized_decomposed_lib


__all__ = [
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ dependencies=[
"sympy",
"tabulate",
"tomli",
"torchao-nightly",
"zstd",
]

Expand Down

0 comments on commit a9dc341

Please sign in to comment.