Predict how much faster an application runs after porting it from CPU to GPU

Quick Overview

An ML modeling design question from an NVIDIA Senior Machine Learning Engineer interview: predict how much faster an application will run after it moves from CPU to GPU. It tests target definition, collecting comparable benchmark data through an ETL pipeline, workload and hardware features, leakage-free evaluation and uncertainty.

Predict how much faster an application runs after porting it from CPU to GPU

Company: NVIDIA

Role: Machine Learning Engineer

Category: ML System Design

Difficulty: medium

Interview Round: Onsite

The hiring team works on GPU-accelerated data science software related to RAPIDS. The hiring manager asks you to design an ML model that predicts how much faster an application will run after it is moved from CPU to GPU. Assume the applications are data processing and machine learning workloads, such as dataframe transformations, joins, aggregations and model training, written against CPU libraries that have GPU-accelerated counterparts. Assume the prediction is used before any porting work, to judge whether moving a workload to GPU is worth the effort. ### Clarifying Questions - Is the prediction for a whole application, for an application at a given input size, or for individual operations inside it? - Does "speedup" mean end-to-end wall-clock time, including data loading and transfers between host and GPU memory, or compute time only? - What is available before porting: the source code, a profiled run on CPU, or only a description of the workload? - Which CPU and GPU hardware should the prediction target, and must it cover hardware with no benchmark data yet? - What decision does the prediction feed, and is an overestimate more costly than an underestimate? ### Part 1: Frame the prediction target Define exactly what the model predicts, the unit of prediction, and the form of the output that the decision needs. ```hint Pick the error scale Speedups range from slowdowns to very large gains. Decide on which scale an error of a given size should count the same. ``` #### What This Part Should Cover - A precise target definition and what timing it includes. - The unit of prediction and why it matters for the label. - Whether a regression output, a classification, or both serves the decision. ### Part 2: Training data and features Describe how you would collect labeled examples and which features you would compute for each one. ```hint Make runs comparable Labels come from running the same workload on both kinds of hardware. Ask what has to be held fixed for two such runs to be comparable. ``` #### What This Part Should Cover - How paired CPU and GPU runs are produced and kept comparable. - Features describing the workload's operations, data size and types, and the hardware. - Workloads that run partly on CPU because some operations have no GPU implementation. ### Part 3: Model, evaluation and use Choose a model, explain how you would evaluate it, and describe how it would be served and kept current. ```hint Watch the split The same application measured at several input sizes yields several training rows. Think about what that does to a random train and test split. ``` #### What This Part Should Cover - The model choice and whether to build in known structure of the problem. - An evaluation split and metrics that reflect predicting for new applications. - Serving, uncertainty, and retraining as hardware and library versions change. ### What a Strong Answer Covers - A target and unit of prediction tied to the decision the prediction serves. - A data collection plan with comparable CPU and GPU runs, and an ETL path from raw runs to training rows. - Features that capture why GPU acceleration helps or hurts: the share of work that can be accelerated, data size, transfer cost and unsupported operations. - Evaluation that holds out whole applications and reports error on a ratio scale. - Handling of uncertainty, new hardware and library releases. ### Follow-up Questions - Walk through the ETL pipeline that turns raw benchmark runs and profiler output into training rows. What would you validate before a row is used for training? - A new GPU generation launches and you have only a few benchmark runs on it. How do you produce predictions for it? - The model predicts a large speedup, the user ports the workload, and it runs slower than on CPU. How would you debug the prediction? - How would you explain a prediction so the user knows which part of the workload limits the speedup?

Overview: An ML modeling design question from an NVIDIA Senior Machine Learning Engineer interview: predict how much faster an application will run after it moves from CPU to GPU. It tests target definition, collecting comparable benchmark data through an ETL pipeline, workload and hardware features, leakage-free evaluation and uncertainty.

Read the full NVIDIA Machine Learning Engineer interview experience this question came from

NVIDIA logo
NVIDIA
Nov 23, 2026
mediumMachine Learning EngineerOnsiteML System Design
0
0

The hiring team works on GPU-accelerated data science software related to RAPIDS. The hiring manager asks you to design an ML model that predicts how much faster an application will run after it is moved from CPU to GPU.

Assume the applications are data processing and machine learning workloads, such as dataframe transformations, joins, aggregations and model training, written against CPU libraries that have GPU-accelerated counterparts. Assume the prediction is used before any porting work, to judge whether moving a workload to GPU is worth the effort.

Clarifying Questions Guidance

  • Is the prediction for a whole application, for an application at a given input size, or for individual operations inside it?
  • Does "speedup" mean end-to-end wall-clock time, including data loading and transfers between host and GPU memory, or compute time only?
  • What is available before porting: the source code, a profiled run on CPU, or only a description of the workload?
  • Which CPU and GPU hardware should the prediction target, and must it cover hardware with no benchmark data yet?
  • What decision does the prediction feed, and is an overestimate more costly than an underestimate?

Part 1: Frame the prediction target

Define exactly what the model predicts, the unit of prediction, and the form of the output that the decision needs.

What This Part Should Cover Guidance

  • A precise target definition and what timing it includes.
  • The unit of prediction and why it matters for the label.
  • Whether a regression output, a classification, or both serves the decision.

Part 2: Training data and features

Describe how you would collect labeled examples and which features you would compute for each one.

What This Part Should Cover Guidance

  • How paired CPU and GPU runs are produced and kept comparable.
  • Features describing the workload's operations, data size and types, and the hardware.
  • Workloads that run partly on CPU because some operations have no GPU implementation.

Part 3: Model, evaluation and use

Choose a model, explain how you would evaluate it, and describe how it would be served and kept current.

What This Part Should Cover Guidance

  • The model choice and whether to build in known structure of the problem.
  • An evaluation split and metrics that reflect predicting for new applications.
  • Serving, uncertainty, and retraining as hardware and library versions change.

What a Strong Answer Covers Guidance

  • A target and unit of prediction tied to the decision the prediction serves.
  • A data collection plan with comparable CPU and GPU runs, and an ETL path from raw runs to training rows.
  • Features that capture why GPU acceleration helps or hurts: the share of work that can be accelerated, data size, transfer cost and unsupported operations.
  • Evaluation that holds out whole applications and reports error on a ratio scale.
  • Handling of uncertainty, new hardware and library releases.

Follow-up Questions Guidance

  • Walk through the ETL pipeline that turns raw benchmark runs and profiler output into training rows. What would you validate before a row is used for training?
  • A new GPU generation launches and you have only a few benchmark runs on it. How do you produce predictions for it?
  • The model predicts a large speedup, the user ports the workload, and it runs slower than on CPU. How would you debug the prediction?
  • How would you explain a prediction so the user knows which part of the workload limits the speedup?