WEBVTT

00:00:01.290 --> 00:00:02.264
Hi, I'm Ruby!

00:00:02.264 --> 00:00:06.486
Splash is an open inference engine for Macs that serves exactly two models.

00:00:06.486 --> 00:00:09.734
Here's why its speed is set by the memory bus.

00:00:11.142 --> 00:00:15.394
The idea: every decode step reads the same bytes, whether it emits

00:00:15.394 --> 00:00:16.811
one token or eight.

00:00:16.811 --> 00:00:20.000
So speed is bandwidth over bytes, times tokens accepted.

00:00:21.800 --> 00:00:25.582
A small draft model, about seven percent of the target, proposes

00:00:25.582 --> 00:00:26.957
seven tokens at once.

00:00:27.377 --> 00:00:32.865
The twenty-seven-billion-parameter target checks them all in one pass: an anchor plus seven rows.

00:00:33.285 --> 00:00:36.611
An exact accept test keeps what the target agrees with.

00:00:36.611 --> 00:00:39.272
Inco measured four point eight tokens per pass.

00:00:39.692 --> 00:00:43.886
Everything, down to the recurrent state commit, is one Metal command buffer.

00:00:43.886 --> 00:00:47.032
Its bytes don't depend on how many tokens survive.

00:00:48.442 --> 00:00:50.619
So a speed limit falls out of arithmetic.

00:00:51.039 --> 00:00:52.643
Take the chip's memory bandwidth,

00:00:54.280 --> 00:00:57.720
divide by the sixteen point seven three gigabytes each step reads,

00:00:58.139 --> 00:01:02.640
and multiply by tokens accepted per pass, which Inco publishes: four point eight.

00:01:04.258 --> 00:01:06.504
That checks the number going around.

00:01:06.504 --> 00:01:11.372
A hundred forty-four tokens a second needs five hundred two gigabytes a second.

00:01:11.372 --> 00:01:14.741
The forty-core M5 Max has it; the thirty-two-core doesn't.

00:01:16.142 --> 00:01:19.177
So count the bytes a step reads, and the speed follows.

00:01:19.177 --> 00:01:22.212
Every kernel here exists to approach the bus, not beat it.

00:01:24.817 --> 00:01:28.142
To recap: fixed bytes per step, many tokens per pass, and a

00:01:28.142 --> 00:01:30.081
speed you can check against the bus.

00:01:30.501 --> 00:01:32.577
Every source is in the full article.

00:01:32.577 --> 00:01:33.170
I'm Ruby.

00:01:33.170 --> 00:01:33.466
Bye!
