Software Engineer - Inference Performance
Software engineeringPosted over 2 months agofrom Baseten's own hiring page
- Work type
- RemoteIn the US and Canada
- Experience
- Not stated
- Pay
- $180k–360k a year
- Posted
- Over 2 months agoOpen 2 months
Skills it mentions
Nice to have
Add your skills to see which ones you have.
About the job
ABOUT BASETEN
Baseten powers mission-critical inference for the world's most dynamic AI companies, like Cursor, Notion, OpenEvidence, Abridge, Clay, Gamma, and Writer. By uniting applied AI research, flexible infrastructure, and seamless developer tooling, we enable companies operating at the frontier of AI to bring cutting-edge models into production. We're growing quickly and recently raised our $3B Series G, led by Sands Capital and Altimeter Capital. Join us and help build the platform engineers turn to ship AI products.
THE ROLE
We're looking for inference performance engineers who want to make the world's most demanding AI workloads run faster and more efficiently. You'll work across the stack, from the inference engine and runtime through scheduling, serving, and routing. Along the way you'll apply techniques like prefill/decode disaggregation, speculative decoding, and KV-cache management. You'll reason from first principles about where time and memory go, find what's holding performance back, and close the gap. Your work directly impacts how fast our customers' models run and how efficiently we serve them. This role is ideal for someone who thrives in a fast-paced startup environment and is eager to make significant contributions to the exciting field of LLM inference.
EXAMPLE INITIATIVES
You'll get to work on these types of projects as an Inference Performance engineer:
RESPONSIBILITIES
Implement and productionize cutting-edge inference techniques, working deep in runtime internals. That includes quantization, speculative decoding, KV-cache reuse, chunked prefill, LoRA, guided generation for structured outputs, and custom scheduling and routing algorithms.
Profile and optimize inference end to end, from kernel launch overhead and memory layout up to request scheduling, prefill/decode disaggregation, and cache-aware routing. Run cross-layer investigations, such as tracing a tail-latency regression from request timing through routing and batching down to a kernel.
Turn performance into cost savings. Improve tokens per GPU-hour, raise utilization, and give customers and internal teams clear latency/throughput/cost tradeoffs.
Bring up and tune new model architectures on new hardware quickly, often in the same week they're released.
Build benchmarking frameworks that measure real-world performance across model architectures, batch sizes, sequence lengths, and hardware configurations.
Contribute upstream to open-source inference engines (vLLM, SGLang, TensorRT-LLM), and partner closely with model, infrastructure, and customer-facing teams to ship wins.
REQUIREMENTS
Bachelor's, Master's, or Ph.D. degree in Computer Science, Engineering, Mathematics, or related field.
Experience with one or more general-purpose programming languages, such as Python or C++.
Familiarity with LLM optimization techniques (e.g., quantization, speculative decoding, continuous batching).
Strong familiarity with ML libraries, especially PyTorch, TensorRT, or TensorRT-LLM.
Demonstrated interest and experience in LLMs.
Deep understanding of GPU architecture.
NICE TO HAVE
Proficiency in enhancing the performance of software systems, particularly in the context of large language models (LLMs)
Contributed to vLLM, SGLang, TensorRT-LLM, or another inference engine.
Worked on large-scale distributed serving: autoscaling, load balancing, multi-region or multi-cloud capacity.
Written or optimized GPU kernels (CUDA, Triton, CUTLASS, or similar)
Worked on quantization (FP8/FP4, AWQ, GPTQ) or speculative decoding in production.
Deep understanding of software engineering principles and a proven track record of developing and deploying AI/ML inference solutions.
BENEFITS
Competitive salary and meaningful equity
Private medical insurance for you and your dependents
Workplace pension
Enhanced maternity, paternity, and shared parental leave
Apply now to embark on a rewarding journey in shaping the future of AI! If you are a motivated individual with a passion for machine learning and a desire to be part of a collaborative and forward-thinking team, we would love to hear from you.
At Baseten, we are committed to fostering a diverse and inclusive workplace. We welcome applications from everyone and do not discriminate on the basis of age, disability, gender reassignment, marriage or civil partnership, pregnancy or maternity, race, religion or belief, sex, or sexual orientation. If you need any adjustments during the application or interview process, please let us know.
Interested?Software Engineer - Inference Performance at Baseten
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on LLMs and GenAI, Machine learning, Python and 3 more
Interview questions for this job
For the skills the ad mentions: LLMs and GenAI, Machine learning, Python, C++, PyTorch and Networking.
Explain why subword tokenization is preferred over word-level tokenization in the Transformer model.LLMs and GenAI
Subword tokenization, such as Byte-Pair Encoding (BPE) in the Transformer model, offers several advantages over word-level tokenization by handling out-of-vocabulary words and balancing vocabulary size. It effectively handles out-of-vocabulary (OOV) words (unseen words, i.e., words not in the model vocabulary) by breaking them into known subwords, significantly improving coverage of rare or unseen words.
This method also results in a smaller, manageable vocabulary size compared to the vast lexicon of word-level tokenization, while still providing the semantic benefits of word-level units. Finally, it helps the model learn about morphology (prefixes, suffixes) by segmenting words into meaningful parts.
From LLM Interview Questions and Answers Hub (Apache 2.0)
What does `view()` do in PyTorch?Machine learning
view()reshapes the tensor without copying memory, similar to numpy'sreshape().Given a tensor
awith 16 elements:import torch a = torch.range(1, 16)To reshape this tensor to make it a
4 x 4tensor, use:a = a.view(4, 4)Now
awill be a4 x 4tensor. Note that after the reshape the total number of elements need to remain the same. Reshaping the tensorato a3 x 5tensor would not be appropriate.What is the meaning of parameter -1?
If there is any situation that you don't know how many rows you want but are sure of the number of columns, then you can specify this with a -1. (Note that you can extend this to tensors with more dimensions. Only one of the axis value can be -1). This is a way of telling the library: "give me a tensor that has these many columns and you compute the appropriate number of rows that is necessary to make this happen".
This can be seen in this model definition code. After the line
x = self.pool(F.relu(self.conv2(x)))in the forward function, you will have a 16 depth feature map. You have to flatten this to give it to the fully connected layer. So you tell PyTorch to reshape the tensor you obtained to have specific number of columns and tell it to decide the number of rows by itself.From Stack Overflow: asked by Wasi Ahmad, answered by Kashyap (CC BY-SA 4.0)
How do I convert a string to a number?Python
For integers, use the built-in
int()type constructor, for example,int('144') == 144. Similarly,float()converts to a floating-point number, for example,float('144') == 144.0.By default, these interpret the number as decimal, so that
int('0144') == 144holds true, andint('0x144')raisesValueError.int(string, base)takes the base to convert from as a second optional argument, soint( '0x144', 16) == 324. If the base is specified as 0, the number is interpreted using Python’s rules: a leading ‘0o’ indicates octal, and ‘0x’ indicates a hex number.Do not use the built-in function
eval()if all you need is to convert strings to numbers.eval()will be significantly slower and it presents a security risk: someone could pass you a Python expression that might have unwanted side effects. For example, someone could pass__import__('os').system("rm -rf $HOME")which would erase your home directory.eval()also has the effect of interpreting numbers as Python expressions, so that, for example,eval('09')gives a syntax error because Python does not allow leading ‘0’ in a decimal number (except ‘0’).From Python Frequently Asked Questions (PSF License Version 2)
Why is reading lines from stdin much slower in C++ than Python?C++
tl;dr: Because of different default settings in C++ requiring more system calls.
By default,
cinis synchronized with stdio, which causes it to avoid any input buffering. If you add this to the top of your main, you should see much better performance:std::ios_base::sync_with_stdio(false);Normally, when an input stream is buffered, instead of reading one character at a time, the stream will be read in larger chunks. This reduces the number of system calls, which are typically relatively expensive. However, since the
FILE*basedstdioandiostreamsoften have separate implementations and therefore separate buffers, this could lead to a problem if both were used together. For example:int myvalue1; cin >> myvalue1; int myvalue2; scanf("%d",&myvalue2);If more input was read by
cinthan it actually needed, then the second integer value wouldn't be available for thescanffunction, which has its own independent buffer. This would lead to unexpected results.To avoid this, by default, streams are synchronized with
stdio. One common way to achieve this is to havecinread each character one at a time as needed usingstdiofunctions. Unfortunately, this introduces a lot of overhead. For small amounts of input, this isn't a big problem, but when you are reading millions of lines, the performance penalty is significant.Fortunately, the library designers decided that you should also be able to disable this feature to get improved performance if you knew what you were doing, so they provided the
sync_with_stdiomethod. From this link (emphasis added):If the synchronization is turned off, the C++ standard streams are allowed to buffer their I/O independently, which may be considerably faster in some cases.
From Stack Overflow: asked by JJC, answered by Vaughn Cato (CC BY-SA 4.0)
What does `gather()` do in PyTorch in layman terms?PyTorch
torch.gathercreates a new tensor from the input tensor by taking the values from each row along the input dimensiondim. The values intorch.LongTensor, passed asindex, specify which value to take from each 'row'. The dimension of the output tensor is same as the dimension of index tensor. Following illustration from the official docs explains it more clearly:(Note: In the illustration, indexing starts from 1 and not 0).
In first example, the dimension given is along rows (top to bottom), so for (1,1) position of
result, it takes row value from theindexfor thesrcthat is1. At (1,1) in source value is1so, outputs1at (1,1) inresult. Similarly for (2,2) the row value from the index forsrcis3. At (3,2) the value insrcis8and hence outputs8and so on.Similarly for second example, indexing is along columns, and hence at (2,2) position of the
result, the column value from the index forsrcis3, so at (2,3) fromsrc,6is taken and outputs toresultat (2,2)From Stack Overflow: asked by amitection, answered by Ritesh (CC BY-SA 4.0)
Have you ever taken the initiative?Behavioural
Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:
- when have you faced a challenging situation?
- can you tell us about a personal achievement at work?
- have you ever taken the initiative?
- have you ever failed at a task?
Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.
If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.
Use the STAR method to help structure your answers.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Member of Technical StaffClera, San Francisco Bay Area, on-siteToday
- Software Engineer II, Warehouse Management SystemsFlexport, Seattle, on-siteYesterday
- Software Engineer, Safety Data FlywheelOpenAI, Remote, San Francisco Bay AreaYesterday
- Senior Staff Software EngineerFivetran, San Francisco Bay Area, hybridYesterday
More like this: Software engineer jobs in New York (301), Jobs in New York (6,234), Software engineer jobs in the USA (1,765) and Remote Software engineer jobs in the USA (709)



