Together AI Implement-from-Scratch Coding interview questions
Implement-from-Scratch Coding is a core part of the Together 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 Together 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 TOGETHER AI LOOKS FOR HERE · Python and PyTorch proficiency; high-performance, well-tested production code. See the full Together AI interview process →
Implement-from-Scratch Coding questions tagged to Together AI
More Implement-from-Scratch Coding questions for Together AI's loop
Sorted by reader votes. These are not tagged to Together AI; they cover the implement-from-scratch coding ground its Inference Engineer loop is known to test.
Concepts behind Together AI's Implement-from-Scratch Coding round
What these answers take for granted. Foundation concepts are free to read; the advanced ones are Premium.
Together AI's Inference Engineer loop draws implement-from-scratch coding questions such as "Implement batched top-p sampling with temperature. It must handle ties at the cutoff, p = 1, temperature 0 and masked tokens.", "Implement the lossless speculative sampling verifier for a batch with ragged draft lengths, and prove it matches the target.", "Implement RoPE for a batched decode step where every row sits at a different position, and verify it against the full-sequence version.". 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.
Other Together AI interview rounds
The other tracks Together AI's Inference Engineer loop tests.
Prep the whole Together AI Inference Engineer loop
Implement-from-Scratch Coding is one round. Unlock every answer across Together 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, and the full practice-test bank.
6 months · One payment · No auto-renewal
Independent and not affiliated with Together AI. All trademarks belong to their owners.