Skip to content
Castellan
Smith's icon

Overview · Smith

Read as

The Smith, which keeps your local AI ready

What the Smith does for the staff's AI work, what ready, busy, resting and not working mean on its page, how it frees your PC's memory, the newer models it tries for you, the checks that keep the models answering right, and its settings.

Article
1401
Applies to
Smith 0.9.4
Last reviewed
For
For everyone
Written for Smith 0.9.4; Smith 0.10.1 is out now. Some of this may have changed: what's new is in its release notes.

What the Smith does#

The staff use a small AI model on this PC for their AI work: to describe a picture, label a log, or search by meaning. The model runs on your PC's NPU, a graphics card, or the processor (see Where the work runs). The Smith looks after it:

  • It sets the local AI up, on the accelerators you choose. See Set up the local AI.
  • It keeps it working. Once a minute it looks at the local AI on each accelerator, and starts it again if it stops answering. When an update brings a newer model or server, or one has gone missing, the local AI is set up again by itself.
  • It lets it rest. When no one has used an accelerator for 10 minutes, the Smith stops the local AI there, so its memory is yours again. It starts again by itself, in a few seconds, as soon as one of the staff needs it.
  • It makes way for games. Once a game is using a graphics card and no one else has for 2 minutes, the local AI there stops.
  • It tries newer models for you. On a PC with an NPU, it finds newer models and AI servers for it, and switches only to one that works, answers right and isn't slower.
  • It checks that the models still answer right, after every update and before any switch.

The Smith comes with the Household license.

Its page#

The Smith's page is at http://smith.localhost:20202/, and Open on its card in Castellan goes there. Its top line is its last look at a glance, and any audit waiting on you comes next. Then the tabs: The local AI, Audits, Models and What it did.

What the Smith does, the models explained, and Set up the local AI are in its About, beside Settings in the title bar.

The local AI shows each of your accelerators (the NPU, each graphics card, the processor) with how its local AI is doing:

It saysWhat it means
readyRunning, and ready for the staff.
busyStarting, or answering one of the staff.
restingStopped to give your memory back. It starts again by itself as soon as one of the staff needs it.
not workingIt couldn't start. The staff use another accelerator meanwhile, and it's tried again within 10 minutes.
not set upNo local AI here yet, so none of the staff can use it. See Set up the local AI.

Each accelerator's card names the models it runs, shows how much of it is in use and who's waiting, and says whether its models still answer right (see Audits). Switch off stops the staff using it until you Switch on again.

What it did lists what the Smith did lately, newest first: when it let the local AI rest, or woke it again.

Models: newer models, tried before they're used#

On a PC with an NPU, the Smith looks every 6 hours for newer models and AI servers made for your NPU, and lists them under New for your NPU, each with Try it and Not now. Look now looks at once, and Stop looking stops the looks.

It suggests only what's worth trying here: models no bigger than the one your NPU runs now, until the manor has tested a bigger size on your kind of NPU, and only what fits in memory beside Windows, your programs and the rest of the staff (on a 16 GB PC, models up to 4B). A model the manor has retired isn't offered. Under Models, it says which sizes it left out, and why.

Try it downloads the new one and sets it up beside what you have, which keeps working meanwhile. Then the Smith:

  1. asks it the test questions;
  2. times it against what you have, on the same questions;
  3. checks its answers, as Audits does.

If it doesn't answer, or gets answers wrong that what you have gets right, the try fails. Everything it added is taken out again, and what you had stays in use, exactly as it was. The try's card says why, and has Try again.

If it works and is at least as fast, it's used at once, and the Smith says how they compare. To go back, choose the one before in Settings, under The local AI on your NPU. If it's slower, what you had stays in use until you choose Use it anyway or Keep what I have.

How your NPU has performed lists every setup your NPU has run on this PC: how long it takes to write a short paragraph, and to answer a question about a picture. Time it now times today's setup, after a driver update, say. On a PC without an NPU, Models shows the same for your graphics card or processor.

Audits: do the models still answer right?#

An update to a driver, an AI server or a model can leave the local AI answering, but wrongly. The Smith checks for that: it asks each accelerator a few small questions with exactly one right answer, the same question twice, and what a few words drawn on a picture say, and times its answers. Then it compares the results with the accelerator's last good check.

It checks:

  • the first time it checks an accelerator;
  • after every update to a driver, an AI server or a model, as soon as no one else is using the accelerator (while nothing changes, it doesn't: the models answer as they did);
  • before any switch to a new model or AI server, from a try or from Set up.

A new model or server that gets answers wrong that what you have gets right isn't used. A try fails, as above. Set up puts back what the accelerator had. If Set up installed the new server over the old one, so it can't be put back, the Smith says so, and Audits shows what failed.

Each accelerator's card says how it stands: checked: answers right, a check is due, or answered wrong: see Audits. The Audits tab shows each accelerator's audit in a card of its own, with when it was audited and when it was last checked for changes, its checks, and the replies beside the answers expected, with Audit now. A check takes a few minutes of the accelerator's time, and the checks the Smith starts by itself wait until no one else is using it.

Its settings#

Settings, in the title bar:

SettingDefaultWhat it does
Let the local AI on the NPU rest after10 minutesHow long no one uses the NPU before the local AI there stops. 0: never.
Let the local AI on a graphics card rest after10 minutesThe same for a graphics card or the processor. A game using the card stops it after 2 minutes, whatever this says. 0: never.
The local AI on your NPU (under Advanced)The newest that works hereWhich setup the NPU uses: the newest that works, or the one it had before the last change. Choosing the one before puts it back, and the Smith asks you before any switch from then on.

The checks have their own settings, on the Audits tab of Settings, beside General: whether they run by themselves, and how often. A change is used at the Smith's next look, within a minute.

What it never does#

  • It never touches an AI server it didn't set up. One you run yourself, or another program's, is left alone.
  • It never takes the staff's turn. When it stops or restarts the local AI, it waits until no one is using that accelerator.
  • It never switches to a model that answers worse than what you have.
  • Nothing leaves your PC. The local AI runs here; the Smith downloads only what setting it up and trying newer models need.

With Castellan's developer staff hired, the Smith's page shows more: the AI servers by name and their addresses, servers left running that no one set up, and the list of accelerators to edit by hand. See The Smith, for developers.

Is this page right?

If something on it is wrong or out of date, tell us and we'll fix the page.

Still stuck? Write to support@castellan-software.com and mention article 1401. Every version of Smith, and what changed in it, is in its release notes.