File tree 2 files changed +3
-10
lines changed 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ Now the SHARK will use your locally build Torch-MLIR repo.
106
106
``` shell
107
107
python -m shark.examples.shark_inference.resnet50_script --device=" cpu" # Use gpu | vulkan
108
108
# Or a pytest
109
- pytest tank/tf/hf_masked_lm/albert-base-v2_test .py::AlbertBaseModuleTest::test_module_static_cpu
109
+ pytest tank/test_models .py -k " MiniLM "
110
110
```
111
111
112
112
</details >
Original file line number Diff line number Diff line change 71
71
echo " ${Red} OS not detected. Pray and Play"
72
72
fi
73
73
74
- TM_HTML_URL=" $( python3 -c " import urllib.request, json, sys; \
75
- u=json.loads(urllib.request.urlopen('https://api.github.com/repos/llvm/torch-mlir/releases/latest').read().decode()).get('html_url', False);\
76
- print(u) if u else sys.exit(1);" ) "
77
- TM_RELEASE_DIR=${TM_HTML_URL/ " tag" / " expanded_assets" }
78
- echo " TM_HTML_URL=${TM_HTML_URL} "
79
- echo " TM_RELEASE_DIR=${TM_RELEASE_DIR} "
80
-
81
74
# Upgrade pip and install requirements.
82
75
$PYTHON -m pip install --upgrade pip || die " Could not upgrade pip"
83
76
$PYTHON -m pip install --upgrade -r " $TD /requirements.txt"
84
77
if [ " $torch_mlir_bin " = true ]; then
85
- $PYTHON -m pip install --find-links ${TM_RELEASE_DIR} torch-mlir --extra -index-url ${TM_RELEASE_DIR}
78
+ $PYTHON -m pip install --pre torch-mlir -f https://llvm.github.io/torch-mlir/package -index/
86
79
if [ $? -eq 0 ]; then
87
80
echo " Successfully Installed torch-mlir"
88
81
else
@@ -117,7 +110,7 @@ if [[ ! -z "${IMPORTER}" ]]; then
117
110
fi
118
111
fi
119
112
120
- $PYTHON -m pip install -e . -f ${TM_RELEASE_DIR} -f https://github.com/${RUNTIME} /releases
113
+ $PYTHON -m pip install -e . -f https://llvm.github.io/torch-mlir/package-index/ -f https://github.com/${RUNTIME} /releases
121
114
122
115
if [[ $( uname -s) = ' Linux' && ! -z " ${IMPORTER} " ]]; then
123
116
$PYTHON -m pip uninstall -y torch torchvision
You can’t perform that action at this time.
0 commit comments