Azure / mlops-v2

Azure MLOps (v2) solution accelerators. Enterprise ready templates to deploy your machine learning models on the Azure Platform.
https://learn.microsoft.com/en-us/azure/machine-learning/concept-model-management-and-deployment
MIT License
503 stars 248 forks source link

Any support or suggestion of initializing a ML repo with your codes locally and create related pipelines? #122

Closed jianawu closed 7 months ago

jianawu commented 9 months ago

I am trying to start up a project with mlops. The initialized ml repo with pipelines of classical type is really what I want. However, I am not able to have enough permissions to follow the deployment guidelines to import all the repos into my organization or grant permissions to let any repo create pipelines automatically within my organization.

Are we able to provide some guidelines to help users to initial the repo locally through a cli? like clone the repos to the disk, run scripts to create draft repo locally and then give guidelines to help users create related pipelines?

At the same time, would you like to give me some suggestions in this post to let me know the best practice now to initialize a ML repo quickly in local? Try to read your deploy scripts and manually trigger part of them is the only way now?

Thanks for your help!

setuc commented 7 months ago

@jianawu Did you take a look at this: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-setup-mlops-azureml?view=azureml-api-2&tabs=azure-shell

jianawu commented 7 months ago

Yes, sure. I followed these steps and they all worked well.

By the way, I mean instead of starting the sample rely on ADO Pipeline, if there is a small guidance to help me generate the sample repo locally with several commands, and then I can straightly push my code into somewhere (maybe not my personal project), and then give me a simple guidance of how to configure the pipeline to create resource and start training. It would help me better in my case.

I mean, the quick start in the link above is very good and helped me a lot but if I got a way of starting up not totally relying on the ADO Pipeline well also be very helpful.

Thank you!

setuc commented 7 months ago

If you look at the repo that is referenced in the link, the pipeline is just composed of AZ(ire) CLI steps. For example this one.

az configure --defaults group=$(resource_group) workspace=$(aml_workspace)

Ref: https://github.com/Azure/mlops-v2-ado-demo/blob/90b98dea6392917ebd92ae4df7d8a6bf7b4dcd7f/aml-cli-v2/connect-to-workspace.yml#L12

We often have helper scripts to run or process the outputs, and this can help you replicate the steps locally that you can run and setup on your local machine.

Hope this helps.

This repo is much simpler version of the V2 repository.

https://github.com/Azure/mlops-v2-ado-demo/

jianawu commented 7 months ago

Thanks for your help. Your answer resolved my question. I will close this question.

setuc commented 7 months ago

Closing the issue.