File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -92,26 +92,31 @@ jobs:
92
92
conda activate test-mps-ops-env
93
93
- name : Install torch
94
94
run : |
95
- pip install torch --index-url "https://download.pytorch.org/whl/nightly/cpu"
95
+ conda run -n test-mps-ops-env pip install torch --index-url "https://download.pytorch.org/whl/nightly/cpu"
96
96
- name : Print torch version
97
97
run : |
98
- python -c "import torch; print(torch.__version__)"
98
+
99
+ conda run -n test-mps-ops-env python -c "import torch; print(torch.__version__)"
99
100
- name : Install requirements
100
101
run : |
102
+ source activate base
103
+ conda activate test-mps-ops-env
101
104
pip install -r dev-requirements.txt
102
105
pip install pyyaml importlib-metadata
103
106
- name : Print pip freeze
104
107
run : |
105
- pip freeze
108
+ conda run -n test-mps-ops-env pip freeze
106
109
- name : Print current directory
107
110
run : |
108
- python -c "import os; print(os.getcwd())"
111
+ conda run -n test-mps-ops-env python -c "import os; print(os.getcwd())"
109
112
- name : Build ao with experimental mps ops
110
113
run : |
114
+ source activate base
115
+ conda activate test-mps-ops-env
111
116
USE_CPP=1 TORCHAO_BUILD_EXPERIMENTAL_MPS=1 pip install .
112
117
- name : Run mps tests
113
118
run : |
114
119
pushd torchao/experimental/ops/mps/test
115
- python test_lowbit.py
116
- python test_quantizer.py
120
+ conda run -n test-mps-ops-env python test_lowbit.py
121
+ conda run -n test-mps-ops-env python test_quantizer.py
117
122
popd
You can’t perform that action at this time.
0 commit comments