Skip to content

Perplexity Implement-from-Scratch Coding interview questions

Implement-from-Scratch Coding is a core part of the Perplexity 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 Perplexity 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 PERPLEXITY LOOKS FOR HERE · Deep GPU programming and performance work (CUDA, Triton, CUTLASS or similar). See the full Perplexity interview process →

Implement-from-Scratch Coding questions tagged to Perplexity

3 questions · 0 unlocked for you

More Implement-from-Scratch Coding questions for Perplexity's loop

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

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

Perplexity's Inference Engineer loop draws implement-from-scratch coding questions such as "Implement a radix tree prefix cache: match, insert with edge splitting, request locks and LRU eviction of unlocked leaves.", "Implement a KV block allocator that shares prefix blocks across requests by chained hashes, with LRU eviction of cached free blocks.", "Implement a minimal autoregressive generate loop that streams text and honors stop sequences, including ones split across tokens.". 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 Perplexity Implement-from-Scratch Coding round?▼
Does Perplexity hire inference engineers?▼
What is the Perplexity inference interview process?▼

Other Perplexity interview rounds

The other tracks Perplexity's Inference Engineer loop tests.

Prep the whole Perplexity Inference Engineer loop

Implement-from-Scratch Coding is one round. Unlock every answer across Perplexity'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, and the full practice-test bank.

6 months · One payment · No auto-renewal

Independent and not affiliated with Perplexity. All trademarks belong to their owners.