Pidoku

What the Principal Role Owns

Module 31 Lesson 31.a 50 min Difficulty 3/5

Prerequisites 1.g, 23.c, 22.a


Before you start: words you need#

WordPlain meaning
Principal engineerThe most senior individual-contributor (non-manager) engineering level at most companies. Judged on the outcomes of a whole area, not on their own code.
Staff engineerThe level just below principal. Usually owns a large system or a cross-team project; the principal owns a direction that spans several of those.
FleetAll the accelerators (GPUs, TPUs and others) a company runs inference on, treated as one asset.
LeverageHow much outcome you get per unit of your own time. A principal’s job is to pick the highest-leverage work, not the most interesting.
Expected value (EV)Gain if it works × probability it works. The honest way to compare risky projects.
Engineer-weekOne engineer working for one week. The unit for the cost of a project in people.
Technical strategyA written answer to “what will we build, buy and stop doing over the next 1–3 years, and why”.
Decision recordA short written note of a decision, the options considered and the reasons. Lets people a year later know why things are the way they are.

1. What is it?#

A principal inference engineer owns the outcomes of a company’s inference: how fast, how reliable, how good and how cheap its models are to serve, now and over the next few years. They do it mostly through other people’s work: by choosing what gets built, reviewing designs, setting the numbers everyone aims at, and stepping in personally on the few problems nobody else can solve.

Everything before this module taught the parts: hardware (Modules 4, 7, 8), the physics (2, 12), optimization (13), distribution (14), engines (15–19), serving (20), platforms (21), performance (22), production (23) and research (24). This module is about holding all of it at once and making decisions with it. It does not re-teach those parts; it links to them by label.

The role owns five things:

flowchart LR
  STRAT["Technical strategy<br/><small>build/buy, hardware, models</small>"] --> NUM["The numbers<br/><small>SLOs, $/M tokens, quality bars</small>"]
  NUM --> DES["Design quality<br/><small>docs and reviews</small>"]
  DES --> PROG["Programmes<br/><small>performance, reliability</small>"]
  PROG --> PEOPLE["People<br/><small>raising the bar of others</small>"]
  PEOPLE -.->|"what they learn changes"| STRAT
  class STRAT compute
  class NUM memory
  class DES,PROG io
  class PEOPLE warn

Facts checked on 13 November 2026.


2. Why does it matter?#

Inference is now one of the largest costs in many software companies, and it behaves unlike ordinary backend spend (1.c):

  • The money is concentrated. A fleet of a few thousand GPUs costs tens of millions of dollars a year (7.l, 23.c). One decision about precision, hardware or routing moves more money than a whole team’s salaries.
  • The ground moves every quarter. Rental prices rose through 2026 instead of falling (31.d), a new GPU generation arrives every year (7.e), open models change monthly (24.j), and the engines release new versions every few weeks (19.h). Somebody has to decide which changes matter.
  • The parts interact. Quantization changes quality (Module 28), which changes the eval gate, which changes how fast you can roll out (23.g), which changes how long you pay for the old hardware. Teams that each own one part optimise it locally. Someone must own the whole.
  • Most choices are hard to undo. A three-year hardware commitment, an API contract or a platform architecture lasts longer than the model it was bought for.

Without a principal, these decisions still get made, but by default: by whoever shouts, by the vendor’s sales team, or by the last incident.


3. Simple analogy#

A city’s chief traffic engineer does not drive the buses, pour the asphalt or fix the traffic lights. They decide where the next road goes, set the targets (“no bus more than 5 minutes late”), check every big junction design before it is built, run the long programme that shortens commute times year after year, and train the junior engineers. On a bad day they are the one in the control room who knows how the whole network fits together. Their work is measured by how the city moves, not by how many roads they personally built.


4. Tiny example: one week, three decisions#

A principal at a company spending $40M a year on inference sees three requests on Monday:

1. A team wants 6 months to write their own attention kernel (+15% on 10% of the fleet).
2. Finance asks whether to sign a 3-year reserved deal for 2,000 B200s.
3. Product wants a "fast mode" for the coding agent at 3× the speed.

A senior engineer would start on whichever is most interesting. A principal asks, for each: how much money or user value does it touch, how likely is it to work, what does it cost in people, and is it reversible?

  • Kernel: 10% × 15% × 50% chance ≈ $0.3M a year for 26 engineer-weeks, and upstream (FlashInfer, FlashAttention-4) may ship the same thing for free. Decline, or shrink to a two-week prototype.
  • Reservation: irreversible and large. It needs a demand forecast, a mix of commitment levels and a view on the next generation (31.d). Write a decision record.
  • Fast mode: a product decision with a hardware answer (SRAM machines, 7.k; speculative decoding, 13.n; small batches, 2.d) and a price (31.e). Ask for a one-page design (31.b).

