keepcalculator

06 Numbers and Powers

Local AI Fallback: What On-Device Does and Doesn’t Tell You

Card No. 06·43141 · Updated · Standard formula, shown below

The calculator on this card is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

Local AI fallback means your device runs an AI model directly on its own hardware when the cloud is unreachable or you opt out of sending data. It tells you the model is running, but it does not tell you what the model was trained on, how it was quantized, or what it silently censors. This article explains what on-device inference reveals and hides, so you can judge when to trust it.

Formula

The calculator estimates whether a given local AI model can run on your device. The key relationship is that a model file on disk (size t in GB) must be loaded into memory (RAM or VRAM) to run. The formula uses two common rules of thumb:

  • Quantized size = model size × 0.6 — a typical 4-bit quantized model is about 60% of the original FP16 size.
  • VRAM needed = model size × 0.8 — you need roughly 80% of the original size in memory because the runtime holds weights plus activations and context.

If your available RAM is greater than or equal to the VRAM needed, the model is feasible (output 1). Otherwise, it is not (output 0).

Worked Example

Using the defaults: model size = 7 GB, RAM available = 16 GB.

  1. Quantized size = 7 × 0.6 = 4.2 GB (this is the file size after 4-bit quantization).
  2. VRAM needed = 7 × 0.8 = 5.6 GB (this is the memory required to run it).
  3. Feasible? 16 ≥ 5.6 → 1 (yes).

The calculator shows 4.2 GB quantized size, 5.6 GB VRAM needed, and 1 for feasible. In practice, you also need memory for the operating system and other apps, so add 2–4 GB to the VRAM figure.

What On-Device AI Actually Tells You

When a local AI fallback activates, the system usually displays a small icon or a toast message: “Running on device” or “Offline mode.” That message tells you three concrete things:

  • The model is executing on your CPU, GPU, or NPU — not on a remote server.
  • Your input text is not being sent to the cloud for that particular request.
  • The response is generated locally, so it works without an internet connection.

That is the entire extent of what the UI communicates. It does not tell you which model version is running, how large it is, what training data it used, or what safety filters are applied. These details matter because they affect output quality and privacy.

What It Does NOT Tell You: The Hidden Layers

The most important omission is the quantization level. A 7-billion-parameter model can be stored as 16-bit floats (about 14 GB), 8-bit integers (about 7 GB), or 4-bit integers (about 3.5 GB). The 4-bit version runs on far less memory but produces noticeably worse output — especially for math, coding, and nuanced reasoning. The UI rarely shows this.

Second, the training data cutoff is hidden. A local model might have been trained on data up to 2023, so it cannot tell you about recent events. The cloud version might be updated monthly, but the on-device copy is static until you manually update it.

Third, safety filters differ. Cloud models often have stricter content moderation because the provider is legally liable. Local models may have minimal or no filters, which can be good for privacy but bad for harmful output. Conversely, some local models are tuned to refuse certain topics that the cloud version would answer — the opposite can also happen.

Finally, the UI does not tell you which parts of the model are actually loaded. Some systems use partial loading (like GGUF with memory mapping) so only part of the model is in RAM at a time. This can cause slower responses or even “out of context” errors that are not explained to the user.

How to Choose a Local AI Model

When you pick a model for on-device use, the visible metrics are misleading. The model’s “size” in parameters (7B, 13B, 70B) is only a rough indicator. What matters is the quantization and the context window:

  • Check the model card for the quantization method (Q4_K_M, Q5_K_S, etc.). Lower numbers mean smaller memory but worse quality.
  • Check the context length (e.g., 4096, 8192, 32768 tokens). Longer contexts use more memory but let you paste longer documents.
  • Look for benchmarks on the specific task you care about (coding, summarization, reasoning). A 7B model fine-tuned for coding may beat a 13B general model.
  • Test with your own prompts, not just canned examples. Local models often fail on multi-step instructions that cloud models handle easily.

Common Problems and Misconceptions

A widespread misconception is that “local AI is private by default.” That is only true if the app does not phone home. Some apps run the model locally but still send telemetry, crash logs, or even your prompt text to the developer. Always check the app’s network activity or privacy policy.

Another issue is thermal throttling. On a laptop or phone, running a large model for minutes generates heat. The CPU or GPU slows down to cool off, so response time degrades over a long session. The UI shows “running on device” but not that the device is now running at half speed.

Memory pressure is also hidden. If your device has 16 GB RAM but 10 GB is already used by the browser, the model will swap to disk, making it extremely slow. The system may still claim “local AI” but the experience is unusable. The calculator above gives a rough feasibility check, but always add 3–4 GB of headroom for the OS and other apps.

Local vs. Cloud: What Each Tells You

Cloud AI tells you almost nothing about the model either — you do not know the exact weights or filters. But cloud has one advantage: it can be updated silently, so the provider can fix bugs or improve quality without you doing anything. Local models are frozen at the version you installed. If a security flaw is found in the model’s tokenizer or a filter is too aggressive, you must manually update.

Cloud also tells you the response time is network-dependent. Local tells you it is hardware-dependent. Neither tells you the real source of a wrong answer. Both can hallucinate. The difference is that a local model’s hallucination is reproducible — you can run it again and get the same wrong answer, which is useful for debugging but not for trust.

Costs and Safety

Local AI has a monetary cost: the hardware. A 7B model needs at least 6 GB of free RAM, which most phones and mid-range laptops have. A 70B model needs 40+ GB, which requires a high-end desktop or a dedicated GPU. There is also electricity — running a large model for an hour on a GPU can draw as much power as a gaming session.

Safety-wise, local models are a double-edged sword. Because there is no server-side filter, a local model might generate instructions for dangerous activities. Conversely, some local models are over-aligned and refuse benign questions like “how to cook chicken” because they were tuned on safety data. Always verify critical information from a local model against a trusted source.

Frequently Asked Questions

Does local AI use my internet at all? It can. The model runs locally, but the app may check for updates, send usage statistics, or use a hybrid approach where simple queries are local and complex ones go to the cloud. Check your firewall logs or the app’s settings to see what it sends.

Why does my local AI answer slower than the cloud? Cloud servers use powerful GPUs with high memory bandwidth. Your phone or laptop has a fraction of that. Also, local models are often quantized to fit memory, which adds latency. A 7B model on a phone can take 10–20 seconds per response, while the cloud takes 2–3 seconds.

Can I trust a local AI with sensitive data? More than a cloud AI, but not absolutely. The model itself does not send data, but the app or OS might log keystrokes, screen content, or clipboard. Use a dedicated offline app and disable network permissions if you need strict privacy.

How do I know which quantization is best? For most users, Q4_K_M is a good balance. It uses about 4.5 bits per weight, giving near-FP16 quality for most tasks. Q8 is better but uses twice the memory. Q2 is too lossy for anything beyond simple chat.

Will my battery drain faster with local AI? Yes. Running a neural network on a CPU or NPU draws significant power. A 30-minute chat session can reduce battery by 10–15% on a phone. Cloud AI uses less local power but consumes data and battery for the network connection.

Can I update the local model? Usually yes, but not automatically. You need to download a new model file from the app’s repository or the model’s official page. Some apps have an “update” button; others require manual replacement. Check the app’s documentation.

Related

Formula used
in t | Model size (GB) | GB | 7 | 0.1 | 100
in m | RAM available (GB) | GB | 16 | 1 | 512
out q | Quantized size (GB) | GB | t * 0.6 | 1
out v | VRAM needed (GB) | GB | t * 0.8 | 1
out f | Feasible? | - | (m >= v) * 1 + (m < v) * 0 | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →