Beyond the Memory Wall: Rethinking On-Device Generative AI with Edge0

For many of us experimenting with language models on edge devices, one of the first questions we typically ask when a new model is released is rather simple: will it fit into memory?

Regardless of how capable a device is from a computational perspective, the amount of available memory often determines which models we can realistically deploy.

Over the past few years, considerable research and engineering efforts have been devoted to addressing this limitation through quantization, pruning, knowledge distillation, and increasingly efficient model architectures.

But what if, rather than exclusively trying to make language models smaller, we reconsidered how their parameters are accessed during inference?

An interesting development in this direction comes from Edge0, an open-source inference framework designed to enable the execution of large language models on consumer devices by combining sparse model architectures, predictive routing, and storage-backed inference.

Initially introduced in September 2026, the project has recently expanded its capabilities with a unified cross-platform inference engine and the release of substantially larger language models.

The other side of the memory wall

Much of the discussion around efficient generative AI has traditionally focused on reducing the computational complexity of language models.

However, as many of us working with resource-constrained devices have experienced, computation is often only part of the problem.

Memory capacity, memory bandwidth, and the movement of data across different components of a system can be equally important.

Consider a language model with tens of billions of parameters. Even when quantized to 4-bit representations, its weights can easily exceed the amount of memory available on a typical smartphone or embedded computing platform.

One particularly interesting direction for addressing computational requirements is represented by Mixture-of-Experts (MoE) architectures.

Unlike conventional dense language models, MoE models activate only a subset of their parameters when processing each token. A routing mechanism determines which groups of parameters, referred to as experts, should participate in the computation.

This allows models to increase their overall capacity without proportionally increasing their computational requirements.

There is, however, a catch.

Even if only a small fraction of the model parameters is used at any given time, the remaining parameters still need to be accessible.

In other words, reducing computational requirements does not necessarily solve the memory problem.

What if the entire model did not need to reside in RAM?

This is one of the central ideas behind Edge0.

Rather than keeping all model weights in main memory, Edge0 retains expert weights in persistent storage and dynamically transfers them into memory when required.

Conceptually, this may sound relatively straightforward.

After all, moving data between different levels of a memory hierarchy is certainly not a new concept in computer systems.

The challenge, however, is doing so without significantly compromising inference performance.

Accessing data from an SSD is considerably slower than accessing it from main memory. If the inference engine has to wait for the required expert weights to be retrieved at every layer, the resulting latency can quickly become prohibitive.

What makes Edge0 particularly interesting is how it addresses this challenge by reconsidering the interaction between the language model itself and the underlying inference engine.

Under the hood: anticipating which experts will be needed

In September 2026, the Edge0 team published a technical report entitled The Other Half of the Memory Wall: Serving 35B MoEs from SSD with Trained Routing Prediction, describing the architectural principles behind the framework.

The proposed approach combines three complementary techniques:

  • Storage-backed expert streaming: expert weights are dynamically transferred from persistent storage into a limited memory space during inference.
  • Predictive expert routing: a trained routing mechanism anticipates which experts will be required, enabling their weights to be retrieved ahead of execution.
  • Recovery adapters: lightweight LoRA adapters compensate for some of the model quality degradation introduced by quantization and modifications to the routing mechanism.

The second aspect is perhaps the most interesting one.

In a conventional MoE architecture, expert selection depends on the intermediate representations generated during model execution. This creates dependencies that make it difficult to determine sufficiently early which weights should be retrieved from storage.

Edge0 introduces a trained pre-router that anticipates expert selection, allowing storage accesses to overlap with ongoing computation.

Importantly, these predictions are not simply speculative hints provided to the inference engine. They become part of the model’s actual routing decisions.

Rather than adapting only the execution environment to accommodate an existing language model, the model itself is adapted to better exploit the characteristics of the underlying computing system.

This is a particularly interesting example of model–system co-design, an aspect that will likely become increasingly important as generative AI moves towards more resource-constrained platforms.

A 35-billion-parameter model with a 3 GiB active memory footprint?

In their technical report, the authors demonstrate the execution of a 35-billion-parameter MoE language model at approximately 20 tokens per second, with a peak active memory footprint of around 3 GiB, on a system equipped with 24 GB of memory.

The authors also report that the resulting model remains relatively close to its original full-precision counterpart across several commonly used evaluation benchmarks.

