All 60 tasks, level by level

The real graded Inference Engineering tasks the portal assigns, grouped into three levels.

The portal assigns these Inference Engineering tasks. Finish Level 1 before Level 2 and Level 2 before Level 3. Your mentor may mark some tasks as required for the certificate.

Level 1: Foundations (24 tasks)

TaskWhat to do
What inference engineering isExplain training vs inference, and why latency, throughput and cost matter when serving models.
Python and PyTorch setupSet up Python with PyTorch (CPU is fine) and run inference with a small pre-trained model.
Hugging Face pipelinesRun text classification, summarisation and embeddings with Hugging Face pipelines and time each one.
Tokens and tokenisersTokenise 5 sentences in English and an Indian language and explain why token counts differ.
Measure latencyMeasure first-token latency and total latency for a small language model over 20 prompts.
BatchingCompare one-at-a-time vs batched inference for an image or text model and report throughput.
Serve with FastAPIWrap a model in a FastAPI endpoint and call it from a script.
Streaming responsesStream generated tokens to the client with server-sent events.
Hardware basicsExplain CPU vs GPU vs specialised accelerators for inference, and what memory bandwidth means.
Model size and memoryCalculate how much memory a 7B-parameter model needs in fp32, fp16 and int4.
Use an LLM APICall a hosted LLM API, measure latency and cost per 1,000 requests for a fixed prompt.
Repo and benchmarksKeep all scripts and benchmark results in a repo named inference-internship with a results table.
Model zoo comparisonCompare 5 small open models on speed, size and answer quality for one task.
Precision experimentRun the same model in fp32 and fp16 (or bf16) and compare speed and output.
Tokeniser cost tableBuild a table of token counts and API cost for 10 prompts in English and Indian languages.
Timeouts and retriesAdd timeouts and retries with backoff to your inference client.
Request validationValidate prompt length and parameters before calling the model.
Benchmark scriptWrite a reusable benchmark script that reports P50, P95 and throughput.
CPU inference tuningTune thread counts for CPU inference and record the best setting.
Warm-upAdd model warm-up at startup and measure first-request latency before and after.
Health and readinessAdd readiness checks that pass only after the model is loaded.
Simple queuePut a queue in front of the model so bursts do not crash it.
Logging tokensLog input and output tokens per request and total per day.
Cost dashboardChart daily cost from your token logs.

Level 2: Building real features (20 tasks)

TaskWhat to do
QuantisationQuantise a model (bitsandbytes, GGUF or ONNX) and compare speed, memory and output quality.
ONNX RuntimeExport a model to ONNX and compare its speed with PyTorch.
Local LLM servingRun a small open LLM with llama.cpp or Ollama and benchmark tokens per second.
KV cacheExplain the key-value cache and show how output length affects memory and speed.
Load testingLoad-test your endpoint with k6 or Locust and find the point where latency becomes too high.
Response cachingCache repeated prompts and measure the hit rate and savings.
Prompt and context lengthMeasure how latency and cost grow with prompt length and suggest limits.
Embeddings serviceBuild a fast embeddings endpoint with batching and use it for a small semantic search.
Containerised servingPut the model server in Docker with health checks and resource limits.
ObservabilityLog latency, tokens, errors and cost per request and chart them.
Prompt cachingUse provider prompt caching or a prefix cache and measure savings.
Semantic cachingCache answers for similar questions using embeddings and measure accuracy risk.
Model routingRoute easy requests to a small model and hard ones to a large model and compare cost and quality.
Structured outputForce JSON output with a schema and measure failure rates.
Batch API usageUse a provider's batch API for offline jobs and compare cost with live calls.
GPU memory profilingMeasure GPU memory for different batch sizes and context lengths.
Throughput vs latency curvePlot throughput against latency for different concurrency levels.
FallbacksAdd fallback to a second model or provider when the first fails.
Edge inferenceRun a small model on a phone or Raspberry Pi and benchmark it.
Whisper / speech inferenceBenchmark a speech-to-text model and optimise its speed.

Level 3: Professional work and capstone (16 tasks)

TaskWhat to do
vLLM or TGIServe a model with vLLM or Text Generation Inference (or a cloud GPU notebook) and compare with your basic server.
Continuous batchingExplain continuous batching and paged attention and show their effect in a benchmark.
Speculative decoding conceptExplain speculative decoding and estimate its speed-up for a draft/target model pair.
Autoscaling designDesign autoscaling for a model service based on queue length and GPU use.
Cost modelBuild a spreadsheet comparing self-hosting vs API pricing at 1k, 100k and 1M requests a day.
Quality vs speed evaluationBuild a small evaluation set and compare answer quality across your faster model variants.
Safety and limitsAdd input limits, rate limits and output filtering to your serving endpoint.
Capstone: production inference serviceDeliver an optimised inference service with benchmarks, quantisation results, monitoring, a cost model and a design document.
Tensor parallelism conceptExplain tensor and pipeline parallelism and when a model needs multiple GPUs.
TensorRT or OpenVINOOptimise a model with TensorRT, OpenVINO or a similar toolkit and compare speed.
Fine-tuned small modelFine-tune a small model with LoRA for one task and compare its cost with a large general model.
SLA designDefine latency and availability SLAs for an AI feature and design to meet them.
Multi-tenant servingServe several customers from one model service with fair rate limits.
Load sheddingReject or degrade requests gracefully when the system is overloaded.
Inference postmortemWrite a postmortem for a simulated latency spike.
Capstone 2: cost-optimised AI featureShip an AI feature that meets a latency target at the lowest cost, with routing, caching, monitoring and a cost report.
โ† Tools and first-week setupSubmitting tasks and earning your certificate โ†’