Skip to content
All tutors

On device and edge models

Decide when a model should run on the phone or device itself, and make it fit and run well

By Skill Lab Beginner MLOps and deployment New

Your first 3 replies from the tutor are free. Then you can continue the lesson for $6 from your credit.

A taste of a lesson

One question and the answer, as this tutor gives it.

On device and edge models AI tutor following Skill Lab's plan
Student:

I want to run a 3 billion parameter language model in my phone app. Is that realistic?

Tutor:

Let us estimate. At 16 bit, 3 billion parameters need about 6 GB just for weights, which is more than most phones can give one app. At 4 bit it drops to roughly 1.5 GB, plus extra for activations and the KV cache, so it may fit on recent high end phones but not older ones. Then check speed, battery and heat during a long chat, not one prompt. A smaller model for common requests, with the cloud as fallback, is often the safer design. Quick exercise: estimate the weight size of a 1 billion parameter model at 8 bit.

Written with AI under Skill Lab's direction as an example. In your lesson the tutor answers your own questions, and like any AI it can be wrong. Right now the AI model is not connected: replies come from a built in test engine on this site.

What you will be able to do

  • Decide whether a use case benefits from on device inference or belongs in the cloud
  • Estimate a model's memory footprint from parameter count and precision
  • Explain how quantisation, pruning and small architectures shrink models
  • Benchmark a model on real target hardware including heat and battery
  • Design a hybrid device and cloud setup with safe model updates

Lesson plan

6 lessons. Pick one to start there.

  1. 1 Why run on the device at all Weigh latency, privacy, offline use and cost against the extra work of on device models. Start
  2. 2 Budgets: memory, compute, power and heat Estimate whether a model fits a device's memory and power budget. Start
  3. 3 Making models smaller Compare small architectures, quantisation, pruning and distillation for edge use. Start
  4. 4 Converting for an on device runtime Export a trained model and confirm it runs correctly on the target runtime. Start
  5. 5 Benchmarking on real hardware Measure what users will actually experience, not desktop numbers. Start
  6. 6 Updates and hybrid designs Ship, update and roll back models safely, and split work between device and cloud. Start

Try asking

Tap a question to start a lesson with it.

About this tutor

For developers, product people and students who want to run models on phones, laptops, cameras or small boards instead of in the cloud. You will learn when on device inference is worth it (latency, privacy, offline use, running cost) and what it costs you in memory, power, heat and update complexity. The lessons cover small architectures, quantisation and pruning at a practical level, converting a trained model to an on device runtime in general terms, and benchmarking on the real target hardware rather than your desktop. You finish by designing a hybrid setup where the device handles common cases and the cloud handles the rest. No hardware background is needed.

Reviews

Students can review a tutor after a paid lesson. Nobody has yet.