These results are certainly interesting, although some distinctions are important.

A 3 GiB active memory footprint does not mean that the model requires only 3 GiB of storage, nor does it necessarily imply that the same performance can be achieved on any device equipped with that amount of RAM.

The underlying storage subsystem, available memory bandwidth, computational capabilities, and inference workload all play an important role.

Nevertheless, the results illustrate how the relationship between model size and runtime memory requirements can be reconsidered.

Perhaps, when discussing the suitability of a language model for edge deployment, we should progressively move away from considering its number of parameters as the primary indicator of its resource requirements.

From research prototype to a broader software ecosystem

Another interesting aspect of Edge0 is how quickly the project is evolving.

On November 4, 2026, the team introduced edge0-infer, a unified inference engine built on top of GGML, providing a common native C++ interface across multiple desktop and mobile platforms.

The ecosystem includes:

  • a command-line interface for local inference
  • an OpenAI-compatible local API server
  • example desktop and mobile chat applications
  • native execution backends for different hardware platforms

A subsequent release, on November 13, introduced two larger sparse language models, Edge0-120B and Edge0-145B, targeting local execution on systems equipped with a single NVIDIA GPU. These models use a separate inference backend integrated into the same software ecosystem.

Of course, a GPU-equipped workstation and a smartphone represent very different classes of edge devices.

But this is also what makes the evolution of the project interesting.

Edge Generative AI is not necessarily about targeting a single category of hardware. It is about enabling AI capabilities across a highly heterogeneous computing landscape, ranging from mobile and embedded devices to personal computers and local computing infrastructures.

Memory efficiency is not necessarily energy efficiency

What I would also find particularly interesting is a more systematic investigation of the implications of these techniques beyond memory consumption and inference throughput.

Reducing the amount of memory occupied by model weights is undoubtedly attractive.

However, continuously moving data between persistent storage, main memory, and computational units introduces additional costs.

For the Edge AI community, several questions naturally emerge:

  • What is the energy cost of repeatedly retrieving expert weights from storage?
  • How does performance vary across devices with different storage technologies and bandwidths?
  • How does storage-backed inference behave under concurrent workloads?
  • What are the implications for Time to First Token (TTFT) and latency predictability?
  • How does prolonged execution affect the thermal behaviour of mobile and embedded platforms?

These considerations become particularly important when moving from occasional interactions with a chatbot to AI-enabled systems expected to operate continuously and autonomously.

A solution that performs well on a laptop equipped with a high-performance SSD may exhibit considerably different behaviour on an embedded platform relying on eMMC or microSD storage.

And, as is often the case in Edge AI, optimizing one resource dimension does not necessarily translate into an improvement across all the others.

Beyond model compression

Perhaps the most interesting message emerging from projects such as Edge0 is that there are multiple ways of addressing the resource constraints of edge devices.

Over the past few years, we have become accustomed to asking how we can compress increasingly capable language models to make them suitable for local execution.

This will certainly remain an important research direction.

At the same time, however, we can also ask whether the architectures of these models could be designed from the beginning with the characteristics of the underlying computing platforms in mind.

This opens up opportunities for closer integration between:

  • language model architectures
  • inference engines and runtime systems
  • memory and storage hierarchies
  • heterogeneous hardware accelerators
  • resource management and scheduling mechanisms

Historically, many of these aspects have been studied by different research communities.

As generative AI progressively moves towards the edge, the boundaries between them are becoming increasingly blurred.

Looking ahead

Will we soon be running hundred-billion-parameter language models on every smartphone or embedded device?

Probably not.

And, perhaps more importantly, we may not even need to.

For many Edge AI applications, a well-designed small language model will remain a considerably more practical solution than a much larger model with a sophisticated execution architecture.

Nevertheless, projects such as Edge0 are valuable because they challenge some of the assumptions we have made about what is computationally feasible on local devices.

They also remind us that the progress of Edge Generative AI will not exclusively depend on increasingly powerful processors, larger memories, or more aggressive model compression.

There is still considerable room for innovation in how AI models and computing systems are designed to operate together.

For the Edge AI community, this reinforces an important message:

Bringing more capable generative AI to the edge is not exclusively a matter of making models fit into existing computing systems. It is also about rethinking how models and computing systems should be designed together.


Further reading and resources