Unit 9: Model optimization (Model Deployment Considerations)#123
Conversation
Unit 9: Model optimization (Model Deployment Considerations)
Unit 9 : Module 3 Modle Optimization( Deployment Considerations)
mmhamdy
left a comment
There was a problem hiding this comment.
Looking great! just have one question: is this part of a larger chapter on deployment?
|
|
||
|
|
||
| - **Kubernetes Documentation**: [Kubernetes](https://kubernetes.io/docs/home/) is an open-source container orchestration platform widely used for deploying and managing applications. Understanding Kubernetes can help deploy models in a scalable and reliable manner. | ||
| ## Best Practices for Deployment in Production |
There was a problem hiding this comment.
Hi @kiluazen sorry just notice, i think in this section you can add like "model optimization" part. So, one of best practices before deployment is "optimize the model", and because the deployment is important (reduce latency, etc), we need to optimize the model first (depend on where we will deploy the model (ex: cloud, mobile, edge devices))
what do you think?
merveenoyan
left a comment
There was a problem hiding this comment.
I mostly did nitpicking, thank you!
|
|
||
| ## Different Deployment Platforms | ||
| - **Cloud**: Deploying models on cloud platforms like AWS, Google Cloud, or Azure offers a scalable and robust infrastructure for AI model deployment. These platforms provide managed services for hosting models, ensuring scalability, flexibility, and integration with other cloud services. | ||
| - Advantages: Scalability, high computing power, managed services, integration with cloud ecosystem. |
There was a problem hiding this comment.
Maybe you can make a statement here for clarity, e.g. Cloud deployment is easily scalable by means of computing power and memory (and so on)
same goes for the rest of the text
There was a problem hiding this comment.
This is waiting to be addressed
|
|
||
| - **Packaging:** Packaging, on the other hand, involves bundling all the necessary components and dependencies of a machine learning model. It's like putting all the puzzle pieces into a box, along with the instructions on assembling it. Packaging includes everything needed to run the model, such as the serialized model file, pre-processing or post-processing code, and required libraries or dependencies. | ||
|
|
||
| Serialization is device-agnostic When packaging for cloud deployment. Serialized models are often packaged into containers (e.g., Docker) or deployed as web services (e.g., Flask or FastAPI). Cloud deployments also involve auto-scaling, load balancing, and integration with other cloud services. |
There was a problem hiding this comment.
| Serialization is device-agnostic When packaging for cloud deployment. Serialized models are often packaged into containers (e.g., Docker) or deployed as web services (e.g., Flask or FastAPI). Cloud deployments also involve auto-scaling, load balancing, and integration with other cloud services. | |
| Serialization is device-agnostic when packaging for cloud deployment. Serialized models are often packaged into containers (e.g., Docker) or deployed as web services (e.g., Flask or FastAPI). Cloud deployments also involve auto-scaling, load balancing, and integration with other cloud services. |
| - **Load Testing**: Simulate varying workloads to ensure the model's responsiveness under different conditions. | ||
|
|
||
| - **Anomaly Detection**: Implement systems to detect deviations in model behavior and performance. | ||
| - **Real-time Monitoring**: Utilize tools for immediate identification of issues in deployed models. |
There was a problem hiding this comment.
giving an example of an issue (e.g. distribution shift) would be nice
MKhalusova
left a comment
There was a problem hiding this comment.
LGTM, thanks for writing this!
|
|
||
| - **Packaging:** Packaging, on the other hand, involves bundling all the necessary components and dependencies of a machine learning model. It's like putting all the puzzle pieces into a box, along with the instructions on assembling it. Packaging includes everything needed to run the model, such as the serialized model file, pre-processing or post-processing code, and required libraries or dependencies. | ||
|
|
||
| Serialization is device-agnostic When packaging for cloud deployment. Serialized models are often packaged into containers (e.g., Docker) or deployed as web services (e.g., Flask or FastAPI). Cloud deployments also involve auto-scaling, load balancing, and integration with other cloud services. |
There was a problem hiding this comment.
| Serialization is device-agnostic When packaging for cloud deployment. Serialized models are often packaged into containers (e.g., Docker) or deployed as web services (e.g., Flask or FastAPI). Cloud deployments also involve auto-scaling, load balancing, and integration with other cloud services. | |
| Serialization is device-agnostic when packaging for cloud deployment. Serialized models are often packaged into containers (e.g., Docker) or deployed as web services (e.g., Flask or FastAPI). Cloud deployments also involve auto-scaling, load balancing, and integration with other cloud services. |
|
|
||
| Serialization is device-agnostic When packaging for cloud deployment. Serialized models are often packaged into containers (e.g., Docker) or deployed as web services (e.g., Flask or FastAPI). Cloud deployments also involve auto-scaling, load balancing, and integration with other cloud services. | ||
|
|
||
| ## Model Serving and Inference |
There was a problem hiding this comment.
This would be a great place to mention Inference Endpoints - https://huggingface.co/inference-endpoints
There was a problem hiding this comment.
wow, cool. I just found out that huggingface has this.
|
@kiluazen Can you incorporate @MKhalusova's changes and I'll give another review and we can merge next? |
Co-authored-by: Mohammed Hamdy <62081584+mmhamdy@users.noreply.github.com>
Co-authored-by: Mohammed Hamdy <62081584+mmhamdy@users.noreply.github.com>
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
| @@ -0,0 +1,52 @@ | |||
| # Model Deployment Considerations | |||
|
|
|||
There was a problem hiding this comment.
Can you briefly mention here what this chapter will talk about? e.g. "In this chapter we will go through various deployment practices"
|
|
||
| ## Different Deployment Platforms | ||
| - **Cloud**: Deploying models on cloud platforms like AWS, Google Cloud, or Azure offers a scalable and robust infrastructure for AI model deployment. These platforms provide managed services for hosting models, ensuring scalability, flexibility, and integration with other cloud services. | ||
| - Advantages: Scalability, high computing power, managed services, integration with cloud ecosystem. |
There was a problem hiding this comment.
This is waiting to be addressed
|
Hey @merveenoyan @MKhalusova, I have made the changes. |
merveenoyan
left a comment
There was a problem hiding this comment.
Looks good to me! waiting for a community contributor to approve and we can merge
Hi, everyone.
This is content for Unit 9: Model Optimization => Module 3 (Model Deployment).
Here's the outline for reference: https://github.com/johko/computer-vision-course/discussions/92
Please Read through and suggest topics I am missing, redundant parts that need to be excluded etc.
Thank you.