File tree 5 files changed +8
-7
lines changed
5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -449,13 +449,12 @@ jobs:
449
449
fi
450
450
- name : Install requirements
451
451
run : |
452
- # Have to install ET first because deps of Torchchat might not be the same.
453
- export TORCHCHAT_ROOT=$PWD
454
- ./scripts/install_et.sh
455
-
456
452
echo "Intalling pip3 packages"
457
453
./install_requirements.sh
458
454
455
+ export TORCHCHAT_ROOT=$PWD
456
+ ./scripts/install_et.sh
457
+
459
458
pip3 list
460
459
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
461
460
python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")'
Original file line number Diff line number Diff line change 1
- 172574a6be5910a4609e4ed1bef2b6b8475ddb3d
1
+ c7574994ecd775fdaacc0f2de27089526e05b108
Original file line number Diff line number Diff line change 8
8
import torch .nn as nn
9
9
from executorch .extension .pybindings import portable_lib as exec_lib
10
10
11
+ # ET changed the way it's loading the custom ops so it's not included in portable_lib but has to be loaded separately.
12
+ from executorch .examples .models .llama2 .custom_ops import sdpa_with_kv_cache # no-qa
11
13
12
14
class PTEModel (nn .Module ):
13
15
def __init__ (self , config , path ) -> None :
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ $PIP_EXECUTABLE install --extra-index-url "${TORCH_NIGHTLY_URL}" \
73
73
74
74
# For torchao need to install from github since nightly build doesn't have macos build.
75
75
# TODO: Remove this and install nightly build, once it supports macos
76
- $PIP_EXECUTABLE install git+https://github.com/pytorch/ao.git@ca1b98db60543a1669a32e842762fc008c178376
76
+ $PIP_EXECUTABLE install git+https://github.com/pytorch/ao.git@d36de1b144b73bf753bd082109c2b5d0141abd5b
77
77
if [[ -x " $( command -v nvidia-smi) " ]]; then
78
78
$PYTHON_EXECUTABLE scripts/patch_triton.py
79
79
fi
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ void build_transformer(
156
156
#else // __ET_MODEL__
157
157
t->runner = new Module (
158
158
/* path to PTE model */ model_path,
159
- /* PTE mmap settings */ Module::MlockConfig::UseMlockIgnoreErrors );
159
+ /* PTE mmap settings */ Module::LoadMode::MmapUseMlockIgnoreErrors );
160
160
#endif
161
161
}
162
162
You can’t perform that action at this time.
0 commit comments