Skip to content

Commit f240c77

Browse files
committed
Fix dependencies
1 parent 08e45c2 commit f240c77

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

build/gguf_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
import torch
1515

1616
from gguf import GGUFValueType
17-
from quantization.quantize import pack_scales_and_zeros, WeightOnlyInt4Linear
18-
17+
from quantization.qops import LinearInt4 as WeightOnlyInt4Linear
18+
from quantization.quantize import pack_scales_and_zeros
1919
from build.gguf_util import Q4_0, to_float
2020
from build.model import ModelArgs, Transformer
2121

install_requirements.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ fi
6464
# pip packages needed by exir.
6565
REQUIREMENTS_TO_INSTALL=(
6666
torch=="2.5.0.${NIGHTLY_VERSION}"
67-
torchao-nightly=="2024.6.29"
6867
)
6968

7069
# Install the requirements. `--extra-index-url` tells pip to look for package
@@ -74,7 +73,7 @@ $PIP_EXECUTABLE install --extra-index-url "${TORCH_NIGHTLY_URL}" \
7473

7574
# For torchao need to install from github since nightly build doesn't have macos build.
7675
# TODO: Remove this and install nightly build, once it supports macos
77-
$PIP_EXECUTABLE install git+https://github.com/pytorch/ao.git@v0.3.0
76+
$PIP_EXECUTABLE install git+https://github.com/pytorch/ao.git@a35a1cd7b250df471fca49852f7e8b69cbbf38bf
7877
if [[ -x "$(command -v nvidia-smi)" ]]; then
7978
$PYTHON_EXECUTABLE scripts/patch_triton.py
8079
fi

0 commit comments

Comments
 (0)