Welcome to Cerebrium's official examples repository! This collection of examples helps you get started with building Machine Learning / AI applications on the platform. Whether you're looking to deploy LLMs, process voice data, or handle image and video tasks, you'll find practical, ready-to-use examples here.
Each example is a self-contained project that demonstrates a specific use case. You can explore the examples in any order, depending on your interests and needs. Each example includes detailed instructions on how to deploy the application on the Cerebrium platform.
Deploy each example by cloning the repo and running the cerebrium deploy
command in each example folder.
We've split each of the examples by category to make them easier to find.
- Improve inference speed with VLLM
- Deploying Inferentia
- Loading model weights faster
- Multi-GPU inference
- Create an OpenAI compatible endpoint with vLLM
- Stream results from Falcon 7B to a client
- Build a code review tool with Winston
- Transcription service using Whisper
- Create a realtime voice agent
- Create a voice agent that leverages current context with RAG
- Create a WebSockets-based voice agent using Twilio
- Clone voices with XTTS
- Build your own OpenAI realtime API replacement
- Deploy ComfyUI on Cerebrium
- Build a ControlNet logo detection system
- Refined image generation with SDXL
- Using SDXL Lightning for image processing
- Fast stable diffusion for image generation
- Regular stable diffusion for image generation
- How to generate images faster with SDXL
- Implement batching with LitServe - CPU version
- Implement batching with LitServe - GPU version
- Batching requests with vLLM
- Batching requests with transformers
We love contributions! Here's how you can contribute to our examples repository:
-
Fork the repository
-
Create a new branch for your example
-
Add your example following our template
-
Include a clear README with:
- Description of the example
- Requirements
- Step-by-step setup instructions
- Expected outputs
- (Optional) Link to a blog post or tutorial video
Share your fork with us on our Discord & Slack communities or on social media. Highly valuable examples for the community will be merged into the master repo.
For each successful contribution, we'll send you exclusive Cerebrium swag! To be eligible:
- Your PR must be merged
- Fill out the contributor form with your shipping details
- Bonus swag for contributions that include:
- A blog post explaining your example
- A tutorial video demonstrating your example
- Ensure your example is well-documented
- Make sure that your example deploys successfully
- Add appropriate error handling
- Follow our code style as much as possible
- Test your example thoroughly
- Update the main README.md to include your example