Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

config.yml 45 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
  1. version: 2.1
  2. parameters:
  3. ad_hoc_container_build:
  4. type: boolean
  5. default: false
  6. ad_hoc_container_build_code_only:
  7. type: boolean
  8. default: false
  9. remote_docker_version:
  10. type: string
  11. description: remote docker version
  12. default: "20.10.18"
  13. sg_docker_version:
  14. type: string
  15. description: the version of super gradients docker image
  16. default: "2.0.0"
  17. build_py_version:
  18. type: string
  19. description: Python version
  20. default: "3.8"
  21. run_sanity_tests_flow:
  22. type: boolean
  23. description: If true will run sanity_test flow
  24. default: false
  25. skip_md_files:
  26. type: boolean
  27. default: true
  28. orb_version:
  29. type: string
  30. description: Deci ai ORB version https://circleci.com/developer/orbs/orb/deci-ai/circleci-common-orb
  31. default: "10.5.1"
  32. # default: "dev:alpha"
  33. orbs:
  34. deci-common: deci-ai/circleci-common-orb@<< pipeline.parameters.orb_version >>
  35. aws-ecr: circleci/aws-ecr@8.2.1
  36. docker: circleci/docker@2.2.0
  37. slack: circleci/slack@4.12.0 # see https://circleci.com/developer/orbs/orb/circleci/slack for examples and more
  38. # This filter operates on SemVer2 tags only
  39. release_tag_filter: &release_tag_filter
  40. filters:
  41. branches:
  42. ignore: /.*/
  43. tags:
  44. only: /^\d+\.\d+\.\d+$/
  45. release_candidate_filter: &release_candidate_filter
  46. filters:
  47. branches:
  48. only: master
  49. release_candidate_tag_filter: &release_candidate_tag_filter
  50. filters:
  51. branches:
  52. ignore: /.*/
  53. tags:
  54. only: /^\d+\.\d+\.\d+rc\d+/
  55. commands:
  56. build_and_publish_command:
  57. parameters:
  58. repo_name:
  59. type: string
  60. docker_context:
  61. type: string
  62. image_tag:
  63. type: string
  64. additional_tags:
  65. type: string
  66. build_args:
  67. type: string
  68. default: ""
  69. dockerfile:
  70. type: string
  71. default: "Dockerfile"
  72. steps:
  73. - checkout
  74. - attach_workspace:
  75. at: ~/
  76. - run:
  77. name: Put config dir in repo context
  78. command: |
  79. if [ -d ~/.config ]; then
  80. echo "found a .config directory, copying to repo dir"
  81. cp -r ~/.config ~/project/<< parameters.docker_context >>
  82. fi
  83. - deci-common/ecr_login_dev
  84. - deci-common/container_image_build:
  85. context: << parameters.docker_context >>
  86. working_directory: "."
  87. repository_name: << parameters.repo_name >>
  88. image_tag: << parameters.image_tag >>
  89. dockerfile: << parameters.dockerfile >>
  90. build_args: << parameters.build_args >>
  91. # build_args: "PYTHON_VERSION=3.8 SG_VERSION=3.0.7"
  92. - deci-common/push_docker_image_aws_dev:
  93. repository_name: << parameters.repo_name >>
  94. image_tag: << parameters.image_tag >>
  95. additional_tags: << parameters.additional_tags >>
  96. get_beta_and_rc_tags:
  97. description: "getting beta and rc tag (if exist) according to ouir convention"
  98. steps:
  99. - attach_workspace:
  100. at: ~/
  101. - run:
  102. name: push BETA_TAG and RC_TAG variable to BASH_ENV
  103. command: |
  104. if [[ -f ~/BETA_TAG ]]; then
  105. echo 'export BETA_TAG="$(cat ~/BETA_TAG)"' >> "$BASH_ENV"
  106. source $BASH_ENV
  107. fi
  108. if [[ -f ~/RC_TAG ]]; then
  109. echo 'export RC_TAG="$(cat ~/RC_TAG)"' >> "$BASH_ENV"
  110. source $BASH_ENV
  111. fi
  112. echo "RC_TAG=$RC_TAG || BETA_TAG=$BETA_TAG"
  113. adding_tag_to_ecr_container_image:
  114. description: adding a tag to an existing container image
  115. parameters:
  116. image_repo:
  117. type: string
  118. new_image_tag:
  119. type: string
  120. source_image_tag:
  121. type: string
  122. steps:
  123. - deci-common/run_on_dev_account:
  124. command: |
  125. MANIFEST=$(aws ecr batch-get-image --repository-name << parameters.image_repo >> --image-ids imageTag=<< parameters.source_image_tag >> --query 'images[].imageManifest' --output text)
  126. aws ecr put-image --repository-name << parameters.image_repo >> --image-tag << parameters.new_image_tag >> --image-manifest "$MANIFEST"
  127. echo "added tag: << parameters.new_image_tag >> to image: << parameters.image_repo >>:<< parameters.new_image_tag >>"
  128. jobs:
  129. build:
  130. environment:
  131. CIRCLE_COMPARE_URL: << pipeline.project.git_url >>/compare/<< pipeline.git.base_revision >>..<<pipeline.git.revision>>
  132. parameters:
  133. py_version:
  134. type: string
  135. default: latest
  136. package_name:
  137. type: string
  138. docker:
  139. - image: cimg/python:<< parameters.py_version >>
  140. resource_class: large
  141. steps:
  142. - deci-common/checkout_and_skip_build:
  143. check_version_file: true
  144. skip_md_files: << pipeline.parameters.skip_md_files >>
  145. - deci-common/get_persisted_version_info
  146. - unless:
  147. condition:
  148. equal: [ master, << pipeline.git.branch >> ]
  149. steps:
  150. - run:
  151. name: install Black Flake8 python linter
  152. command: |
  153. pip install --user -r requirements.dev.txt
  154. - run:
  155. name: Lint all python files changed since develop branch
  156. command: |
  157. flake8 --statistics --config scripts/flake8-config setup.py $(git diff --diff-filter ACM origin/master --name-only | grep 'py$' | grep -v 'experimental/' | grep -v 'experimental_models/')
  158. - run:
  159. name: Run Black on changed files against master branch
  160. command: |
  161. black --check setup.py $(git diff --diff-filter ACM origin/master --name-only | grep 'py$' | grep -v 'experimental/' | grep -v 'experimental_models/')
  162. - run:
  163. name: add requirements.txt and requirements.pro.txt to source code
  164. command: |
  165. cp requirements.txt src/super_gradients/requirements.txt
  166. cp requirements.pro.txt src/super_gradients/requirements.pro.txt
  167. - run:
  168. name: install python dependencies
  169. command: |
  170. python3 -m venv venv
  171. . venv/bin/activate
  172. python3 -m pip install pip==23.1.2
  173. python3 -m pip install -r requirements.txt
  174. - run:
  175. name: edit package version
  176. command: |
  177. echo "${NEW_VERSION}" > version.txt
  178. cat version.txt
  179. - run:
  180. name: setup custom environment variables
  181. command: |
  182. echo 'export UPLOAD_LOGS=FALSE' >> $BASH_ENV
  183. - run:
  184. name: install package
  185. no_output_timeout: 30m
  186. command: |
  187. . venv/bin/activate
  188. python3 -m pip uninstall -y super_gradients
  189. python3 -m pip install -e .[pro] --extra-index-url https://pypi.ngc.nvidia.com
  190. - run:
  191. name: install pytorch quantization package
  192. no_output_timeout: 30m
  193. command: |
  194. . venv/bin/activate
  195. python3 -m pip install pytorch-quantization==2.1.2 --extra-index-url https://pypi.ngc.nvidia.com
  196. - run:
  197. name: run tests with coverage
  198. no_output_timeout: 30m
  199. command: |
  200. . venv/bin/activate
  201. coverage run --source=super_gradients -m unittest tests/deci_core_unit_test_suite_runner.py
  202. coverage report
  203. coverage html # open htmlcov/index.html in a browser
  204. - store_artifacts:
  205. path: htmlcov
  206. - store_artifacts:
  207. path: ~/sg_logs
  208. change_rc_to_b:
  209. description: "change rc in the tag to b"
  210. docker:
  211. - image: cimg/base:stable-20.04
  212. resource_class: small
  213. steps:
  214. - run:
  215. name: change the rc to b
  216. command:
  217. |
  218. BETA_TAG=$(echo ${CIRCLE_TAG} | sed -e 's|rc|b|'); echo ${BETA_TAG} >> ~/BETA_TAG
  219. cat ~/BETA_TAG
  220. - persist_to_workspace:
  221. root: ~/
  222. paths:
  223. - "BETA_TAG"
  224. build_and_publish_sg_container:
  225. description : "building the temp image and pushing to dev ecr"
  226. parameters:
  227. repo_name:
  228. type: string
  229. default: 'deci/super-gradients'
  230. sg_python_version:
  231. type: string
  232. default: $CIRCLE_TAG
  233. docker:
  234. - image: cimg/base:stable-20.04
  235. resource_class: small
  236. steps:
  237. - checkout
  238. - get_beta_and_rc_tags
  239. - run:
  240. command: echo *$BETA_TAG*
  241. - setup_remote_docker:
  242. version: << pipeline.parameters.remote_docker_version >>
  243. docker_layer_caching: true
  244. - deci-common/container_image_build:
  245. dockerfile: scripts/Dockerfile
  246. repository_name: << parameters.repo_name >>
  247. image_tag: "$BETA_TAG"
  248. build_args: 'SG_VERSION=<< parameters.sg_python_version >>'
  249. extra_flags: ' --compress'
  250. - deci-common/push_docker_image_aws_dev:
  251. repository_name: << parameters.repo_name >>
  252. image_tag: "$BETA_TAG"
  253. additional_tags: "latest"
  254. find_rc_tag_per_sha:
  255. description: this command will take the sha of the last commit and find the rc tag it belongs to as ${RC_TAG} variale
  256. docker:
  257. - image: cimg/aws:2022.11.1
  258. resource_class: small
  259. steps:
  260. - checkout
  261. - run:
  262. name: get rc tag of the final tag
  263. command: |
  264. if [[ $(RC_TAG=$(git tag --contains ${CIRCLE_SHA1} | grep -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+rc[[:digit:]]+' | head -n 1)) ]] ; then
  265. echo "Found RC version: ${RC_TAG}"
  266. echo $RC_TAG >> ~/RC_TAG
  267. else
  268. echo "No Rc Tag found for commit"
  269. circleci-agent step halt
  270. fi
  271. - persist_to_workspace:
  272. root: ~/
  273. paths:
  274. - "RC_TAG"
  275. add_rc_tag_to_beta:
  276. description: in the event of successful test promote beta to rc
  277. parameters:
  278. image_repo:
  279. type: string
  280. default: "deci/super-gradients"
  281. docker:
  282. - image: cimg/base:stable-20.04
  283. resource_class: small
  284. steps:
  285. - get_beta_and_rc_tags
  286. - run:
  287. command: |
  288. echo $BETA_TAG
  289. - adding_tag_to_ecr_container_image:
  290. image_repo: << parameters.image_repo >>
  291. source_image_tag: $BETA_TAG
  292. new_image_tag: $CIRCLE_TAG
  293. add_release_tag_to_rc:
  294. description: in the event of successful test promote rc to release and latest
  295. parameters:
  296. image_repo:
  297. type: string
  298. default: "deci/super-gradients"
  299. docker:
  300. - image: cimg/base:stable-20.04
  301. resource_class: small
  302. steps:
  303. - get_beta_and_rc_tags
  304. - run:
  305. command: |
  306. if [ -z $RC_TAG ] ; then
  307. circleci-agent step halt
  308. else
  309. echo $RC_TAG
  310. fi
  311. - adding_tag_to_ecr_container_image:
  312. image_repo: << parameters.image_repo >>
  313. source_image_tag: $RC_TAG
  314. new_image_tag: ${CIRCLE_TAG}
  315. testing_supergradients_docker_image:
  316. description: "running integration test on the code"
  317. parameters:
  318. image_repo:
  319. type: string
  320. #reserved for testing when will be done
  321. #machine: true
  322. #resource_class: deci-ai/research-standard
  323. docker:
  324. - image: cimg/base:stable-20.04
  325. steps:
  326. - deci-common/ecr_login_dev
  327. - get_beta_and_rc_tags
  328. # - run:
  329. # name: integration test
  330. # #command: sudo docker run -it -e ENVIRONMENT_NAME=production -v ${PWD}:/SG -v /data:/data deciai/super-gradients:3.0.0 python3 ./tests/integration_tests/pretrained_models_test.py
  331. # command: docker run --rm -it --shm-size=2gb --gpus all -v ${PWD}:/SG -v /data:/data << parameters.image_repo >>:<< parameters.image_tag >> python3 -c 'print("it works!")'
  332. - run:
  333. command: echo Hello world
  334. release_candidate:
  335. environment:
  336. CIRCLE_COMPARE_URL: << pipeline.project.git_url >>/compare/<< pipeline.git.base_revision >>..<<pipeline.git.revision>>
  337. parameters:
  338. py_version:
  339. type: string
  340. docker:
  341. - image: cimg/python:<< parameters.py_version >>
  342. steps:
  343. - deci-common/checkout_and_skip_build:
  344. check_version_file: true
  345. skip_md_files: true
  346. - deci-common/get_persisted_version_info
  347. - run:
  348. name: edit package version
  349. command: |
  350. echo $NEW_VERSION > version.txt
  351. - deci-common/pip_upload_package_codeartifact_dev:
  352. codeartifact_repository: "deci-packages"
  353. - deci-common/pip_test_package_installation_codeartifact_dev:
  354. package_name: "super-gradients"
  355. version: $NEW_VERSION
  356. - deci-common/git_config_automation_user
  357. - run:
  358. name: "commit version file"
  359. command: |
  360. git commit version.txt -m "Deci Services - Changed version to $NEW_VERSION"
  361. - deci-common/git_commit_and_tag:
  362. version: $NEW_VERSION
  363. release_version:
  364. environment:
  365. CIRCLE_COMPARE_URL: << pipeline.project.git_url >>/compare/<< pipeline.git.base_revision >>..<<pipeline.git.revision>>
  366. parameters:
  367. py_version:
  368. type: string
  369. dev_venv_name:
  370. type: string
  371. default: "dev-sg-${CIRCLE_BUILD_NUM}"
  372. docker:
  373. - image: cimg/python:<< parameters.py_version >>
  374. steps:
  375. - deci-common/checkout_and_skip_build:
  376. check_version_file: true
  377. skip_md_files: false
  378. - run:
  379. name: add requirements.txt and requirements.pro.txt to source code
  380. command: |
  381. cp requirements.txt src/super_gradients/requirements.txt
  382. cp requirements.pro.txt src/super_gradients/requirements.pro.txt
  383. - run:
  384. name: edit package version
  385. command: |
  386. echo $CIRCLE_TAG > version.txt
  387. - deci-common/pip_upload_package_codeartifact_all_accounts:
  388. codeartifact_repository: "deci-packages"
  389. - deci-common/pip_test_package_installation_codeartifact_dev:
  390. package_name: "super-gradients"
  391. version: $CIRCLE_TAG
  392. venv_name: << parameters.dev_venv_name >>
  393. - run:
  394. name: verify that the output of __version__ is what we expect
  395. command: |
  396. . << parameters.dev_venv_name >>-super-gradients-$CIRCLE_TAG/bin/activate
  397. python3 tests/verify_version.py $CIRCLE_TAG
  398. - deci-common/pip_test_package_installation_codeartifact_prod:
  399. package_name: "super-gradients"
  400. version: $CIRCLE_TAG
  401. - deci-common/pip_upload_package_codeartifact_prod:
  402. codeartifact_repository: "deci-toolkit"
  403. - deci-common/git_commit_and_tag:
  404. version: $CIRCLE_TAG
  405. delete_remote_tag_before_tagging: true
  406. - deci-common/tag_as:
  407. tag_name: "stable"
  408. delete_remote: true
  409. - deci-common/github_create_release:
  410. github_cli_token: $GITHUB_CLI_TOKEN
  411. directory_to_cd_into: "."
  412. tag: $CIRCLE_TAG
  413. notes: "This GitHub Release was done automatically by CircleCI"
  414. recipe_accuracy_tests:
  415. docker:
  416. - image: 307629990626.dkr.ecr.us-east-1.amazonaws.com/deci/infra/circleci/runner/sg-gpu:<< pipeline.parameters.sg_docker_version >>
  417. resource_class: deci-ai/sg-gpu-on-premise
  418. parameters:
  419. sg_existing_env_path:
  420. type: string
  421. default: "/env/persistent_env"
  422. sg_new_env_name:
  423. type: string
  424. default: "${CIRCLE_BUILD_NUM}"
  425. sg_new_env_python_version:
  426. type: string
  427. default: "python3.8"
  428. steps:
  429. - checkout
  430. - run:
  431. name: install requirements and run recipe tests
  432. command: |
  433. << parameters.sg_new_env_python_version >> -m venv << parameters.sg_new_env_name >>
  434. source << parameters.sg_new_env_name >>/bin/activate
  435. python3.8 -m pip install --upgrade setuptools pip wheel
  436. python3.8 -m pip install -r requirements.txt
  437. python3.8 -m pip install .
  438. python3.8 -m pip install torch torchvision torchaudio
  439. python3.8 -m pip install pytorch-quantization==2.1.2 --extra-index-url https://pypi.ngc.nvidia.com
  440. python3.8 tests/verify_min_samples_ddp.py
  441. python3.8 src/super_gradients/train_from_recipe.py --config-name=coco2017_pose_dekr_w32_no_dc experiment_name=shortened_coco2017_pose_dekr_w32_ap_test batch_size=4 val_batch_size=8 epochs=1 training_hyperparams.lr_warmup_steps=0 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=1000 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  442. python3.8 src/super_gradients/train_from_recipe.py --config-name=cifar10_resnet experiment_name=shortened_cifar10_resnet_accuracy_test epochs=100 training_hyperparams.average_best_models=False multi_gpu=DDP num_gpus=4
  443. python3.8 src/super_gradients/examples/convert_recipe_example/convert_recipe_example.py --config-name=cifar10_conversion_params experiment_name=shortened_cifar10_resnet_accuracy_test
  444. python3.8 src/super_gradients/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 epochs=10 training_hyperparams.average_best_models=False multi_gpu=DDP num_gpus=4
  445. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_regseg48 experiment_name=shortened_cityscapes_regseg48_iou_test epochs=10 training_hyperparams.average_best_models=False multi_gpu=DDP num_gpus=4
  446. coverage run --source=super_gradients -m unittest tests/deci_core_recipe_test_suite_runner.py
  447. - run:
  448. name: Remove new environment when failed
  449. command: "rm -r << parameters.sg_new_env_name >>"
  450. when: on_fail
  451. - slack/notify:
  452. channel: "sg-integration-tests"
  453. event: fail
  454. template: basic_fail_1 # see https://github.com/CircleCI-Public/slack-orb/wiki#templates.
  455. recipe_sanity_tests_classification_pt1:
  456. docker:
  457. - image: 307629990626.dkr.ecr.us-east-1.amazonaws.com/deci/infra/circleci/runner/sg-gpu:<< pipeline.parameters.sg_docker_version >>
  458. resource_class: deci-ai/sg-gpu-on-premise
  459. parameters:
  460. sg_existing_env_path:
  461. type: string
  462. default: "/env/persistent_env"
  463. sg_new_env_name:
  464. type: string
  465. default: "${CIRCLE_BUILD_NUM}"
  466. sg_new_env_python_version:
  467. type: string
  468. default: "python3.8"
  469. steps:
  470. - checkout
  471. - run:
  472. name: install requirements and run classification sanity tests
  473. command: |
  474. << parameters.sg_new_env_python_version >> -m venv << parameters.sg_new_env_name >>
  475. source << parameters.sg_new_env_name >>/bin/activate
  476. ls /data/
  477. python3.8 -m pip install --upgrade setuptools pip wheel
  478. python3.8 -m pip install -r requirements.txt
  479. python3.8 -m pip install .
  480. python3.8 -m pip install torch torchvision torchaudio
  481. python3.8 src/super_gradients/train_from_recipe.py --config-name=imagenet_regnetY architecture=regnetY600 batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  482. python3.8 src/super_gradients/train_from_recipe.py --config-name=imagenet_regnetY architecture=regnetY800 batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  483. python3.8 src/super_gradients/train_from_recipe.py --config-name=imagenet_repvgg batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  484. python3.8 src/super_gradients/train_from_recipe.py --config-name=imagenet_resnet50 batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  485. python3.8 src/super_gradients/train_from_recipe.py --config-name=imagenet_vit_base batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  486. python3.8 src/super_gradients/train_from_kd_recipe.py --config-name=imagenet_resnet50_kd batch_size=8 val_batch_size=8 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  487. - run:
  488. name: Remove new environment when failed
  489. command: "rm -r << parameters.sg_new_env_name >>"
  490. when: on_fail
  491. - slack/notify:
  492. channel: "sg-integration-tests"
  493. event: fail
  494. template: basic_fail_1 # see https://github.com/CircleCI-Public/slack-orb/wiki#templates.
  495. recipe_sanity_tests_classification_pt2:
  496. docker:
  497. - image: 307629990626.dkr.ecr.us-east-1.amazonaws.com/deci/infra/circleci/runner/sg-gpu:<< pipeline.parameters.sg_docker_version >>
  498. resource_class: deci-ai/sg-gpu-on-premise
  499. parameters:
  500. sg_existing_env_path:
  501. type: string
  502. default: "/env/persistent_env"
  503. sg_new_env_name:
  504. type: string
  505. default: "${CIRCLE_BUILD_NUM}"
  506. sg_new_env_python_version:
  507. type: string
  508. default: "python3.8"
  509. steps:
  510. - checkout
  511. - run:
  512. name: install requirements and run classification sanity tests
  513. command: |
  514. << parameters.sg_new_env_python_version >> -m venv << parameters.sg_new_env_name >>
  515. source << parameters.sg_new_env_name >>/bin/activate
  516. python3.8 -m pip install --upgrade setuptools pip wheel
  517. python3.8 -m pip install -r requirements.txt
  518. python3.8 -m pip install .
  519. python3.8 -m pip install torch torchvision torchaudio
  520. python3.8 src/super_gradients/train_from_recipe.py --config-name=imagenet_efficientnet batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  521. python3.8 src/super_gradients/train_from_recipe.py --config-name=imagenet_mobilenetv2 batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  522. python3.8 src/super_gradients/train_from_recipe.py --config-name=imagenet_mobilenetv3_large batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  523. python3.8 src/super_gradients/train_from_recipe.py --config-name=imagenet_mobilenetv3_small batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  524. python3.8 src/super_gradients/train_from_recipe.py --config-name=imagenet_regnetY architecture=regnetY200 batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  525. python3.8 src/super_gradients/train_from_recipe.py --config-name=imagenet_regnetY architecture=regnetY400 batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4 dataset_params.train_dataset_params.root=/data/Imagenet/train dataset_params.val_dataset_params.root=/data/Imagenet/val
  526. - run:
  527. name: Remove new environment when failed
  528. command: "rm -r << parameters.sg_new_env_name >>"
  529. when: on_fail
  530. - slack/notify:
  531. channel: "sg-integration-tests"
  532. event: fail
  533. template: basic_fail_1 # see https://github.com/CircleCI-Public/slack-orb/wiki#templates.
  534. recipe_sanity_tests_segmentation:
  535. docker:
  536. - image: 307629990626.dkr.ecr.us-east-1.amazonaws.com/deci/infra/circleci/runner/sg-gpu:<< pipeline.parameters.sg_docker_version >>
  537. resource_class: deci-ai/sg-gpu-on-premise
  538. parameters:
  539. sg_existing_env_path:
  540. type: string
  541. default: "/env/persistent_env"
  542. sg_new_env_name:
  543. type: string
  544. default: "${CIRCLE_BUILD_NUM}"
  545. sg_new_env_python_version:
  546. type: string
  547. default: "python3.8"
  548. steps:
  549. - checkout
  550. - run:
  551. name: install requirements and run segmentation sanity tests
  552. command: |
  553. << parameters.sg_new_env_python_version >> -m venv << parameters.sg_new_env_name >>
  554. source << parameters.sg_new_env_name >>/bin/activate
  555. python3.8 -m pip install --upgrade setuptools pip wheel
  556. python3.8 -m pip install -r requirements.txt
  557. python3.8 -m pip install .
  558. python3.8 -m pip install torch torchvision torchaudio
  559. wget -O $(pwd)/checkpoints/ddrnet23_slim_bb_imagenet.pth https://deci-pretrained-models.s3.amazonaws.com/ddrnet/imagenet_pt_backbones/ddrnet23_slim_bb_imagenet.pth
  560. wget -O $(pwd)/checkpoints/ddrnet23_bb_imagenet.pth https://deci-pretrained-models.s3.amazonaws.com/ddrnet/imagenet_pt_backbones/ddrnet23_bb_imagenet.pth
  561. wget -O $(pwd)/checkpoints/ddrnet39_imagenet_pretrained.pth https://deci-pretrained-models.s3.amazonaws.com/ddrnet/imagenet_pt_backbones/ddrnet39_bb_imagenet.pth
  562. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_ddrnet checkpoint_params.checkpoint_path=$(pwd)/checkpoints/ddrnet23_bb_imagenet.pth batch_size=3 val_batch_size=3 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  563. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_ddrnet architecture=ddrnet_23_slim checkpoint_params.checkpoint_path=$(pwd)/checkpoints/ddrnet23_slim_bb_imagenet.pth batch_size=3 val_batch_size=3 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  564. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_ddrnet checkpoint_params.checkpoint_path=$(pwd)/checkpoints/ddrnet39_imagenet_pretrained.pth architecture=ddrnet_39 batch_size=3 val_batch_size=3 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  565. wget -O $(pwd)/checkpoints/stdc1_imagenet_pretrained.pth https://deci-pretrained-models.s3.amazonaws.com/stdc_backbones/stdc1_imagenet_pretrained.pth
  566. wget -O $(pwd)/checkpoints/stdc2_imagenet_pretrained.pth https://deci-pretrained-models.s3.amazonaws.com/stdc_backbones/stdc2_imagenet_pretrained.pth
  567. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_pplite_seg50 checkpoint_params.checkpoint_path=$(pwd)/checkpoints/stdc1_imagenet_pretrained.pth architecture=pp_lite_t_seg batch_size=3 val_batch_size=3 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  568. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_pplite_seg50 checkpoint_params.checkpoint_path=$(pwd)/checkpoints/stdc2_imagenet_pretrained.pth architecture=pp_lite_b_seg batch_size=3 val_batch_size=3 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  569. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_pplite_seg75 checkpoint_params.checkpoint_path=$(pwd)/checkpoints/stdc1_imagenet_pretrained.pth architecture=pp_lite_t_seg batch_size=3 val_batch_size=3 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  570. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_pplite_seg75 checkpoint_params.checkpoint_path=$(pwd)/checkpoints/stdc2_imagenet_pretrained.pth architecture=pp_lite_b_seg batch_size=3 val_batch_size=3 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  571. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_stdc_seg50 checkpoint_params.checkpoint_path=$(pwd)/checkpoints/stdc1_imagenet_pretrained.pth batch_size=3 val_batch_size=3 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  572. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_stdc_seg50 checkpoint_params.checkpoint_path=$(pwd)/checkpoints/stdc2_imagenet_pretrained.pth architecture=stdc2_seg batch_size=3 val_batch_size=3 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  573. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_stdc_seg75 checkpoint_params.checkpoint_path=$(pwd)/checkpoints/stdc1_imagenet_pretrained.pth batch_size=3 val_batch_size=3 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  574. python3.8 src/super_gradients/train_from_recipe.py --config-name=cityscapes_stdc_seg75 checkpoint_params.checkpoint_path=$(pwd)/checkpoints/stdc2_imagenet_pretrained.pth architecture=stdc2_seg batch_size=3 val_batch_size=3 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  575. - run:
  576. name: Remove new environment when failed
  577. command: "rm -r << parameters.sg_new_env_name >>"
  578. when: on_fail
  579. - slack/notify:
  580. channel: "sg-integration-tests"
  581. event: fail
  582. template: basic_fail_1 # see https://github.com/CircleCI-Public/slack-orb/wiki#templates.
  583. recipe_sanity_tests_detection:
  584. docker:
  585. - image: 307629990626.dkr.ecr.us-east-1.amazonaws.com/deci/infra/circleci/runner/sg-gpu:<< pipeline.parameters.sg_docker_version >>
  586. resource_class: deci-ai/sg-gpu-on-premise
  587. parameters:
  588. sg_existing_env_path:
  589. type: string
  590. default: "/env/persistent_env"
  591. sg_new_env_name:
  592. type: string
  593. default: "${CIRCLE_BUILD_NUM}"
  594. sg_new_env_python_version:
  595. type: string
  596. default: "python3.8"
  597. steps:
  598. - checkout
  599. - run:
  600. name: install requirements and run detection sanity tests
  601. command: |
  602. << parameters.sg_new_env_python_version >> -m venv << parameters.sg_new_env_name >>
  603. source << parameters.sg_new_env_name >>/bin/activate
  604. python3.8 -m pip install --upgrade setuptools pip wheel
  605. python3.8 -m pip install -r requirements.txt
  606. python3.8 -m pip install .
  607. python3.8 -m pip install torch torchvision torchaudio
  608. python3.8 src/super_gradients/train_from_recipe.py --config-name=coco2017_ssd_lite_mobilenet_v2 batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  609. python3.8 src/super_gradients/train_from_recipe.py --config-name=coco2017_yolox architecture=yolox_n batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  610. python3.8 src/super_gradients/train_from_recipe.py --config-name=coco2017_yolox architecture=yolox_t batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  611. python3.8 src/super_gradients/train_from_recipe.py --config-name=coco2017_yolox architecture=yolox_s batch_size=8 val_batch_size=16 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  612. python3.8 src/super_gradients/train_from_recipe.py --config-name=coco2017_yolox architecture=yolox_m batch_size=8 val_batch_size=8 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  613. python3.8 src/super_gradients/train_from_recipe.py --config-name=coco2017_yolox architecture=yolox_l batch_size=4 val_batch_size=8 epochs=1 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=100 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  614. - run:
  615. name: Remove new environment when failed
  616. command: "rm -r << parameters.sg_new_env_name >>"
  617. when: on_fail
  618. - slack/notify:
  619. channel: "sg-integration-tests"
  620. event: fail
  621. template: basic_fail_1 # see https://github.com/CircleCI-Public/slack-orb/wiki#templates.
  622. recipe_sanity_tests_pose_estimation:
  623. docker:
  624. - image: 307629990626.dkr.ecr.us-east-1.amazonaws.com/deci/infra/circleci/runner/sg-gpu:<< pipeline.parameters.sg_docker_version >>
  625. resource_class: deci-ai/sg-gpu-on-premise
  626. parameters:
  627. sg_existing_env_path:
  628. type: string
  629. default: "/env/persistent_env"
  630. sg_new_env_name:
  631. type: string
  632. default: "${CIRCLE_BUILD_NUM}"
  633. sg_new_env_python_version:
  634. type: string
  635. default: "python3.8"
  636. steps:
  637. - checkout
  638. - run:
  639. name: install requirements and run pose estimation sanity tests
  640. command: |
  641. << parameters.sg_new_env_python_version >> -m venv << parameters.sg_new_env_name >>
  642. source << parameters.sg_new_env_name >>/bin/activate
  643. python3.8 -m pip install --upgrade setuptools pip wheel
  644. python3.8 -m pip install -r requirements.txt
  645. python3.8 -m pip install .
  646. python3.8 -m pip install torch torchvision torchaudio
  647. python3.8 src/super_gradients/train_from_recipe.py --config-name=coco2017_pose_dekr_w32_no_dc experiment_name=shortened_coco2017_pose_dekr_w32_ap_test batch_size=4 val_batch_size=8 epochs=1 training_hyperparams.lr_warmup_steps=0 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=1000 training_hyperparams.max_valid_batches=100 multi_gpu=DDP num_gpus=4
  648. - run:
  649. name: Remove new environment when failed
  650. command: "rm -r << parameters.sg_new_env_name >>"
  651. when: on_fail
  652. - slack/notify:
  653. channel: "sg-integration-tests"
  654. event: fail
  655. template: basic_fail_1 # see https://github.com/CircleCI-Public/slack-orb/wiki#templates.
  656. docker-build-and-publish-branch:
  657. docker:
  658. - image: cimg/base:stable-20.04
  659. parameters:
  660. repo_name:
  661. type: string
  662. default: "deci/super-gradients"
  663. docker_context:
  664. type: string
  665. default: "."
  666. additional_tags:
  667. type: string
  668. default: ''
  669. steps:
  670. - setup_remote_docker:
  671. version: 20.10.7
  672. docker_layer_caching: true
  673. - deci-common/container_image_lint_tag:
  674. image_tag: "${CIRCLE_BRANCH}"
  675. - run:
  676. command: |
  677. ADDITIONAL_TAGS="<< parameters.additional_tags >>"
  678. echo "export ADDITIONAL_TAGS=${ADDITIONAL_TAGS}" >> $BASH_ENV
  679. - run:
  680. command: |
  681. source $BASH_ENV
  682. echo "$CONTAINER_LINT_TAG"
  683. echo "$ADDITIONAL_TAGS"
  684. - when:
  685. condition: << pipeline.parameters.ad_hoc_container_build_code_only >>
  686. steps:
  687. - build_and_publish_command:
  688. repo_name: << parameters.repo_name >>
  689. docker_context: << parameters.docker_context >>
  690. image_tag: $CONTAINER_LINT_TAG
  691. additional_tags: $ADDITIONAL_TAGS
  692. dockerfile: 'scripts/Dockerfile.branch.code'
  693. build_args: "BASE_TAG=$CONTAINER_LINT_TAG"
  694. - unless:
  695. condition: << pipeline.parameters.ad_hoc_container_build_code_only >>
  696. steps:
  697. - build_and_publish_command:
  698. repo_name: << parameters.repo_name >>
  699. docker_context: << parameters.docker_context >>
  700. image_tag: $CONTAINER_LINT_TAG
  701. additional_tags: $ADDITIONAL_TAGS
  702. dockerfile: 'scripts/Dockerfile.branch'
  703. workflows:
  704. sanity_tests:
  705. when: << pipeline.parameters.run_sanity_tests_flow >>
  706. jobs:
  707. - recipe_sanity_tests_classification_pt1:
  708. context:
  709. - slack
  710. - recipe_sanity_tests_classification_pt2:
  711. context:
  712. - slack
  713. - recipe_sanity_tests_segmentation:
  714. context:
  715. - slack
  716. - recipe_sanity_tests_detection:
  717. context:
  718. - slack
  719. - recipe_sanity_tests_pose_estimation:
  720. context:
  721. - slack
  722. - recipe_accuracy_tests:
  723. context:
  724. - slack
  725. release:
  726. unless:
  727. or:
  728. - << pipeline.parameters.ad_hoc_container_build >>
  729. - << pipeline.parameters.ad_hoc_container_build_code_only >>
  730. jobs:
  731. - deci-common/persist_version_info:
  732. version_override: $CIRCLE_TAG
  733. <<: *release_tag_filter
  734. - deci-common/codeartifact_login:
  735. name: "login_to_codeartifact_release"
  736. repo_name: "deci-packages"
  737. <<: *release_tag_filter
  738. - build:
  739. name: "build3.8"
  740. py_version: "3.8"
  741. package_name: "super-gradients"
  742. requires:
  743. - deci-common/persist_version_info
  744. - login_to_codeartifact_release
  745. <<: *release_tag_filter
  746. - recipe_sanity_tests_classification_pt1:
  747. context:
  748. - slack
  749. <<: *release_tag_filter
  750. - recipe_sanity_tests_classification_pt2:
  751. context:
  752. - slack
  753. <<: *release_tag_filter
  754. - recipe_sanity_tests_segmentation:
  755. context:
  756. - slack
  757. <<: *release_tag_filter
  758. - recipe_sanity_tests_detection:
  759. context:
  760. - slack
  761. <<: *release_tag_filter
  762. - recipe_sanity_tests_pose_estimation:
  763. context:
  764. - slack
  765. <<: *release_tag_filter
  766. - recipe_accuracy_tests:
  767. context:
  768. - slack
  769. <<: *release_tag_filter
  770. - release_version:
  771. py_version: "3.8"
  772. requires:
  773. - "build3.8"
  774. - recipe_accuracy_tests
  775. - recipe_sanity_tests_classification_pt1
  776. - recipe_sanity_tests_classification_pt2
  777. - recipe_sanity_tests_segmentation
  778. - recipe_sanity_tests_detection
  779. - recipe_sanity_tests_pose_estimation
  780. <<: *release_tag_filter
  781. - deci-common/pip_upload_package_from_codeartifact_to_global_pypi:
  782. package_name: "super-gradients"
  783. name: "upload_super_gradients_to_pypi"
  784. version: $CIRCLE_TAG
  785. requires:
  786. - "release_version"
  787. context:
  788. - pypi-supergradients
  789. <<: *release_tag_filter
  790. build_and_deploy:
  791. unless:
  792. or:
  793. - << pipeline.parameters.ad_hoc_container_build >>
  794. - << pipeline.parameters.ad_hoc_container_build_code_only >>
  795. jobs:
  796. - deci-common/persist_version_info:
  797. use_rc: true
  798. use_beta: false
  799. version_override: ""
  800. - build:
  801. name: "build<< pipeline.parameters.build_py_version >>"
  802. py_version: << pipeline.parameters.build_py_version >>
  803. package_name: "super-gradients"
  804. requires:
  805. - deci-common/persist_version_info
  806. - deci-common/codeartifact_login:
  807. repo_name: "deci-packages"
  808. <<: *release_candidate_filter
  809. - release_candidate: # happens on merge
  810. py_version: "<< pipeline.parameters.build_py_version >>"
  811. requires:
  812. - "build<< pipeline.parameters.build_py_version >>"
  813. - deci-common/codeartifact_login
  814. <<: *release_candidate_filter
  815. SG_docker:
  816. unless:
  817. or:
  818. - << pipeline.parameters.ad_hoc_container_build >>
  819. - << pipeline.parameters.ad_hoc_container_build_code_only >>
  820. jobs:
  821. - change_rc_to_b: # works on release candidate creation
  822. <<: *release_candidate_tag_filter
  823. - build_and_publish_sg_container: # works on release candidate creation
  824. requires:
  825. - "change_rc_to_b"
  826. <<: *release_candidate_tag_filter
  827. - testing_supergradients_docker_image: # works on release candidate creation
  828. image_repo: '307629990626.dkr.ecr.us-east-1.amazonaws.com/deci/super-gradients'
  829. requires:
  830. - "build_and_publish_sg_container"
  831. - "change_rc_to_b"
  832. <<: *release_candidate_tag_filter
  833. - add_rc_tag_to_beta: # works on release candidate creation for ECR Repo
  834. requires:
  835. - "testing_supergradients_docker_image"
  836. - "change_rc_to_b"
  837. <<: *release_candidate_tag_filter
  838. - find_rc_tag_per_sha: # works on release
  839. <<: *release_tag_filter
  840. - add_release_tag_to_rc: # works on release
  841. requires:
  842. - "find_rc_tag_per_sha"
  843. <<: *release_tag_filter
  844. - slack/on-hold:
  845. context: slack
  846. channel: "sg-integration-tests"
  847. requires:
  848. - "add_release_tag_to_rc"
  849. <<: *release_tag_filter
  850. - hold-sg-public-release: # works on release
  851. type: approval
  852. requires:
  853. - "slack/on-hold"
  854. <<: *release_tag_filter
  855. - docker/publish: # works on release
  856. executor:
  857. image: cimg/base
  858. tag: stable-20.04
  859. name: docker/docker
  860. image: deciai/super-gradients
  861. remote-docker-version: << pipeline.parameters.remote_docker_version >>
  862. update-description: true
  863. use-buildkit: true
  864. use-remote-docker: true
  865. use-docker-credentials-store: true
  866. path: ./scripts
  867. readme: ../README.md
  868. tag: latest,${CIRCLE_TAG}
  869. extra_build_args: '--build-arg VERSION=${CIRCLE_TAG}' #building from scratch as it faster and cheaper than download and retag
  870. requires:
  871. - "hold-sg-public-release"
  872. <<: *release_tag_filter
  873. - docker/publish: # works on release
  874. executor:
  875. image: cimg/base
  876. tag: stable-20.04
  877. name: docker/docker
  878. image: deciai/super-gradients
  879. remote-docker-version: << pipeline.parameters.remote_docker_version >>
  880. update-description: false
  881. use-buildkit: true
  882. use-remote-docker: true
  883. use-docker-credentials-store: true
  884. path: ./scripts
  885. tag: ${CIRCLE_TAG}-runtime
  886. extra_build_args: '--build-arg VERSION=${CIRCLE_TAG} --build-arg DOCKER_IMAGE_TAG=11.3.1-runtime-ubuntu20.04'
  887. requires:
  888. - "hold-sg-public-release"
  889. <<: *release_tag_filter
  890. build-and-push-container-flow:
  891. when: << pipeline.parameters.ad_hoc_container_build >>
  892. jobs:
  893. - docker-build-and-publish-branch
  894. build-and-push-container-code-only-flow:
  895. when: << pipeline.parameters.ad_hoc_container_build_code_only >>
  896. jobs:
  897. - docker-build-and-publish-branch
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...