xAI (SpaceXSI) KV Cache & GPU Memory interview questions
KV Cache & GPU Memory is a core part of the xAI (SpaceXSI) Inference Engineer loop. The KV algebra across MHA, GQA, MQA and MLA, block tables and fragmentation, hash and radix prefix reuse, eviction, FP8 KV, CPU and NVMe offload, and the gpu_memory_utilization budget that decides how many sequences actually fit. Questions tagged to xAI (SpaceXSI) come first. After them, the top-voted questions from the KV Cache & GPU Memory track. Each answer is written the way a senior serving engineer would argue it at a whiteboard, numbers included.
WHAT XAI (SPACEXSI) LOOKS FOR HERE · Deep low-level systems programming (C/C++ or Rust). See the full xAI (SpaceXSI) interview process →
KV Cache & GPU Memory questions tagged to xAI (SpaceXSI)
More KV Cache & GPU Memory questions for xAI (SpaceXSI)'s loop
Sorted by reader votes. These are not tagged to xAI (SpaceXSI); they cover the kv cache & gpu memory ground its Inference Engineer loop is known to test.
Concepts behind xAI (SpaceXSI)'s KV Cache & GPU Memory round
What these answers take for granted. Foundation concepts are free to read; the advanced ones are Premium.
xAI (SpaceXSI)'s Inference Engineer loop draws kv cache & gpu memory questions such as "DeepSeek says V4.1-Flash keeps 890 bytes of KV per token. vLLM allocates 1,056. Reconcile the two numbers.", "Account for every gigabyte on a GPU running vLLM: weights, KV pool, activations, CUDA graphs and NCCL buffers.", "FP8 KV cache: what scales does it need, where is the error largest, and how would you validate it on long-context tasks?". The KV algebra across MHA, GQA, MQA and MLA, block tables and fragmentation, hash and radix prefix reuse, eviction, FP8 KV, CPU and NVMe offload, and the gpu_memory_utilization budget that decides how many sequences actually fit. Every question in the topic is listed below from easiest to hardest, each with a worked answer.
Other xAI (SpaceXSI) interview rounds
The other tracks xAI (SpaceXSI)'s Inference Engineer loop tests.
Prep the whole xAI (SpaceXSI) Inference Engineer loop
KV Cache & GPU Memory is one round. Unlock every answer across xAI (SpaceXSI)'s full loop with Premium. Free questions in every track let you try the depth first.
Every worked answer and derivation in all 12 topics, every concept page, the full practice-test bank, and every code drill’s edge-case tests and reference solution.
6 months · One payment · No auto-renewal
Independent and not affiliated with xAI (SpaceXSI). All trademarks belong to their owners.