5. Technical explanation#

The five things the role owns#

1. Technical strategy. A written view, revisited every 6–12 months, of:

  • which workloads run where (API, managed endpoint, own fleet) (31.c);
  • which hardware, bought how (31.d);
  • which serving stack and platform (15.f, 21.m);
  • which models, at which precision, with which quality bar (Module 28);
  • what the team will stop doing.

The last item is the most valuable. A strategy that only adds things is a wish list.

2. The numbers. The principal makes sure every service has, and everyone knows:

NumberOwned inExample target
Latency SLOs (TTFT, ITL, end-to-end)23.ap95 TTFT < 800 ms
Availability and error budget23.a, 31.g99.9% of requests succeed
Cost per million tokens, per tier23.c, 31.e< $1.50 / M output
Quality bar for any serving changeModule 28no eval drop beyond noise
Utilization of the fleet22.d, 23.b> 70% useful busy time

A number without an owner, a dashboard (22.j) and a review cadence is a wish.

3. Design quality. Every large change gets a written design and a review (31.b). The principal reads the important ones, and more importantly, sets the standard so that others’ reviews catch what they would have caught.

4. Programmes. Multi-quarter efforts that no single team owns: a fleet-wide performance programme (31.f), a reliability programme (31.g), a technique-adoption pipeline from paper to production (31.h).

5. People. Raising others: teaching the napkin maths, pairing on the hard debugging session, writing the doc everyone copies, and sponsoring engineers for the projects that will grow them.

What the role does not own#

  • Line management. The principal usually has no reports. Influence comes from being right, being clear and being useful.
  • Every decision. If every design waits for the principal, the principal is the bottleneck. The goal is a team that makes the same call without them.
  • The interesting work. A principal who spends a quarter on a kernel because it is fun has left the strategy, the numbers and the reviews unowned for a quarter.

Choosing work: leverage#

The principal’s scarcest resource is the team’s engineer-weeks. Rank projects by expected value per engineer-week:

                spend touched × fraction saved × probability it works
EV per week = ─────────────────────────────────────────────────────────
                            engineer-weeks to ship

Three habits make the ranking honest:

  • Use the fleet’s real numbers, not the project’s pitch. “30% faster” on one kernel is 3% on a model that spends 10% of its time in that kernel (Amdahl’s law, 22.a).
  • Discount for probability. New techniques transfer from paper to production less often than their papers suggest (24.a, 31.h).
  • Count the cost of not doing it. A cheap reversible project can start today; an expensive irreversible one deserves a design doc first.

The three time horizons#

HorizonQuestionOwned by the principal through
This weekIs anything on fire? Is any decision blocked on me?incident reviews, design reviews
This quarterAre the numbers moving the right way?programmes, dashboards, planning
1–3 yearsWhat hardware, models and platform will we need?technical strategy, procurement

Most engineers live in the first row. The principal must protect time for the third, because no one else will.


6. Under the hood: ranking a portfolio#

The program ranks six candidate projects for a $40M-a-year fleet by expected value per engineer-week. The inputs are illustrative; replace them with your own fleet’s numbers.

Go
// leverage.go — rank candidate projects by expected value per engineer-week.
package main

import (
	"fmt"
	"sort"
)

type project struct {
	name     string
	spend    float64 // annual fleet spend the project touches, $
	gain     float64 // fraction of that spend saved if it works
	pWorks   float64 // probability it works in production
	weeks    float64 // engineer-weeks to ship
	riskNote string
}

func main() {
	const fleet = 40e6 // $40M a year of GPUs
	ps := []project{
		{"FP8 → NVFP4 weights on the B200 pool", 0.45 * fleet, 0.30, 0.6, 30, "quality gate needed"},
		{"Prefix-aware routing for the agent tier", 0.35 * fleet, 0.20, 0.8, 12, "needs session IDs"},
		{"Fill night trough with batch jobs", fleet, 0.12, 0.9, 8, "needs a batch queue"},
		{"Hand-written attention kernel", 0.10 * fleet, 0.15, 0.5, 26, "upstream may ship it"},
		{"Retire the 7B model nobody calls", 0.03 * fleet, 1.00, 0.95, 2, "one migration"},
		{"Move chat tier to Rubin (new hardware)", 0.30 * fleet, 0.35, 0.7, 40, "supply, new kernels"},
	}
	type row struct {
		project
		ev, perWeek float64
	}
	var rows []row
	for _, p := range ps {
		ev := p.spend * p.gain * p.pWorks
		rows = append(rows, row{p, ev, ev / p.weeks})
	}
	sort.Slice(rows, func(i, j int) bool { return rows[i].perWeek > rows[j].perWeek })
	fmt.Printf("%-42s %10s %8s %12s\n", "project", "EV $/yr", "weeks", "EV per week")
	total := 0.0
	for _, r := range rows {
		total += r.ev
		fmt.Printf("%-42s %9.2fM %8.0f %11.0fk   (%s)\n", r.name, r.ev/1e6, r.weeks, r.perWeek/1e3, r.riskNote)
	}
	fmt.Printf("\nall six: $%.1fM a year expected, %.0f%% of the fleet (overlaps ignored)\n", total/1e6, total/fleet*100)
}

