Production LLM Deployment: vLLM,FastAPI,Modal and AI Chatbot

所在平台: Udemy

课程主页: https://www.udemy.com/course/ai-in-production-a-crash-course-in-modal-cloud-for-llms-inference/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:生产环境中的LLM部署:vLLM、FastAPI、Modal和AI聊天机器人 课程概述:本课程结合了理论理解和实践应用,通过大量的实践课程,旨在帮助学习者从基础知识过渡到高级部署策略。您将学习多种方式部署AI模型,并构建具备记忆功能的聊天机器人,以实现与我们的生产级推理端点的交互,支持成千上万的请求。掌握以信心和高效性部署可扩展、互动型AI应用程序的专业技能,无论是为商业、客户互动还是个人项目构建应用,都是您掌握AI模型部署的入口。 您将学习到的内容包括: 1. **高效模型管理的战略存储映射**:了解如何细致地映射和管理存储卷,以减少冗余数据检索,优化模型权重存储,并利用本地存储快速访问数据,从而最小化从外部声源(如Hugging Face)下载的需求。 2. **高性能AI模型的部署**:使用vLLM框架掌握机器学习模型的部署,支持成千上万的并行推理请求,构建符合现代软件设计的模块化架构。 3. **开发对话AI聊天应用**:将理论知识转化为可行产品,通过开发简单的Python脚本管理与已部署语言模型的聊天交互,集成并认证使用OpenAI的API客户端,实现无缝的实时聊天对话。 4. **利用FastAPI和vLLM构建强大的API**:使用FastAPI和vLLM创建和集成API,高效服务AI模型,确保在容器化基础架构中与OpenAI兼容。 5. **高效的资源及模型管理**:利用并发和同步技术管理服务间的模型数据,确保高可用性同时降低网络流量,优化GPU等硬件资源的使用。 6. **可扩展和安全的服务设计**:设计可快速初始化和高效扩展的系统,通过战略性使用模型权重和本地存储,在应用中实施先进的身份验证协议,包括基于令牌的访问控制。 7. **Modal简介**:了解Modal的创新基础设施管理,简化规模扩展和部署流程,比较传统平台(如AWS)的流程,探索无服务器架构和成本优化策略。 8. **环境设置及脚本执行**:学习如何设置和连接本地环境到Modal,管理依赖关系,并在本地和远程设置中执行Python脚本。 9. **周期性与已部署的应用**:从本地运行短期应用转向远程执行,探讨Modal应用的生命周期、惰性初始化及容器管理。 10. **基础设施定义及API集成**:通过Modal装饰器配置基础设施,管理类似Docker的操作,将Python函数转化为可通过网络访问的服务。 11. **高级部署技术**:使用类和生命周期钩子高效管理资源,维护请求间的应用状态,部署来自Hugging Face的机器学习模型。 12. **认证及环境配置**:管理认证的机密配置,设置GPU资源和容器环境,确保容器和模型准备好以快速响应推理请求。 13. **完整的部署工作流**:体验将机器学习模型部署为Web服务的完整工作流,包括从设置到确保服务可用性的最佳实践。 本课程通过提供系统化的学习体验,帮助您掌握AI模型的部署及扩展,具备足够的技能去构建高性能的AI应用。

课程评论(0条)

课程详情

This course offers a blend of theoretical understanding and practical application with heavy hands-on lessons designed to transition learners from fundamentals to advanced deployment strategies. You will not only learn to deploy AI models in multiple ways, but also to build Chat Bot with Memory that will interact with our own production grade inference endpoint that will be able to support thousands of requests. Gain the expertise to deploy scalable, interactive AI applications with confidence and efficiency. Whether you're building apps for business, customer interaction, or personal projects, this course is your gateway to mastering AI model deployment. This course will equip you with the knowledge and skills to design robust inference services using cutting-edge tools such as the vLLM framework, FastAPI, and Modal.What You Will Learn:Strategic Volume Mapping for Efficient Model Management: Understand how to map and manage storage volumes meticulously to reduce redundant data retrieval and optimize model weight storage. Gain insights into leveraging local volumes for faster data access and persistent storage, minimizing unnecessary downloads from external repositories like Hugging Face.Deploying High-Performance AI Models: Master the deployment of machine learning models using the vLLM framework, supporting thousands of parallel inference requests for production-grade applications. Learn to craft a modular architecture with distinct services for model downloading and inference tasks, reflecting modern software design practices.Developing a Conversational AI Chat Application: Transform theoretical knowledge into a tangible product by developing a simple Python script to manage chat interactions with deployed language models. Integrate and authenticate using OpenAI's API client to experience seamless, real-time chat dialogue execution.Building Robust APIs with FastAPI and vLLM: Create and integrate APIs using FastAPI and vLLM to serve AI models efficiently, ensuring OpenAI-compatible interactions within a containerized infrastructure. Implement REST API endpoints for inferencing services to facilitate interactions with external applications through standardized interfaces.Efficient Resource and Model Management: Employ concurrency and synchronization techniques to manage model data between services, ensuring high availability without excessive network traffic. Optimize the use of GPUs and other hardware resources to handle a high number of parallel inference requests.Scalable and Secure Service Design: Design scalable systems that allow rapid initialization and efficient scaling through the strategic use of model weights and local storage. Secure your application using advanced authentication protocols, including token-based access control to restrict API endpoint usage to authorized users.Also this course provides an practical exploration of deploying and scaling machine learning models with only a few lines of Python decorators, using Modal's Infrastructure as a Code serverless platform and integration API's. Introduction to Modal: Begin with an overview of Modal's innovative infrastructure management, which simplifies scaling and deployment by automating processes traditionally handled by platforms like AWS. Discover the benefits of serverless architecture and cost optimization strategies.Environment Setup and Script Execution: Learn how to set up and connect your local environment to Modal, manage dependencies, and execute Python scripts in both local and remote settings. Understand Modal's unique approach to deploying serverless functions and the differences between local and remote execution.Ephemeral and Deployed Applications: Transition from running ephemeral applications locally to deploying them for remote execution. Explore the lifecycle of Modal applications, lazy initialization, and container management, with a focus on cost-effective deployment strategies for high-performance workloads.Defining Infrastructure and API Integration: Dive into configuring infrastructure using Modal decorators, manage Docker-like operations, and transform Python functions into web-accessible services using Modals integrated FastAPI. Learn to navigate container management and performance considerations for optimal runtime.Advanced Deployment Techniques: Utilize classes and lifecycle hooks for efficient resource management, maintaining application state across requests, and extending container life. Gain insights into deploying machine learning models from Hugging Face and integrating large language models into your applications.Authentication and Environment Configuration: Master the process of managing secrets for authentication, configuring GPU resources, and setting up container environments. Understand the importance of keeping containers and models ready for quick inference requests.Full Deployment Workflow: Experience a complete workflow for deploying a machine learning model as a web service. From setup to ensuring service availability with cron jobs, observe best practices in container lifecycle management and DevOps automation.

课程标签

0人关注该课程

主题相关的课程