-
Notifications
You must be signed in to change notification settings - Fork 250
Update ARM CPU experimental kernels from AO to leverage pip install #1458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
bdac616
update experimental kernels in torchchat
metascroy 74363e4
Update docs/quantization.md
metascroy 48f568d
Update torchchat/utils/quantize.py
metascroy 525701d
Update torchchat/utils/quantize.py
metascroy f9a7bb9
Fixing import typo in quantize.py
Jack-Khuu 0abe175
Bump ET pin to pick up AO changes
Jack-Khuu 95304b8
Merge branch 'main' into new-intx-quantizer
Jack-Khuu 76e8ec5
Bump torchao-pin to match ET and torchchat
Jack-Khuu c2108d6
Merge branch 'main' into new-intx-quantizer
Jack-Khuu 4ee1b96
Merge branch 'main' into new-intx-quantizer
Jack-Khuu 61a1c62
Merge branch 'main' into new-intx-quantizer
Jack-Khuu 3e04645
Update torchao-pin.txt
Jack-Khuu 94fcd9a
Split up AOTI and ET tests
Jack-Khuu 7e56c55
Bump ET pin to 2-26-25 with new AO pin
Jack-Khuu 77e8a62
Undo et pin bump; fails basic install
Jack-Khuu 67dd729
Merge branch 'main' into new-intx-quantizer
Jack-Khuu 94ad51a
update
metascroy 34cb931
up
metascroy b564fc1
up
metascroy 9eed5d1
up
metascroy 14365c4
up
metascroy 66d90e1
up
metascroy 12cbd13
up
metascroy 28d1a99
up
metascroy d2cc25a
up
metascroy d79f870
up
metascroy a8106fd
up
metascroy aa6fb70
up
metascroy 8a9a644
up
metascroy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2e032c6b0de960dee554dcb08126ace718b14c6d | ||
711fa0809f06fc97febd0c3fe72563c3fe227e51 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
# | ||
# This source code is licensed under the BSD-style license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
|
||
# USE_CPP=1 indicates that the torchao experimental aten kernels will be built and loaded | ||
# if on Mac with Apple Silicon | ||
|
||
if [ -z "${PYTHON_EXECUTABLE:-}" ]; | ||
then | ||
if [[ -z ${CONDA_DEFAULT_ENV:-} ]] || [[ ${CONDA_DEFAULT_ENV:-} == "base" ]] || [[ ! -x "$(command -v python)" ]]; | ||
then | ||
PYTHON_EXECUTABLE=python3 | ||
else | ||
PYTHON_EXECUTABLE=python | ||
fi | ||
fi | ||
echo "Using python executable: $PYTHON_EXECUTABLE" | ||
|
||
if [[ "$PYTHON_EXECUTABLE" == "python" ]]; | ||
then | ||
PIP_EXECUTABLE=pip | ||
elif [[ "$PYTHON_EXECUTABLE" == "python3" ]]; | ||
then | ||
PIP_EXECUTABLE=pip3 | ||
else | ||
PIP_EXECUTABLE=pip${PYTHON_SYS_VERSION} | ||
fi | ||
echo "Using pip executable: $PIP_EXECUTABLE" | ||
|
||
|
||
export TORCHAO_PIN=$(cat install/.pins/torchao-pin.txt) | ||
( | ||
set -x | ||
USE_CPP=1 $PIP_EXECUTABLE install git+https://github.com/pytorch/ao.git@${TORCHAO_PIN} | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.