Introduction to Large Language Models in MLOps
Understand Why LLMs Break Classic Serving Assumptions, Then Run TinyLlama Behind vLLM, Measure Tokens per Second, and Wrap It in FastAPI. (MLOPS: ABSOLUTE BEGINNERS TO PRO IN 100 DAYS - DAY 69)
By Sandip Das · · 5 min read

💡
Hey — It's Sandip Das 👋
In Day 68 we tracked iris experiments in W&B and tuned it with a 20-run sweep. Iris predicts in microseconds on any CPU. Large language models are a different animal: gigabytes of weights, GPUs, and responses that take seconds to stream out token by token.
Today we learn what makes LLM serving hard, how vLLM and Hugging Face TGI solve it, and we deploy TinyLlama locally, measure tokens per second, and expose it through a FastAPI wrapper with request logging.
In Day 68 we tracked iris experiments in W&B and tuned it with a 20-run sweep. Iris predicts in microseconds on any CPU. Large language models are a different animal: gigabytes of weights, GPUs, and responses that take seconds to stream out token by token.
Today we learn what makes LLM serving hard, how vLLM and Hugging Face TGI solve it, and we deploy TinyLlama locally, measure tokens per second, and expose it through a FastAPI wrapper with request logging.
📚 Key Learnings
- The four LLM serving challenges: latency, cost, GPU memory and batching
- How to estimate GPU memory from parameter count and precision
- Why continuous batching and PagedAttention make vLLM fast
- vLLM vs Hugging Face TGI vs Ollama, and when to use each
- Hands-on: serve
Read the full article on learnxops.com.
Topics: 100 Days of MLOps, MLOps, ML, LLMOps