Skip to content
Back to Articles
Articles

LLMs in Edge Computing

Stefan Wallin 7 minute read

AI is moving out of the data center and into the places where data is created and decisions are made: warehouses, stores, factories, hospitals, and vehicles. The industry is clearly heading in this direction. Cisco recently expanded its Secure AI Factory with NVIDIA from the core to the edge, bringing inference to local sites where real-time decisions cannot wait.

This article explores the concept of running Large Language Models (LLMs) in edge computing environments.

Why LLMs at the edge?

There are good reasons to run LLMs and agents locally rather than in the cloud. Latency: an agent that reasons over local events such as safety violations on the factory floor, sensor alarms or equipment faults needs to answer in seconds, without a round trip to a remote region. Data locality: operational data, video and transactions can stay on site, which simplifies privacy, sovereignty and compliance. Resilience: the site keeps working when the WAN link does not. Cost: you avoid streaming raw data to the cloud and paying for every token centrally.

Running a single model on a single box is the easy part. The hard part is operating LLM-based applications across hundreds or thousands of sites with mixed hardware, where some hosts have GPUs and some do not, connectivity is limited, network policies are strict and there is no local IT staff. GPUs must be discovered, workloads placed on the right hosts, container images and models delivered securely, applications upgraded and monitored, and central teams need a way to reach them for testing and troubleshooting. This is the job of an edge AI orchestrator, and it is what we show with Avassa in this article.

The storyline

To keep things concrete, our demo is a factory-floor safety monitor that you configure in plain language. It runs entirely offline on a single workstation (x86, 64 GB RAM, NVIDIA RTX 5080). Real surveillance footage from a production facility, taken from Önal and Dandıl’s Video Dataset for Safe and Unsafe Behaviours (CC BY 4.0), is looped through MediaMTX so that it behaves like a live camera.

A YOLOE-26 open-vocabulary detector with ByteTrack tracks people and forklifts, and a rule engine checks every frame against named floor zones and records events with snapshot images. In the operator console, the presenter draws zones such as the walkway or the forklift lane directly on the camera image. They then tell the safety assistant, powered by a locally hosted Qwen3 language model, what to watch for, for example “alert me if anyone is outside the walkway for more than two seconds” or “warn me if someone gets within two meters of a forklift.”

The safety assistant turns each request into a validated rule that takes effect on the next frame, so the audience sees a violation highlighted on the video and logged within seconds. The assistant can also change what the camera detects, rename or delete zones, and answer questions such as “what happened in the last ten minutes?” or “summarize today’s incidents” from the recorded events. The point of the demo is that the language model actually controls the vision system, rather than just describing what it sees.

The rest of this article focuses on how Avassa prepares the edge sites, deploys and manages the vision pipeline and the local LLM, and lets the central team connect to them.

The Avassa blueprint

Architecture diagram of the safety monitor demo running fully offline on an edge workstation, showing camera feeds, vision pipeline, rule engine, and a local Qwen3 language model.

The figure above shows the architecture we deployed. At each edge site, a camera stream feeds an open-vocabulary detector and a rule engine, and a locally hosted LLM powers the safety assistant that operators reach through a web console. Everything runs on the site itself, with no calls out to the cloud.

The complete deployment and lifecycle management is automated with Avassa applications and deployments. The following sections walk through how.

Preparing the edge sites for Edge AI Workloads

Before any LLM can run, the GPUs on the edge hosts must be discovered and made available to applications. Avassa provides a flexible device discovery mechanism for edge AI and physical AI applications that need GPUs and other devices. You specify a pattern to match, such as a specific GPU model or a camera. The Edge Enforcer, the Avassa agent on each host, automatically scans all hosts and applies a label whenever it finds a match.

Patterns are defined in site profiles, which you attach to a set of sites. This is what makes the approach scale: there is no need to maintain an inventory of hosts and GPUs, and a pattern can be applied to a large number of sites in a single operation.

The screenshot below shows a site profile that scans for an NVIDIA GPU:

Avassa interface displaying a site profile configured with a GPU label rule to automatically match and label NVIDIA devices.