Output:

project                                       EV $/yr    weeks  EV per week
Retire the 7B model nobody calls                1.14M        2         570k   (one migration)
Fill night trough with batch jobs               4.32M        8         540k   (needs a batch queue)
Prefix-aware routing for the agent tier         2.24M       12         187k   (needs session IDs)
FP8 → NVFP4 weights on the B200 pool            3.24M       30         108k   (quality gate needed)
Move chat tier to Rubin (new hardware)          2.94M       40          74k   (supply, new kernels)
Hand-written attention kernel                   0.30M       26          12k   (upstream may ship it)

all six: $14.2M a year expected, 35% of the fleet (overlaps ignored)

How to read it:

  • The boring projects win. Deleting an unused model and filling the night-time trough with batch work (27.f covers batch inference) beat every clever one per engineer-week. This is the usual result, and the reason principals spend time on fleet hygiene.
  • The kernel loses not because kernels are bad but because it touches 10% of the fleet. The same kernel on 60% of the fleet would rank near the top.
  • Savings do not add. NVFP4 and Rubin both cut the cost of the same chat tier; doing both saves less than the sum. The final line says so. A real plan applies them in sequence (31.f).

7. Performance implications#

  • The principal rarely makes anything faster personally. They decide which speed-ups the fleet gets, in which order, and make sure each one is measured at the SLO (22.g), not in isolation.
  • The biggest performance wins at fleet scale are usually utilization (23.c’s waterfall) and placement (21.e), not kernels. Kernels matter when they are on the hot path of most of the fleet.
  • A principal keeps a short list of the fleet’s top three bottlenecks, with numbers, and updates it each quarter. If nobody can produce that list, the first job is to build the measurement (22.j, 23.h).

8. Production implications#

  • Write things down. A technical strategy, decision records for big choices, and a one-page “how we serve models” doc for new joiners. Written decisions survive reorganisations; hallway ones do not.
  • Own the incident review, not the incident. On-call engineers fix outages. The principal makes sure the review finds the systemic cause and that the fix is funded (31.g).
  • Hold the line on quality. Every cost-cutting change (quantization, speculative decoding, a smaller model) is also a quality change. The principal makes the quality gate non-negotiable (Module 28, 31.h).
  • Be the bridge to finance and product. Translate “B200 vs Rubin” into dollars per user per month (31.e), and “the user wants it faster” into a hardware and a price.

9. Common mistakes#

  1. Acting as the team’s best coder. The code gets better; the strategy, the numbers and the reviews go unowned.
  2. Optimising what is interesting instead of what is large. Rank by expected value per engineer-week.
  3. Strategy as a list of additions. If nothing is stopped, nothing is chosen.
  4. Decisions in meetings with no record. A year later nobody knows why, and the debate restarts.
  5. Becoming the bottleneck. If every design needs your approval, write down how you decide so others can.
  6. Trusting vendor numbers over your own benchmarks (22.g). Every vendor’s slide is measured at the configuration that flatters it.
  7. Forgetting the people part. A principal whose team has not grown in a year has not done the job.

10. Hands-on exercise#

  1. Run leverage.go. Change the attention kernel’s spend to 60% of the fleet. Where does it rank now?
  2. Add two projects from your own work (or invent realistic ones). What probability did you give each? Ask a colleague to estimate it independently and compare.
  3. Write a one-page technical strategy for a company spending $10M a year on inference: what runs where, which hardware, which model sizes, and three things you will stop doing.
  4. List the five numbers in section 5’s table for a service you know. Which one has no owner, no dashboard or no target?

11. Interview questions#

  1. What does a principal inference engineer own that a staff engineer does not?
  2. You have one engineer for one quarter and five candidate projects. How do you choose?
  3. Give an example of an inference decision that is hard to reverse, and how you would de-risk it.
  4. Why do fleet-hygiene projects (retiring models, filling troughs) so often beat kernel work?
  5. How do you make sure quality does not erode under a cost-cutting programme?
  6. How do you know, as a principal, that you are doing the job well?

12. Further reading#

Checked on 13 November 2026.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in