Skip to content

Bumping ET Pin to 7-18-2024 #927

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

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,12 @@ jobs:
fi
- name: Install requirements
run: |
# Have to install ET first because deps of Torchchat might not be the same.
export TORCHCHAT_ROOT=$PWD
./scripts/install_et.sh

echo "Intalling pip3 packages"
./install_requirements.sh

export TORCHCHAT_ROOT=$PWD
./scripts/install_et.sh

pip3 list
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")'
Expand Down
2 changes: 1 addition & 1 deletion .pins/et-pin.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
172574a6be5910a4609e4ed1bef2b6b8475ddb3d
544462d08428d0d1fee2f22a82e1b9489ed9f318
2 changes: 2 additions & 0 deletions build/model_et.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import torch.nn as nn
from executorch.extension.pybindings import portable_lib as exec_lib

# ET changed the way it's loading the custom ops so it's not included in portable_lib but has to be loaded separately.
from executorch.examples.models.llama2.custom_ops import sdpa_with_kv_cache # no-qa

class PTEModel(nn.Module):
def __init__(self, config, path) -> None:
Expand Down
2 changes: 1 addition & 1 deletion install_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ $PIP_EXECUTABLE install --extra-index-url "${TORCH_NIGHTLY_URL}" \

# For torchao need to install from github since nightly build doesn't have macos build.
# TODO: Remove this and install nightly build, once it supports macos
$PIP_EXECUTABLE install git+https://github.com/pytorch/ao.git@ca1b98db60543a1669a32e842762fc008c178376
$PIP_EXECUTABLE install git+https://github.com/pytorch/ao.git@d36de1b144b73bf753bd082109c2b5d0141abd5b
if [[ -x "$(command -v nvidia-smi)" ]]; then
$PYTHON_EXECUTABLE scripts/patch_triton.py
fi
2 changes: 1 addition & 1 deletion runner/run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void build_transformer(
#else //__ET_MODEL__
t->runner = new Module(
/* path to PTE model */ model_path,
/* PTE mmap settings */ Module::MlockConfig::UseMlockIgnoreErrors);
/* PTE mmap settings */ Module::LoadMode::MmapUseMlockIgnoreErrors);
#endif
}

Expand Down
Loading