This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from microsoft/master
pull code
- Loading branch information
Showing
14 changed files
with
228 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/nni_manager/config/kubeflow/pytorchjob-crd-v1beta2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"kind": "CustomResourceDefinition", | ||
"spec": { | ||
"scope": "Namespaced", | ||
"version": "v1beta2", | ||
"group": "kubeflow.org", | ||
"names": { | ||
"kind": "PyTorchJob", | ||
"plural": "pytorchjobs", | ||
"singular": "pytorchjob" | ||
} | ||
}, | ||
"apiVersion": "apiextensions.k8s.io/v1beta2", | ||
"metadata": { | ||
"name": "pytorchjobs.kubeflow.org" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"kind": "CustomResourceDefinition", | ||
"spec": { | ||
"scope": "Namespaced", | ||
"version": "v1beta2", | ||
"group": "kubeflow.org", | ||
"names": { | ||
"kind": "TFJob", | ||
"plural": "tfjobs", | ||
"singular": "tfjob" | ||
} | ||
}, | ||
"apiVersion": "apiextensions.k8s.io/v1beta2", | ||
"metadata": { | ||
"name": "tfjobs.kubeflow.org" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
jobs: | ||
- job: 'build_docker_image' | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
steps: | ||
- script: python3 -m pip install --upgrade pip setuptools --user | ||
displayName: 'Install python tools' | ||
|
||
- script: | | ||
cd deployment/pypi | ||
echo 'building prerelease package...' | ||
make build | ||
ls $(Build.SourcesDirectory)/deployment/pypi/dist/ | ||
condition: eq( variables['build_docker_img'], 'true' ) | ||
displayName: 'build nni bdsit_wheel' | ||
- script: | | ||
if [ $(build_docker_img) = 'true' ] | ||
then | ||
cd deployment/pypi | ||
docker login -u $(docker_hub_user) -p $(docker_hub_pwd) | ||
echo 'updating docker file for installing nni from local...' | ||
# update Dockerfile to install NNI in docker image from whl file built in last step | ||
sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/COPY .\/dist\/* .\nRUN python3 -m pip install nni-*.whl/' ../docker/Dockerfile | ||
cat ../docker/Dockerfile | ||
export IMG_TAG=`date -u +%y%m%d%H%M` | ||
echo 'build and upload docker image' | ||
docker build -f ../docker/Dockerfile -t $(test_docker_img_name):$IMG_TAG . | ||
docker push $(test_docker_img_name):$IMG_TAG | ||
export TEST_IMG=$(test_docker_img_name):$IMG_TAG | ||
cd ../../ | ||
else | ||
export TEST_IMG=$(existing_docker_img) | ||
fi | ||
echo "##vso[task.setvariable variable=TEST_IMG]$TEST_IMG" | ||
displayName: 'build docker image' | ||
- script: | ||
echo $TEST_IMG | ||
echo "##vso[task.setvariable variable=docker_image;isOutput=true]$TEST_IMG" | ||
name: setvariableStep | ||
displayName: 'set image variable' | ||
|
||
- job: 'integration_test_pai' | ||
timeoutInMinutes: 0 | ||
dependsOn: build_docker_image | ||
variables: | ||
docker_image: $[ dependencies.build_docker_image.outputs['setvariableStep.docker_image'] ] | ||
|
||
steps: | ||
- script: | | ||
set PATH=$(ENV_PATH) | ||
python --version | ||
powershell.exe -file install.ps1 | ||
displayName: 'Install nni toolkit via source code' | ||
- script: | | ||
cd test | ||
set PATH=$(ENV_PATH) | ||
python --version | ||
python generate_ts_config.py --ts pai --pai_host $(pai_host) --pai_user $(pai_user) --pai_pwd $(pai_pwd) --vc $(pai_virtual_cluster) --nni_docker_image $(docker_image) --data_dir $(data_dir) --output_dir $(output_dir) --nni_manager_ip $(nni_manager_ip) | ||
python config_test.py --ts pai --exclude multi_phase,smac,bohb | ||
displayName: 'Examples and advanced features tests on pai' |
Oops, something went wrong.