Software Engineer - GPU Kernels
Systems, C++ and performancePosted 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 over a year
Skills it mentions
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 seeking a GPU Kernel Engineer to join our team at the cutting edge of AI acceleration, where your code directly impacts the performance of state-of-the-art machine learning models. As a GPU Kernel Engineer, you'll craft the foundation that powers modern AI workloads, optimizing every microsecond of computation to enable breakthrough applications.
You'll work in a fast-paced, intellectually stimulating environment where technical excellence is paramount and your contributions directly influence production systems serving millions of users across numerous products. This role offers exceptional growth potential for engineers passionate about low-level optimization and high-impact systems work.
EXAMPLE INITIATIVES
You'll get to work on these types of projects as part of our Model Performance team:
RESPONSIBILITIES
Core Engineering Responsibilities
Design and implement high-performance GPU kernels for key ML operations, including matrix multiplications, attention mechanisms, and mixture-of-experts routing
Write and optimize code using CUDA, PTX assembly, and architecture-specific techniques
Apply advanced performance optimization methods such as memory coalescing, warp-level programming, tensor core acceleration, and compute/memory overlap
Performance & Innovation
Implement cutting-edge features like quantization (FP8/FP4), sparsity, and compute/communication overlap
Identify and resolve performance bottlenecks using tools like Nsight Systems, Nsight Compute, and Torch Profiler
Collaborate with research teams to productionize theoretical advancements
Impact & Collaboration
Contribute to internal and open-source GPU libraries
Present technical contributions at industry conferences (e.g., NVIDIA GTC, AWS re:Invent)
REQUIREMENTS
Strong understanding of GPU architecture and programming paradigms:
Memory hierarchy (global, shared, registers, L1/L2 cache)
Thread/block/grid organization
Synchronization techniques and race condition mitigation
Proficient in C++ and GPU performance profiling tools
Knowledge of:
CUDA C++ API
Memory access patterns and bandwidth optimization
Numerical precision and quantization strategies
Modern GPU features (e.g., tensor cores, async operations)
NICE TO HAVE
Experience with Transformer models and attention optimization (e.g., Flash Attention)
Familiarity with GPU kernel libraries: Cutlass, Triton, Thrust, CUB
Background in GEMM tuning and distributed/multi-GPU compute
Contributions to open-source GPU projects
Research publications or conference presentations on GPU performance
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 - GPU Kernels at Baseten
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Machine learning, C++, PyTorch and 1 more
Interview questions for this job
For the skills the ad mentions: Machine learning, C++, PyTorch and AWS.
Difference between isna() and isnull() in pandasMachine learning
Pandas
isna()vsisnull().I'm assuming you are referring to
pandas.DataFrame.isna()vspandas.DataFrame.isnull(). Not to confuse withpandas.isnull(), which in contrast to the two above isn't a method of the DataFrame class.These two DataFrame methods do exactly the same thing! Even their docs are identical. You can even confirm this in pandas' code.
But why have two methods with different names do the same thing?
This is because pandas' DataFrames are based on R's DataFrames. In R
naandnullare two separate things. Read this post for more information.However, in python, pandas is built on top of numpy, which has neither
nanornullvalues. Instead numpy hasNaNvalues (which stands for "Not a Number"). Consequently, pandas also usesNaNvalues.In short
To detect
NaNvalues numpy usesnp.isnan().To detect
NaNvalues pandas uses either.isna()or.isnull().
TheNaNvalues are inherited from the fact that pandas is built on top of numpy, while the two functions' names originate from R's DataFrames, whose structure and functionality pandas tried to mimic.
From Data Science Stack Exchange: asked by Vaibhav Thakur, answered by Djib2011 (CC BY-SA 4.0)
What is the copy-and-swap idiom?C++
Overview
Why do we need the copy-and-swap idiom?
Any class that manages a resource (a wrapper, like a smart pointer) needs to implement The Big Three. While the goals and implementation of the copy-constructor and destructor are straightforward, the copy-assignment operator is arguably the most nuanced and difficult. How should it be done? What pitfalls need to be avoided?
The copy-and-swap idiom is the solution, and elegantly assists the assignment operator in achieving two things: avoiding code duplication, and providing a strong exception guarantee.
How does it work?
Conceptually, it works by using the copy-constructor's functionality to create a local copy of the data, then takes the copied data with a
swapfunction, swapping the old data with the new data. The temporary copy then destructs, taking the old data with it. We are left with a copy of the new data.In order to use the copy-and-swap idiom, we need three things: a working copy-constructor, a working destructor (both are the basis of any wrapper, so should be complete anyway), and a
swapfunction.A swap function is a non-throwing function that swaps two objects of a class, member for member. We might be tempted to use
std::swapinstead of providing our own, but this would be impossible;std::swapuses the copy-constructor and copy-assignment operator within its implementation, and we'd ultimately be trying to define the assignment operator in terms of itself!(Not only that, but unqualified calls to
swapwill use our custom swap operator, skipping over the unnecessary construction and destruction of our class thatstd::swapwould entail.)An in-depth explanation
The goal
Let's consider a concrete case. We want to manage, in an otherwise useless class, a dynamic array. We start with a working constructor, copy-constructor, and destructor:
#include <algorithm> // std::copy #include <cstddef> // std::size_t class dumb_array { public: // (default) constructor dumb_array(std::size_t size = 0) : mSize(size), mArray(mSize ? new int[mSize]() : nullptr) { } // copy-constructor dumb_array(const dumb_array& other) : mSize(other.mSize), mArray(mSize ? new int[mSize] : nullptr) { // note that this is non-throwing, because of the data // types being used; more attention to detail with regards // to exceptions must be given in a more general case, however std::copy(other.mArray, other.mArray + mSize, mArray); } // destructor ~dumb_array() { delete [] mArray; } private: std::size_t mSize; int* mArray; };This class almost manages the array successfully, but it needs
operator=to work correctly.A failed solution
Here's how a naive implementation might look:
// the hard part dumb_array& operator=(const dumb_array& other) { if (this != &other) // (1) { // get rid of the old data... delete [] mArray; // (2) mArray = nullptr; // (2) *(see footnote for rationale) // ...and put in the new mSize = other.mSize; // (3) mArray = mSize ? new int[mSize] : nullptr; // (3) std::copy(other.mArray, other.mArray + mSize, mArray); // (3) } return *this; }And we say we're finished; this now manages an array, without leaks. However, it suffers from three problems, marked sequentially in the code as
(n).Read the rest at the sourceFrom Stack Overflow: asked by GManNickG, answered by GManNickG (CC BY-SA 4.0)
What's the difference between `reshape()` and `view()` in PyTorch?PyTorch
torch.viewhas existed for a long time. It will return a tensor with the new shape. The returned tensor will share the underling data with the original tensor. See the documentation here.On the other hand, it seems that
torch.reshapehas been introduced recently in version 0.4. According to the document, this method willReturns a tensor with the same data and number of elements as input, but with the specified shape. When possible, the returned tensor will be a view of input. Otherwise, it will be a copy. Contiguous inputs and inputs with compatible strides can be reshaped without copying, but you should not depend on the copying vs. viewing behavior.
It means that
torch.reshapemay return a copy or a view of the original tensor. You can not count on that to return a view or a copy. According to the developer:if you need a copy use clone() if you need the same storage use view(). The semantics of reshape() are that it may or may not share the storage and you don't know beforehand.
Another difference is that
reshape()can operate on both contiguous and non-contiguous tensor whileview()can only operate on contiguous tensor. Also see here about the meaning ofcontiguous.From Stack Overflow: asked by Lifu Huang, answered by jdhao (CC BY-SA 4.0)
Can an AWS Lambda function call anotherAWS
I found a way using the
aws-sdk.var aws = require('aws-sdk'); var lambda = new aws.Lambda({ region: 'us-west-2' //change to your region }); lambda.invoke({ FunctionName: 'name_of_your_lambda_function', Payload: JSON.stringify(event, null, 2) // pass params }, function(error, data) { if (error) { context.done('error', error); } if (data.Payload) { context.succeed(data.Payload); } });You can find the doc here: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Lambda.html
From Stack Overflow: asked by Silver, answered by picsoung (CC BY-SA 4.0)
What does model.train() do in PyTorch?Machine learning
model.train()tells your model that you are training the model. This helps inform layers such as Dropout and BatchNorm, which are designed to behave differently during training and evaluation. For instance, in training mode, BatchNorm updates a moving average on each new batch; whereas, for evaluation mode, these updates are frozen.More details:
model.train()sets the mode to train (see source code). You can call eithermodel.eval()ormodel.train(mode=False)to tell that you are testing. It is somewhat intuitive to expecttrainfunction to train model but it does not do that. It just sets the mode.From Stack Overflow: asked by aerin, answered by Umang Gupta (CC BY-SA 4.0)
What do you know about our company?Behavioural
Employers want to see that you have a genuine interest in working for them by asking questions like:
- what do you know about our company?
- why do you think you're a good fit for our company?
- why do you want to work for us?
To prepare for questions about the employer, you need to research the company. You should look at their website and 'about us' pages to find out more about their products, services and values.
Show what you've learned about the company throughout the interview.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Software Engineer, Network (C++)SpaceX, San Francisco Bay Area, Seattle, on-siteYesterday
- Senior Software Engineer (C++) - Sensor PipelinesLatitude AI, Remote, San Francisco Bay Area +12 weeks ago
- Staff Software Engineer - Compiler & Spark RuntimeSnowflake, Remote, San Francisco Bay Area +13 weeks ago
- Software Engineer, C++ (Onboard Platform)Applied Intuition, San Francisco Bay Area, on-site4 weeks ago
More like this: Jobs in New York (6,234), C++ and systems jobs in the USA (107) and Remote C++ and systems jobs in the USA (54)




