%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
AI day2021 approcci DevOps per il rilascio continuo di modelli di machine learning su Azure
1. Approcci DevOps per il
Rilascio Continuo di Modelli
ML su Azure
Igor Antonacci – Automation Lover
Luca Milan – IT & DevOps addicted
Combinare le pratiche DevOps e le potenzialità di
GitHub per il rilascio continuo e condizionato
di prodotti di AI su Azure.
8. DevOps Pipeline 4 ML
Data or Algorithm
updated
Function Code
updated
Infrastructure
updated
ML.NET
Training
Deploy
Model
Pulumi Up
Deploy
Function
Yes
DevOps
Done
No
Build & Test
Triggers
C# Code
15. Branching model
for Data Scientists
MAIN
experiment / model-refininig_001
experiment / ml-net_release-change_001
Pull Request
✓ Model
(Code)
✓ Test
✓ Dataset
✓ Review
✓ Approve
✓ Merge
16. GitHub Actions to the
rescue
COMMIT
✓ Model (Code)
✓ Test
✓ Dataset
✓ Build
✓ Test
✓ Training
Pull-request
✓ Review
✓ Approve
✓ Merge
Training Model
17. GitHub Environments
✓ on push
✓ on pull-request
✓ …
Job #1 Job #2
Action 1 – Setup .NET Core
Action 2 – Build project
Action 3 – Test project
Action N – …
Action 1 – GitVersion
Action 2 – Create Release
Action 3 – Publish Artifacts
Action N – …
Depends on
Secrets
✓ on push
✓ on pull-request
✓ …
Job #1 Job #2
Action 1 – Setup .NET Core
Action 2 – Build project
Action 3 – Test project
Action N – …
Action 1 – GitVersion
Action 2 – Create Release
Action 3 – Publish Artifacts
Action N – …
Depends on
Environment
Approvers
18. GitHub Environments
COMMIT
✓ Model (Code)
✓ Test
✓ Dataset
✓ Build
✓ Test
✓ Training
✓ Trained Model
✓ Dataset
Pull-request
✓ Review
✓ Approve
✓ Merge
Approvazione
Promozione
✓ Review
✓ Approve
Serving “Environment”
Training Model
Dispatch Message
▪ event_type: model-created
▪ message: |
{
"ML_MODEL_VERSION": vX.Y.Z-xxxx,
"ML_MODEL_URI":
https://github.com/igoran/.../${{
env.VERSION_NAME }}.zip
}
19. GitHub as Artifact
Repository
COMMIT
✓ Model (Code)
✓ Test
✓ Dataset
✓ Build
✓ Test
✓ Training
✓ Trained Model
✓ Dataset
Pull-request
✓ Review
✓ Approve
✓ Merge
Approvazione
Promozione
✓ Review
✓ Approve
Serving “Environment”
Dispatch Message
▪ event_type: model-created
▪ message: |
{
"ML_MODEL_VERSION": vX.Y.Z-xxxx,
"ML_MODEL_URI":
https://github.com/igoran/.../${{
env.VERSION_NAME }}.zip
}
Training Model
0.1.0-c28c8ba
20. GH Actions – Workflow
Dispatch
COMMIT
✓ Model (Code)
✓ Test
✓ Dataset
✓ Build
✓ Test
✓ Training
✓ Trained Model
✓ Dataset
Pull-request
✓ Review
✓ Approve
✓ Merge
Approvazione
Promozione
✓ Review
✓ Approve
Serving “Environment”
Training Model
Dispatch Message
▪ event_type: model-created
▪ message: |
{
"ML_MODEL_VERSION": vX.Y.Z-xxxx,
"ML_MODEL_URI":
https://github.com/igoran/.../${{
env.VERSION_NAME }}.zip
}
21. GH Actions – Workflow
Dispatch
SETUP INFRA
✓ Build
✓ Test
Azure
Deployment
Slots
model-created
✓ Trained Model
✓ Dataset
Download Model
PROD DEV
Predictor