Drilling down into any of the sites, we can see that the GPU has been discovered and labeled:

Avassa host inventory screen showing the discovered NVIDIA GeForce RTX 5080 Laptop GPU labeled and available on host rog.

With that, the edge infrastructure is ready for edge AI and physical AI applications, without anyone having to touch individual hosts.

Defining your Edge AI Applications

Avassa is fully multi-tenant. The team responsible for the edge infrastructure in the previous section decides, with fine-grained control, which tenants can use which edge sites, GPUs (including MIG partitions), CPU limits and other resources.

Now let’s turn to the application team’s tenant. The team has defined an Edge LLM application as shown below (some parts of the YAML configuration are collapsed):

Avassa application configuration screen showing the multi-container application specification in YAML requesting an NVIDIA GPU label.

A few things are worth noting:

  • The QWEN service requires an NVIDIA GPU. This is expressed with a simple GPU label that matches the label applied by the discovery mechanism in the previous section.
  • MediaMTX is used to consume and distribute video streams
  • Simcam is a simulated video camera with a prerecorded video streaming to MediaMTX
  • Detector runs object detection and handles rules
  • Safety assistant is the bridge between the user (Web UI) and the QWEN model
  • The console (Web UI) ingress endpoint is configured automatically by Avassa at each edge site; see the ingress-per-instance section.
  • When the application is later rolled out to a large number of sites, not every host at every site will have a GPU. The Avassa scheduler at each site automatically places the application on a host that meets its requirements, so the deployment team does not need to know the hardware details of each site.

Navigating to one of the sites where the solution is deployed, we can see the LLM and the AI chat agent running:

Avassa application status view showing all six service instances running and healthy on the rog site.

Connecting to the edge

In most organizations, a central team owns the models: they are trained, deployed, monitored, and tested centrally. That team needs a simple way to reach the applications running at the edge. Avassa has a built-in feature for exactly this: you can connect directly to an edge application without VPNs or firewall openings, with port forwarding performed over the Avassa secure channel.

With port forwarding in place, you can point your local web browser at the operator console on an edge site and start interacting with the safety assistant:

Safety monitor operator console showing a factory camera feed with zone overlays, active alerts, and an ongoing chat with the local safety assistant.

Video: “Video Dataset for Safe and Unsafe Behaviours” by Oğuzhan Önal and Emre Dandıl, Mendeley Data, V1, 2024, https://doi.org/10.17632/xjmtb22pff.1, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Clips were selected, concatenated, re-encoded and overlaid with detection and zone annotations.

In the screenshot, we use the safety assistant to:

  • Create a rule that alerts us when a person stays inside the forklift lane for more than one second. The rule takes effect on the next frame, and violations are highlighted on the video and logged in the event list.
  • Ask how many people have entered the forklift lane in the last five minutes. The assistant answers from the recorded events and shows a snapshot of each one.

Summary

Running an LLM at a single edge site is easy. Running it across a fleet of factories with mixed hardware, strict network policies, and no local IT staff is an operations problem. In this demo, we showed how Avassa solves that problem end to end for a factory-floor safety monitor in which a local language model configures and queries a computer-vision pipeline.

Site profiles discover GPUs automatically, so any number of sites can be prepared for AI workloads without a hardware inventory. Multi-tenancy lets the infrastructure team decide which application teams get which sites and GPU resources. The application itself is declared once in YAML: the GPU requirement is a label, ingress is configured automatically, container images are pulled securely through Avassa, and the scheduler at each site places the workload on a host that can run it. Finally, the central team can reach the LLM at any site over the Avassa secure channel for testing and troubleshooting, without VPNs or firewall openings.

The result is that application teams can focus on models and agents instead of on getting them running at the edge. The same approach applies well beyond factory floors, to warehouses, retail stores, and any other environment where AI needs to run close to where data is created.

Want to see the demo live, or run it on your own edge hardware? Get in touch with the Avassa team.

Stefan Wallin
Product Lead | Avassa
As a Product Lead at Avassa, Stefan forms the roadmap and evolution of the product together with the engineering team.
Keep exploring

See how the Avassa Edge Platform puts this into practice.