Home / Companies / Baseten / Blog / April 2024

April 2024 Summaries

3 posts from Baseten

Filter
Month: Year:
Post Summaries Back to Blog
CI/CD for AI models is an industry standard that involves creating a pipeline with multiple steps: a safe environment to deploy model updates without affecting production, testing newly deployed models before promoting to production, seamlessly transitioning traffic from an old production deployment to a new one, and reverting to a previous production deployment if there are any issues. An automated pipeline can validate the model's speed and correctness using endpoints such as the development deployment inference endpoint and monitor the deployment status for the production deployment. The pipeline can also promote a new deployment to production and fall back to a previous production deployment in case of errors, minimizing interruption to the production service. To build an effective CI/CD pipeline for AI models, it's essential to separate model evaluation from model deployment and gain confidence in output quality through manual testing and comprehensive benchmarks before initiating a production deployment process.
Apr 30, 2024 914 words in the original blog post.
A streaming endpoint for XTTS V2, a state-of-the-art open-source text-to-speech model with voice cloning capabilities, can be deployed to power an entire new class of AI applications. The streaming endpoint has a round-trip time to first chunk of as little as 200 milliseconds and delivers near real-time audio playback for a given text input. XTTS V2 is natively capable of streaming and can generate speech in 17 languages, with the ability to support over a dozen languages. A model server implemented in Truss enables fast inference times, and deploying the streaming endpoint requires setting GPU resources in config.yaml and running `truss push` to create a development deployment on Baseten. Consuming the model output depends on the application, but can be demonstrated with a quick Python script that streams the audio with FFmpeg.
Apr 18, 2024 1,318 words in the original blog post.
Batching makes good use of GPU resources by processing multiple requests to an AI model simultaneously, but choosing the right batching strategy depends on the model architecture and modality. For most LLM deployments, continuous batching maximizes throughput by processing requests token-by-token, while dynamic batching is suitable for other generative models where each output takes a similar amount of time to create. Continuous batching offers even better performance for LLMs due to its ability to optimize next token prediction, but requires careful configuration based on traffic patterns and latency requirements. By selecting the right batching strategy, developers can maximize GPU utilization and hit ambitious latency targets while serving AI models in production.
Apr 05, 2024 1,350 words in the original blog post.