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
c7863d97
"docs/source/index.mdx" did not exist on "dfb049f8e4d543bbf9ae50da13ee4dbe8567f196"
Unverified
Commit
c7863d97
authored
May 12, 2020
by
Shaden Smith
Committed by
GitHub
May 12, 2020
Browse files
Test matrix (#213)
parent
0be026e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
53 deletions
+67
-53
azure-pipelines.yml
azure-pipelines.yml
+67
-53
No files found.
azure-pipelines.yml
View file @
c7863d97
jobs
:
-
job
:
De
fault
-
job
:
De
epSpeed_Tests
timeoutInMinutes
:
360
pool
:
name
:
'
GPU
_testing'
name
:
'
DS
_testing'
strategy
:
matrix
:
Py
thon36
:
Py
Torch12
:
python.version
:
'
3.6'
#Python35:
# python.version: '3.5'
#Python37:
# python.version: '3.7'
#Python38:
# python.version: '3.8'
cuda.version
:
'
10.0'
pytorch.version
:
'
1.2'
runmodeltests
:
false
PyTorch15
:
python.version
:
'
3.7'
cuda.version
:
'
10.1'
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
:
-
task
:
UsePythonVersion@0
inputs
:
versionSpec
:
'
$(python.version)'
addToPath
:
true
architecture
:
'
x64'
displayName
:
'
Use
Python
$(python.version)'
# Unfortunately nvidia's nvcc_linux-64=<version> seems to install 10.1 regardless?
# Most of this complexity is a workaround to get the compiler toolchain to match the
# cudatoolkit runtime
-
script
:
|
python -m pip install --upgrade pip
pip install --user -r requirements.txt
./install.sh --pip_sudo
displayName
:
'
Install
dependencies'
conda create --force --yes -n $(conda_env) python=$(python.version) cudatoolkit=$(cuda.version)
source $(conda_root)/bin/activate $(conda_env_path)
conda install --yes -c pytorch pytorch=$(pytorch.version) cudatoolkit=$(cuda.version)
conda install --yes conda
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
:
|
pre-commit run --all-files
displayName
:
'
Formatting
checks'
source $(conda_root)/bin/activate $(conda_env_path)
python --version
which nvcc
nvcc --version
python -c "import torch; print('torch:', torch.__version__)"
displayName
:
'
Show
environment'
-
script
:
|
pip install --user pylint
pylint --exit-zero deepspeed/
displayName
:
'
Code
linter'
source $(conda_root)/bin/activate $(conda_env_path)
rm -rf third_party/apex/build/
rm -rf third_party/apex/dist/
rm -rf build/
rm -rf dist/
./install.sh
displayName
:
'
Install
DeepSpeed'
-
script
:
|
source $(conda_root)/bin/activate $(conda_env_path)
pytest --forked --verbose tests/unit/
displayName
:
'
Unit
tests'
-
script
:
|
source $(conda_root)/bin/activate $(conda_env_path)
ln -s /data/Megatron-LM/data DeepSpeedExamples/Megatron-LM/
pip install
--user
-r DeepSpeedExamples/Megatron-LM/requirements.txt
pip install -r DeepSpeedExamples/Megatron-LM/requirements.txt
cd tests/model/
rm -rf BingBertSquad/baseline
rm -rf Megatron_GPT2/baseline
pytest -s run_sanity_check.py
condition
:
eq(variables['runmodeltests'],
true
)
displayName
:
'
Model
tests'
#BingBertSquad logs
...
...
@@ -57,35 +75,31 @@ jobs:
targetPath
:
'
$(Build.SourcesDirectory)/tests/model/BingBertSquad/test/'
artifactName
:
BingBertSquad_logs
displayName
:
'
BingBertSquad
log
uploads'
condition
:
always(
)
condition
:
eq(variables['runmodeltests'],
true
)
# 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()
#- task: PublishPipelineArtifact@1
# inputs:
# targetPath: '$(Build.SourcesDirectory)/tests/model/Megatron_GPT2/checkpoint_test_logs/'
# artifactName: Megatron_GPT2_checkpoint_logs
# displayName: 'Megatron GPT2 checkpoint log uploads'
# condition: always()
-
job
:
Code_Quality_Checks
pool
:
name
:
'
DS_testing'
variables
:
conda_root
:
'
/home/deepspeed/miniconda3'
conda_env
:
'
ds_codetest'
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'
#BingBert logs
#- task: PublishPipelineArtifact@1
# inputs:
# targetPath: '$(Build.SourcesDirectory)/tests/model/bing_bert/pretrain_test/'
# artifactName: BingBert_pretrain_logs
# displayName: 'BingBert pretrain logs'
# condition: always()
-
script
:
|
source $(conda_root)/bin/activate $(conda_env_path)
pip install pre-commit
pre-commit run --all-files
displayName
:
'
Formatting
checks'
#- task: PublishPipelineArtifact@1
# inputs:
# targetPath: '$(Build.SourcesDirectory)/tests/model/bing_bert/checkpoint_test_logs/'
# artifactName: BingBert_checkpoint_logs
# displayName: 'BingBert checkpoint logs'
# condition: always()
-
script
:
|
source $(conda_root)/bin/activate $(conda_env_path)
pip install pylint
pylint --exit-zero deepspeed/
displayName
:
'
Code
linter'
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