Skip to content

Sarvam AI Implement-from-Scratch Coding interview questions

Implement-from-Scratch Coding is a core part of the Sarvam AI Inference Engineer loop. The coding round of an inference loop: grouped-query attention with a cache, online-softmax attention, a paged block allocator, a continuous batching scheduler, a lossless speculative verifier, top-p sampling, RoPE, INT4 packing and Triton kernels. Questions tagged to Sarvam AI come first. After them, the top-voted questions from the Implement-from-Scratch Coding track. Each answer is written the way a senior serving engineer would argue it at a whiteboard, numbers included.

WHAT SARVAM AI LOOKS FOR HERE · Source-level fluency in SGLang, vLLM, NVIDIA Dynamo or TensorRT-LLM. See the full Sarvam AI interview process →

Implement-from-Scratch Coding questions tagged to Sarvam AI

1 questions · 0 unlocked for you

More Implement-from-Scratch Coding questions for Sarvam AI's loop

Sorted by reader votes. These are not tagged to Sarvam AI; they cover the implement-from-scratch coding ground its Inference Engineer loop is known to test.

15 questions · 5 unlocked for you
SARVAM AI IMPLEMENT-FROM-SCRATCH CODING FAQ
What Implement-from-Scratch Coding questions does Sarvam AI ask in interviews?▲

Sarvam AI's Inference Engineer loop draws implement-from-scratch coding questions such as "Implement a LoRA linear layer by hand, then decide whether to merge the adapter into a BF16 base and into an FP8 base.", "Implement a paged KV-cache block manager with copy-on-write forking, then a scheduler step that preempts when blocks run out.", "Implement grouped-query attention over a preallocated KV cache, with no torch.cat, for both prefill chunks and decode.". The coding round of an inference loop: grouped-query attention with a cache, online-softmax attention, a paged block allocator, a continuous batching scheduler, a lossless speculative verifier, top-p sampling, RoPE, INT4 packing and Triton kernels. Every question in the topic is listed below from easiest to hardest, each with a worked answer.

How should I prepare for the Sarvam AI Implement-from-Scratch Coding round?▼
Does Sarvam AI hire inference engineers?▼
What is the Sarvam AI inference interview process?▼

Other Sarvam AI interview rounds

The other tracks Sarvam AI's Inference Engineer loop tests.

Prep the whole Sarvam AI Inference Engineer loop

Implement-from-Scratch Coding is one round. Unlock every answer across Sarvam AI'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 Sarvam AI. All trademarks belong to their owners.