Design an LLM Inference Service on Xeon CPUs With AMX

Last updated: November 29, 2026

Quick Overview

Design a service that serves a 7 to 13 billion parameter open LLM on Xeon servers with AMX and no discrete accelerators, meeting interactive latency targets for an enterprise chatbot, and explain how you would get the most throughput from the CPU.

Intel
ML System Design
Machine Learning Engineer
Intel
November 29, 2026
Machine Learning Engineer
Onsite
ML System Design
Hard

0

0

0 solved


Design a service that serves a 7 to 13 billion parameter open LLM on Xeon servers with AMX and no discrete accelerators, meeting interactive latency targets for an enterprise chatbot, and explain how you would get the most throughput from the CPU.

Intel positions Xeon with AMX, OpenVINO and Intel Extension for PyTorch as a viable platform for moderate LLM inference, and its AI software engineers optimize exactly this. The interviewer checks understanding of where CPU inference is compute bound versus memory bandwidth bound and how serving design follows from that.

What the Interviewer Expects
  • Separates prefill (compute bound, benefits from AMX) from decode (memory bandwidth bound)
  • Estimates decode tokens per second from weight bytes and memory bandwidth
  • Uses weight quantization (INT8 or INT4) and BF16 compute appropriately
  • Applies continuous batching and KV cache management
  • Accounts for NUMA and sub-NUMA clustering when placing model replicas
  • Defines latency SLOs (time to first token, inter-token latency) and capacity planning
Key Topics to Cover
LLM serving
Memory bandwidth
Quantization
Batching
NUMA
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How would you choose between one replica per socket and one replica spanning both sockets?
  • Where would speculative decoding help on CPUs, and what does it cost?
  • How do you keep time to first token low when a long-prompt request arrives during heavy decode traffic?
  • How would you decide when the workload has outgrown CPUs and should move to Gaudi or GPUs?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Model: 8B parameters. Traffic: about 200 concurrent chat sessions, prompts up to 4k tokens, replies around 300 tokens. SLOs: time to first token under 2 s at p95 and inter-token latency under 100 ms (...

High-Level Design

An API gateway routes to a scheduler that holds a request queue per replica. Each replica is a process pinned to one socket (or one sub-NUMA cluster) running a model compiled with OpenVINO or IPEX, wi...


Submit Your Answer
Markdown supported

Related Questions