File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 14
14
import torch
15
15
16
16
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
19
19
from build .gguf_util import Q4_0 , to_float
20
20
from build .model import ModelArgs , Transformer
21
21
Original file line number Diff line number Diff line change 64
64
# pip packages needed by exir.
65
65
REQUIREMENTS_TO_INSTALL=(
66
66
torch==" 2.5.0.${NIGHTLY_VERSION} "
67
- torchao-nightly==" 2024.6.29"
68
67
)
69
68
70
69
# 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}" \
74
73
75
74
# For torchao need to install from github since nightly build doesn't have macos build.
76
75
# 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
78
77
if [[ -x " $( command -v nvidia-smi) " ]]; then
79
78
$PYTHON_EXECUTABLE scripts/patch_triton.py
80
79
fi
You can’t perform that action at this time.
0 commit comments