Unverified Commit cd496b36 authored by msbaines's avatar msbaines Committed by GitHub
Browse files

[test] run moe mpi tests using torch_pg (#197)

parent ba367d39
...@@ -55,6 +55,7 @@ install_dep_16: &install_dep_16 ...@@ -55,6 +55,7 @@ install_dep_16: &install_dep_16
sudo apt-get install -y libopenmpi-dev sudo apt-get install -y libopenmpi-dev
pip install --progress-bar off torch==1.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html pip install --progress-bar off torch==1.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
pip install --progress-bar off -r requirements-test.txt pip install --progress-bar off -r requirements-test.txt
pip install --progress-bar off git+https://github.com/msbaines/torch_pg.git@c85c96f#egg=torch-pg
python -c 'import torch; print("Torch version:", torch.__version__)' python -c 'import torch; print("Torch version:", torch.__version__)'
python -m torch.utils.collect_env python -m torch.utils.collect_env
...@@ -65,6 +66,7 @@ install_dep_17: &install_dep_17 ...@@ -65,6 +66,7 @@ install_dep_17: &install_dep_17
sudo apt-get install -y libopenmpi-dev sudo apt-get install -y libopenmpi-dev
pip install --progress-bar off torch==1.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html pip install --progress-bar off torch==1.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
pip install --progress-bar off -r requirements-test.txt pip install --progress-bar off -r requirements-test.txt
pip install --progress-bar off git+https://github.com/msbaines/torch_pg.git@c85c96f#egg=torch-pg
python -c 'import torch; print("Torch version:", torch.__version__)' python -c 'import torch; print("Torch version:", torch.__version__)'
python -m torch.utils.collect_env python -m torch.utils.collect_env
...@@ -100,7 +102,7 @@ run_mpi_unittests: &run_mpi_unittests ...@@ -100,7 +102,7 @@ run_mpi_unittests: &run_mpi_unittests
- run: - run:
name: Run MPI Unit Tests name: Run MPI Unit Tests
command: | command: |
mpirun -n4 python -m pytest -only-mpi --junitxml=test-results/junit.xml --verbose mpirun -n 4 python -m pytest -p torch_pg.pytest --only-mpi --junitxml=test-results/junit.xml --verbose tests/nn/moe
run_flake8: &run_flake8 run_flake8: &run_flake8
- run: - run:
...@@ -179,6 +181,8 @@ jobs: ...@@ -179,6 +181,8 @@ jobs:
- <<: *run_unittests - <<: *run_unittests
- <<: *run_mpi_unittests
- store_test_results: - store_test_results:
path: test-results path: test-results
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment