Skip to content
All lessons

Lesson 02 · ThoxStudio · 15 minutes

Give your model room to work

Explain why fitting model weights in memory is only one part of an edge AI budget.

Before you start

Use a hypothetical 8 MiB device in the calculator. These values are a learning example, not a specification for a THOX kit.

  1. 1.

    Reserve the runtime first

    Account for the operating environment, drivers, network queues and allocations the application cannot use. Use measurements from your exact release when moving to hardware.

  2. 2.

    Add the complete working set

    Weights need room alongside activations, buffers and any model cache. Estimate each separately. Change the inputs and watch the remaining headroom.

  3. 3.

    Keep a margin, then measure

    The exercise uses a chosen 10 percent headroom target. A positive result says the estimate fits that target. It says nothing about model quality, latency, thermal behavior or whether the runtime supports the model.

Your workbench

Try the lesson

This estimate leaves the chosen margin

2.00 MiB left

Estimated use: 6.00 MiB. Chosen headroom target: 0.80 MiB, or 10% of total memory.

Hypothetical values. A passing estimate does not establish runtime compatibility, model quality, latency, power use or thermal behavior.

Take it one step further

What would you measure on a real board before trusting this estimate?

Checking your account…