Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
deepspeed
Commits
ccaa9901
Unverified
Commit
ccaa9901
authored
May 14, 2020
by
Shaden Smith
Committed by
GitHub
May 14, 2020
Browse files
reverting test matrix to debug node (#215)
parent
57678bed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
67 deletions
+53
-67
azure-pipelines.yml
azure-pipelines.yml
+53
-67
No files found.
azure-pipelines.yml
View file @
ccaa9901
jobs
:
jobs
:
-
job
:
De
epSpeed_Tests
-
job
:
De
fault
timeoutInMinutes
:
360
timeoutInMinutes
:
360
pool
:
pool
:
name
:
'
DS
_testing'
name
:
'
GPU
_testing'
strategy
:
strategy
:
matrix
:
matrix
:
Py
Torch12
:
Py
thon36
:
python.version
:
'
3.6'
python.version
:
'
3.6'
cuda.version
:
'
10.0'
#Python35:
pytorch.version
:
'
1.2'
# python.version: '3.5'
runmodeltests
:
false
#Python37:
PyTorch15
:
# python.version: '3.7'
python.version
:
'
3.7'
#Python38:
cuda.version
:
'
10.1'
# python.version: '3.8'
pytorch.version
:
'
1.5'
runmodeltests
:
true
variables
:
conda_root
:
'
/home/deepspeed/miniconda3'
conda_env
:
'
ds_test_py$(python.version)_cuda$(cuda.version)_pytorch$(pytorch.version)'
conda_env_path
:
'
$(conda_root)/envs/$(conda_env)'
steps
:
steps
:
# Unfortunately nvidia's nvcc_linux-64=<version> seems to install 10.1 regardless?
-
task
:
UsePythonVersion@0
# Most of this complexity is a workaround to get the compiler toolchain to match the
inputs
:
# cudatoolkit runtime
versionSpec
:
'
$(python.version)'
addToPath
:
true
architecture
:
'
x64'
displayName
:
'
Use
Python
$(python.version)'
-
script
:
|
-
script
:
|
conda create --force --yes -n $(conda_env) python=$(python.version) cudatoolkit=$(cuda.version)
python -m pip install --upgrade pip
source $(conda_root)/bin/activate $(conda_env_path)
pip install --user -r requirements.txt
conda install --yes -c pytorch pytorch=$(pytorch.version) cudatoolkit=$(cuda.version)
./install.sh --pip_sudo
conda install --yes conda
displayName
:
'
Install
dependencies'
conda install --yes gxx_linux-64
conda install --yes -c conda-forge cudatoolkit-dev=$(cuda.version)
displayName
:
'
Setup
environment
python=$(python.version)
pytorch=$(pytorch.version)
cuda=$(cuda.version)'
-
script
:
|
-
script
:
|
source $(conda_root)/bin/activate $(conda_env_path)
pre-commit run --all-files
python --version
displayName
:
'
Formatting
checks'
which nvcc
nvcc --version
python -c "import torch; print('torch:', torch.__version__)"
displayName
:
'
Show
environment'
-
script
:
|
-
script
:
|
source $(conda_root)/bin/activate $(conda_env_path)
pip install --user pylint
rm -rf third_party/apex/build/
pylint --exit-zero deepspeed/
rm -rf third_party/apex/dist/
displayName
:
'
Code
linter'
rm -rf build/
rm -rf dist/
./install.sh
displayName
:
'
Install
DeepSpeed'
-
script
:
|
-
script
:
|
source $(conda_root)/bin/activate $(conda_env_path)
pytest --forked --verbose tests/unit/
pytest --forked --verbose tests/unit/
displayName
:
'
Unit
tests'
displayName
:
'
Unit
tests'
-
script
:
|
-
script
:
|
source $(conda_root)/bin/activate $(conda_env_path)
ln -s /data/Megatron-LM/data DeepSpeedExamples/Megatron-LM/
ln -s /data/Megatron-LM/data DeepSpeedExamples/Megatron-LM/
pip install -r DeepSpeedExamples/Megatron-LM/requirements.txt
pip install
--user
-r DeepSpeedExamples/Megatron-LM/requirements.txt
cd tests/model/
cd tests/model/
rm -rf BingBertSquad/baseline
rm -rf Megatron_GPT2/baseline
pytest -s run_sanity_check.py
pytest -s run_sanity_check.py
condition
:
eq(variables['runmodeltests'],
true
)
displayName
:
'
Model
tests'
displayName
:
'
Model
tests'
#BingBertSquad logs
#BingBertSquad logs
...
@@ -75,31 +57,35 @@ jobs:
...
@@ -75,31 +57,35 @@ jobs:
targetPath
:
'
$(Build.SourcesDirectory)/tests/model/BingBertSquad/test/'
targetPath
:
'
$(Build.SourcesDirectory)/tests/model/BingBertSquad/test/'
artifactName
:
BingBertSquad_logs
artifactName
:
BingBertSquad_logs
displayName
:
'
BingBertSquad
log
uploads'
displayName
:
'
BingBertSquad
log
uploads'
condition
:
eq(variables['runmodeltests'],
true
)
condition
:
always(
)
# Megatron test logs
#- task: PublishPipelineArtifact@1
# inputs:
# targetPath: '$(Build.SourcesDirectory)/tests/model/Megatron_GPT2/test/'
# artifactName: Megatron_GPT2_logs
# displayName: 'Megatron GPT2 log uploads'
# condition: always()
-
job
:
Code_Quality_Checks
#- task: PublishPipelineArtifact@1
pool
:
# inputs:
name
:
'
DS_testing'
# targetPath: '$(Build.SourcesDirectory)/tests/model/Megatron_GPT2/checkpoint_test_logs/'
variables
:
# artifactName: Megatron_GPT2_checkpoint_logs
conda_root
:
'
/home/deepspeed/miniconda3'
# displayName: 'Megatron GPT2 checkpoint log uploads'
conda_env
:
'
ds_codetest'
# condition: always()
conda_env_path
:
'
$(conda_root)/envs/$(conda_env)'
steps
:
-
script
:
|
conda create --force --yes -n $(conda_env) python=3.7
source $(conda_root)/bin/activate $(conda_env_path)
displayName
:
'
Create
code
test
environment'
-
script
:
|
#BingBert logs
source $(conda_root)/bin/activate $(conda_env_path)
#- task: PublishPipelineArtifact@1
pip install pre-commit
# inputs:
pre-commit run --all-files
# targetPath: '$(Build.SourcesDirectory)/tests/model/bing_bert/pretrain_test/'
displayName
:
'
Formatting
checks'
# artifactName: BingBert_pretrain_logs
# displayName: 'BingBert pretrain logs'
# condition: always()
-
script
:
|
#- task: PublishPipelineArtifact@1
source $(conda_root)/bin/activate $(conda_env_path)
# inputs:
pip install pylint
# targetPath: '$(Build.SourcesDirectory)/tests/model/bing_bert/checkpoint_test_logs/'
pylint --exit-zero deepspeed/
# artifactName: BingBert_checkpoint_logs
displayName
:
'
Code
linter'
# displayName: 'BingBert checkpoint logs'
# condition: always()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment