Derylus

We make your model faster on your chip

Send us your model and name your chip. Our agent tries changes that could make it faster or more efficient while keeping the accuracy above your stated floor. We measure every attempt and return the optimized model to you with a full report.

Price
Depends on a lot of things, so get in touch. Student projects: see the student program.
Scope
One model on one chip.
Measured so far
Almost 2x speedup on ResNet18 on a Raspberry Pi 4, with top-1 0.1 points lower
Hardware
Any chip. Our experience includes the Raspberry Pi 4 and NVIDIA Jetson Nano.

ResNet18: 1.88x faster, with accuracy 0.1 points lower

608010012014058.058.559.059.5Top-1 accuracy (%)Median latency on the Raspberry Pi 4 (ms)Static INT875.3 ms, 58.9%1.88x fasterStatic INT873.9 ms, 58.3%, 1.91x fasterDynamic INT8137.3 ms, 59.2%FP32 baseline141.5 ms, 59.0% 609012015058.058.559.059.5Top-1 accuracy (%)Median latency (ms)Static INT875.3 ms, 58.9%1.88x fasterStatic INT873.9 ms, 58.3%Dynamic INT8137.3 ms, 59.2%FP32 baseline141.5 ms, 59.0%

Static INT8 quantization took the median latency from 141.5 ms to 75.3 ms, while top-1 accuracy went from 59.0% to 58.9%. Accuracy was tested on a 1,000-image subset of ImageNetV2. So we got one extra image out of 1,000 wrong compared to the baseline.

A second campaign reached 2.28x, with top-1 14.3 points lower. Read the full results, method, and limits, or reach out to book a call to discuss what we can do for you.

Our agent proposes changes, and hands them off to a runner for measuring

Before each proposal the agent reads every earlier attempt, including the failures. The runner then builds the candidate in a container, times it on the chip, and scores its predictions on your evaluation set. This is scalable both in time and agent count: We can run a swarm of 100 agents for days, if necessary.

The right recipe depends on the chip

Each new model or chip restarts much of the work, because a technique that helps on one core can do nothing on another. FP16 conversion shows the problem: a Raspberry Pi 4 has no native FP16 arithmetic, so the conversion saves memory and gains no speed.

Effects on a Raspberry Pi 4 (Cortex-A72 CPU).
TechniqueEffect on speedReason
INT8 quantizationMain lever, smaller gain than on newer coresNo ARMv8.2 dot-product instructions
FP16 conversionNo speedup, only saves memoryNo native FP16 arithmetic
Unstructured pruningLittle or no speedupSparse weights don't remove much compute on this CPU
Channel pruningSpeeds up, needs fine-tuningRemoves compute from the network

The Team: Bas, Richard, Maks, and Liam

We met at the Master's programme in AI at the University of Amsterdam. We have experience at NXP, TSMC, MIT, Goldman Sachs, Huawei. Read more about the team.

Tell us the model and the chip

A first email only needs what you're doing, with which chip, using what model, and your goal. We can work under an NDA if you need it.