Open BGZone
AI & privacy

Why AI Models Are Large Downloads

Why on-device AI tools need to download a model first, what makes models large, and how browsers cache them so it usually only happens once.

2 min read · Published

When you first use an on-device AI tool, it may spend some time downloading before it starts. That's the AI model, and it can be much larger than a typical web page.

What a model file contains

An AI model is mostly a huge list of numbers, called weights or parameters, learned during training. The model uses them to turn an image into a result. A model with millions of parameters needs millions of numbers stored, and each takes a few bytes.

Typical sizes

  • Small models for simple tasks can be a few megabytes.
  • Background removal and segmentation models are often tens to a couple of hundred megabytes.
  • Image generation models can be several gigabytes.

Why not make them smaller?

Developers can shrink models by storing numbers with less precision, called quantisation. This reduces file size, sometimes by half or more, but can reduce quality. For background removal, lower precision can cause speckles or rough edges on difficult photos. It's a trade-off.

Caching: usually only once

Browsers store downloaded files in a cache. After the first download, the model loads from your device, which is much faster. It may need downloading again if you clear browser data, use a private window, the browser frees up space, or the tool updates its model.

On mobile data

Large first-time downloads can use a lot of mobile data. If that's a concern, run the tool once on Wi-Fi to cache the model.

Storage

Cached models take up storage space. You can clear them through your browser's site data settings.

Why it's worth it

The download is the price of privacy and offline use: once the model is on your device, your images don't need to be uploaded. See on-device AI explained.

In BGZone

BGZone's cutout model is downloaded and cached the first time you use it, and the engine starts in the background so it's ready when you add a picture. HD Upscale downloads its own small model the first time you use it, and the Image Playground's models are several gigabytes. See the Image Playground.