|
@@ -104,7 +104,6 @@ jobs:
|
|
|
- store_artifacts:
|
|
|
path: ~/sg_logs
|
|
|
|
|
|
-
|
|
|
release_candidate:
|
|
|
parameters:
|
|
|
py_version:
|
|
@@ -180,6 +179,40 @@ jobs:
|
|
|
tag: $CIRCLE_TAG
|
|
|
notes: "This GitHub Release was done automatically by CircleCI"
|
|
|
|
|
|
+ recipe_tests:
|
|
|
+ machine: true
|
|
|
+ resource_class: deci-ai/sg-gpu-on-premise
|
|
|
+ parameters:
|
|
|
+ sg_existing_env_path:
|
|
|
+ type: string
|
|
|
+ default: "/env/persistent_env"
|
|
|
+ sg_new_env_name:
|
|
|
+ type: string
|
|
|
+ default: "${CIRCLE_BUILD_NUM}"
|
|
|
+ sg_new_env_python_version:
|
|
|
+ type: string
|
|
|
+ default: "python3.8"
|
|
|
+ steps:
|
|
|
+ - checkout
|
|
|
+ - run:
|
|
|
+ name: install requirements and run recipe tests
|
|
|
+ command: |
|
|
|
+ << parameters.sg_new_env_python_version >> -m venv << parameters.sg_new_env_name >>
|
|
|
+ source << parameters.sg_new_env_name >>/bin/activate
|
|
|
+ python3.8 -m pip install --upgrade setuptools pip wheel
|
|
|
+ python3.8 -m pip install -r requirements.txt
|
|
|
+ python3.8 -m pip install git+https://github.com/Deci-AI/super-gradients.git@${CIRCLE_BRANCH}
|
|
|
+ python3.8 -m pip install torch==1.12.0+cu116 torchvision==0.13.0+cu116 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu116
|
|
|
+ python3.8 src/super_gradients/examples/train_from_recipe_example/train_from_recipe.py --config-name=cifar10_resnet experiment_name=shortened_cifar10_resnet_accuracy_test training_hyperparams.max_epochs=100 training_hyperparams.average_best_models=False +multi_gpu=DDP +num_gpus=4
|
|
|
+ python3.8 src/super_gradients/examples/train_from_recipe_example/train_from_recipe.py --config-name=coco2017_yolox experiment_name=shortened_coco2017_yolox_n_map_test architecture=yolox_n training_hyperparams.loss=yolox_fast_loss training_hyperparams.max_epochs=10 training_hyperparams.average_best_models=False multi_gpu=DDP num_gpus=4
|
|
|
+ python3.8 src/super_gradients/examples/train_from_recipe_example/train_from_recipe.py --config-name=cityscapes_regseg48 experiment_name=shortened_cityscapes_regseg48_iou_test training_hyperparams.max_epochs=10 training_hyperparams.average_best_models=False multi_gpu=DDP num_gpus=4
|
|
|
+ coverage run --source=super_gradients -m unittest tests/deci_core_recipe_test_suite_runner.py
|
|
|
+
|
|
|
+ - run:
|
|
|
+ name: Remove new environment when failed
|
|
|
+ command: "rm -r << parameters.sg_new_env_name >>"
|
|
|
+ when: on_fail
|
|
|
+
|
|
|
|
|
|
|
|
|
workflows:
|
|
@@ -199,10 +232,13 @@ workflows:
|
|
|
- deci-common/persist_version_info
|
|
|
- login_to_codeartifact_release
|
|
|
<<: *release_tag_filter
|
|
|
+ - recipe_tests:
|
|
|
+ <<: *release_tag_filter
|
|
|
- release_version:
|
|
|
py_version: "3.7"
|
|
|
requires:
|
|
|
- "build3.7"
|
|
|
+ - recipe_tests
|
|
|
<<: *release_tag_filter
|
|
|
- deci-common/pip_upload_package_from_codeartifact_to_global_pypi:
|
|
|
package_name: "super-gradients"
|
|
@@ -219,6 +255,7 @@ workflows:
|
|
|
- deci-common/persist_version_info
|
|
|
- deci-common/codeartifact_login:
|
|
|
repo_name: "deci-packages"
|
|
|
+
|
|
|
- build:
|
|
|
name: "build3.7"
|
|
|
py_version: "3.7"
|
|
@@ -226,6 +263,7 @@ workflows:
|
|
|
requires:
|
|
|
- deci-common/persist_version_info
|
|
|
- deci-common/codeartifact_login
|
|
|
+
|
|
|
- release_candidate: # happens on merge
|
|
|
py_version: "3.7"
|
|
|
requires:
|