Log inStart free
LESSON 34.02 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Model routing and cascades

Watch a router and a cascade send easy chat requests to a cheap model.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 2 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 34.02 · ROUTING BAY1B $9.2 · 8B $50.8 PER 1M REQUESTS
01
Stage 1 of 5 · Two models
The 1B model costs about 5.5 times less than the 8B model. It answers 8 of the 12 sample requests well.
Explain it simply

Each row is one chat request. The short bar is its cost on the 1B model, the long bar its cost on 8B. For each token, the 1B model reads 2.5 GB of weights and the 8B model 15.0 GB. A cross marks the four hard requests that the 1B model gets wrong.

12 rows, one per request, with two cost bars each. The 1B model costs about 5.5 times less and answers 8 of the 12 samples well.

requeststhresholdcosts, scores, good answerswrong answers, wasted 8B runs
request1B okcost per 1M requests1B8BH100 at $4.00 an hourQ01How do I change my flight date?$5.4 / $29.6Q02Can I move my flight to Friday?$5.3 / $29.3Q03What is the baggage limit?$3.9 / $21.5Q04How many bags can I bring?$4.8 / $26.8Q05Why was I charged twice for one …$13.2 / $72.8Q06My hotel booking vanished after …$12.2 / $67.1Q07Is there a cancellation fee?$4.6 / $25.6Q08Plan a 3-day trip to Lisbon on a…$18.0 / $98.8Q09Is breakfast included at my hote…$6.4 / $35.3Q10How do I cancel and get a refund?$9.2 / $50.8Q11Compare two routes to Tokyo with…$17.8 / $98.8Q12How much is the cancellation fee?$9.5 / $53.4requests on two modelsmean per 1M requests: 1B $9.2 · 8B $50.8request1B okcost per 1M requests1B8BH100 at $4.00 an hourQ01How do I change my flight date?$5.4 / $29.6Q02Can I move my flight to Friday?$5.3 / $29.3Q03What is the baggage limit?$3.9 / $21.5Q04How many bags can I bring?$4.8 / $26.8Q05Why was I charged twice for one …$13.2 / $72.8Q06My hotel booking vanished after …$12.2 / $67.1Q07Is there a cancellation fee?$4.6 / $25.6Q08Plan a 3-day trip to Lisbon on a…$18.0 / $98.8Q09Is breakfast included at my hote…$6.4 / $35.3Q10How do I cancel and get a refund?$9.2 / $50.8Q11Compare two routes to Tokyo with…$17.8 / $98.8Q12How much is the cancellation fee?$9.5 / $53.4requests on two modelsmean per 1M requests: 1B $9.2 · 8B $50.8
Toy: 12 help-chat requests from 34.C1, a 1B and an 8B model on one H100 at batch 32, toy price $4.00 an hour; costs count busy GPU time only (34.01 adds idle time); the scores are toy values, and the router's own cost is left out
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
c=tGPU×price\sy{c}{out}{c} = \sy{t}{data}{t_{\text{GPU}}} \times \sy{p}{param}{\text{price}}
c8B(Q01)=0.0267 s3600 s×$4.00×106≈$29.6c_{\text{8B}}(\text{Q01}) = \dfrac{0.0267\,\text{s}}{3600\,\text{s}} \times \$4.00 \times 10^6 \approx \$29.6

A request costs its GPU time times the price of the GPU.

Common mix-ups

MYTHA cascade always costs less than the big model alone.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01In the help chat, does the cascade answer more or fewer requests well at 0.5 than at 0.7?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 2 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.