Checking how many agents are working

How this works
Kontakt
← Blog
Two dark steel gates on a bench, one small and close with a warm olive light, one tall and far away in teal haze, with the AMARBARO mark above them.
✎Post blogowy

Local AI or cloud AI: what you gain and what you give up

The short version

Local and hosted models trade privacy and control against effort, shared hardware and checked quality, and the right choice depends on the job.

What this is about

You can use a language model in two main ways. You can send your text over the internet to a service that runs the model for you. That is the cloud way. Or you can run the model on a computer you own. That is the local way.

Neither is always better. This article lays out what you gain and what you give up with each, using our own setup as the example, so you can decide for your own jobs.

Why it matters

The choice shapes what happens to your text, what you pay, how fast you wait and how much of your own time goes into keeping it all working. A wrong choice is not a disaster, but it can cost you months of annoyance.

The honest comparison

Here is the list, one thing at a time.

Privacy. With a local model, your text stays on your machine. Our engine, mojo-baro, serves chat on a port on your own computer, and the context proxy we wrote, ctxd, listens only on the local address. With a hosted model, your text travels to someone else's computer. That may be fine, or not, depending on what you write. If the text is private or sensitive, local is a strong reason to choose it.

Cost. A hosted service usually charges by the token. A local model has no per-token fee. But you pay for the machine, the power and your own time. Our card, an RX 7900 XTX with 24 GB, is a one-time purchase that does many jobs. If you rarely use a model, hosted is cheaper. If you use one all day, local can be cheaper. We have not worked out a break-even figure for you, because it depends on prices that change.

Speed. A hosted model runs on the company's hardware, so its speed is theirs to set, and we have not measured any. A local model on a good card can also be quick: our 9B model decodes plain text at 130.7 tokens per second on one card. But the card cannot run the very largest models at all, and long prompts take real time to read.

Quality. Some hosted models are far too big for one home card to hold. A local model may be good enough for your task, or not. That needs a test, and we describe a home test in a later article of this series. Be careful with any quality claim from a speed table. In our own tables, one small model's row stays below the agreement bar, and we mark its figures as unverified.

Effort. Hosted means a key and a few lines of code. Local means installing drivers, getting a model file, building an engine, and fixing what breaks. Our first run for each model shape takes a few minutes to build, and our setup needs Linux, ROCm and an RDNA3 card. That is not a small ask.

Control. With a local model, you choose the file, you pin the version, and nobody changes the model under you. A hosted service can update its model, change its limits or shut down. In return it keeps the hardware running for you.

The hidden cost of local: one shared card

When you run a model at home, your card is probably doing other things too. Ours draws the screen, runs the terminal and runs every AI job. On one day, 34 of 142 jobs sent to it failed. The ones we traced could have been caught on the CPU first. Once a job pushed the card's memory so far that the terminal crashed and took every open session with it.

A hosted model does not do this to you. It is someone else's problem. At home, it is yours. We cover how to handle it in the article on sharing one card.

A mix often wins

The choice is not all or nothing. Many of our own jobs mix both.

Yahaai, our messenger, is an example. People and AI models share one chat log. Models speak only when someone mentions them. Users can bring their own model through any endpoint that speaks the common OpenAI-style interface, and the owner's key pays, so there are no credits to buy. That design lets one chat use a hosted model and a model you run yourself side by side. In this article we make no claim about how well any particular pairing performs. We say only that the design allows a mix, and the next article explains the interface that makes it possible.

How to decide

Ask these four questions, in order.

  1. Is the text private? If yes, lean local.
  2. How often will you use it? Rarely, lean hosted. Constantly, look at local.
  3. How large a model do you need? If it is bigger than your card, hosted.
  4. How much time do you want to spend on setup? If none, hosted. If you enjoy it, local is a good hobby.

Then test on your own questions, not on a speed table.

What our setup cannot tell you

We measured one card, one family of models, one operating system. We have no data about hosted services in this article, so we make no claim about their speed or quality. What we know is our own side of the table.

Words you may not know

  • Local model: a model that runs on a computer you own.
  • Cloud or hosted model: a model that runs on a company's computers, reached over the internet.
  • Token: a small piece of text. Hosted services usually bill by it.
  • API: a set of rules that lets one program talk to another.
  • Endpoint: the address where a program offers its API.
  • VRAM: the memory on your graphics card, which limits model size.
  • Key: a secret code that proves you may use a hosted service, and who pays.

Try it

  • Visit Yahaai, our messenger where humans and AI models share one chat. It is the easiest way to see a chat that includes a model without installing anything.
  • Read about the local engine and its limits on the mojo-baro project page. The Limits section is the honest list of what it does not do.
  • Pick a private question and a public question. Try the public one on any hosted model, and plan how you would run the private one at home.

Komentarze

Brak komentarzy.

Zaloguj się aby skomentować.