A local AI assistant

The assistant that runs on your own PC.

Luna is a personal AI built around a local Qwen3 14B. No cloud AI model and no account. Some tools do use the network, such as web search.

Luna has separate checks that compare her answers with what tools actually returned (a claimed verification, a cited URL, a cited number), and PolicyGuard is the separate filter that decides whether a tool may run.

Measured on an RX 9070 XT: Vulkan up to +23% faster generation (43.45 vs 35.45 tokens/s at 30k context), ROCm faster prompt reading, with a lead that shrinks as context grows. See the benchmarks.

See the benchmarksHow it works
The constellation Orion with Betelgeuse, Rigel and the three belt stars, and Luna as a glowing orb beside it Betelgeuse Rigel Luna
1home GPU runs the AI model
+23%faster generation with Vulkan at 30k
0trackers, cookies or scripts
What it does

What Luna does on this PC

A chatbot produces text. Luna also calls tools on the machine and reports what they returned.

01

Looks

Web search; RAM, CPU and temperature monitoring.

02

Acts

Downloads folder scan, real-time detection, automatic security updates, file edits inside my home folder.

03

Limits

write_file asks me first. There is no delete tool. Known gaps: guardrails live in code, not enforced by the OS; it runs under my own user.

Demo

Luna in action

Asking Luna to scan a folder for viruses. It finds the EICAR test file. The waiting time is sped up.

Luna Orbe Orion: what the audit found, and what is being fixed one by one. A 14-second video; no sound.

Latest

Latest tests

Atom feed

Why Luna

Private by design.

Many assistants send your requests to a cloud model. Luna's model runs on one GPU at home.

01

Local

The model runs on my own GPU through llama.cpp, and no cloud AI model is used. Some tools still use the network: web search goes through my self-hosted SearXNG, which queries search engines; weather, mail checks and system updates contact their own servers.

02

French first

Built for everyday use in French, with answers checked against the real state of the machine.

03

Measured

Every number on this page comes from a test I ran, with the setup written down.

How it works

One model, one server.

01Youquestion
02Lunaassistant logic
03llama-serverlocal API · 32k
04Qwen3 14BQ4_K_M
05GPU16 GB VRAM
Benchmarks · RX 9070 XT

Vulkan up to +23% faster generation (+9% at 1k), ROCm faster prompt reading with a lead that shrinks as context grows

Same card, same model, same prompts. Generation speed in tokens per second, by context length.

Generation speed, ROCm versus Vulkan, by context length Tokens per second on an RX 9070 XT, retest of 22 Nov 2026. 1k: ROCm 53.31, Vulkan 57.88; 4k: ROCm 50.33, Vulkan 55.62; 8k: ROCm 47.36, Vulkan 53.39; 16k: ROCm 42.64, Vulkan 49.37; 30k: ROCm 35.45, Vulkan 43.45. 0 20 40 60 tokens / second ROCmVulkan 53.31 57.88 1k+8.6% 50.33 55.62 4k+10.5% 47.36 53.39 8k+12.7% 42.64 49.37 16k+15.8% 35.45 43.45 30k+22.6%

Vulkan generates faster, up to +22.6% at 30k. In the retest of 22 Nov 2026, ROCm still reads prompts faster, but its lead shrinks as the context grows: 24.5% at 1k, 9.0% at 30k. Median of 7 timed passes, fixed seed, 256 tokens, q8_0 KV cache, llama.cpp b12359, ROCm HIP libraries 7.2.70201, Mesa RADV 25.2.8. Output quality was not compared.

Video, 13 seconds: the same prompt generated with Vulkan and with ROCm on an RX 9070 XT.

Benchmarks · Retest

Retest, 22 Nov 2026

Same card, same model, same protocol, with both backends now built from the same llama.cpp release (b12359, commit b1b770d90). Vulkan generates 8.6% to 22.6% faster. ROCm reads prompts faster, but its lead shrinks as the context grows: 24.5% at 1k, 9.0% at 30k.

Generation speed, tokens per second
Context  ROCm                  Vulkan                Vulkan faster
1k       53.31 [53.24–53.55]   57.88 [57.77–57.96]   +8.6%
4k       50.33 [50.18–50.43]   55.62 [55.58–55.66]   +10.5%
8k       47.36 [47.29–47.42]   53.39 [53.35–53.49]   +12.7%
16k      42.64 [42.59–42.66]   49.37 [49.31–49.54]   +15.8%
30k      35.45 [35.29–35.72]   43.45 [43.38–43.54]   +22.6%
Prompt reading speed, tokens per second
Context  ROCm                    Vulkan                  ROCm faster
1k       2126.3 [2111.5–2133.2]  1708.3 [1703.2–1717.3]  +24.5%
4k       2010.4 [2006.8–2015.4]  1627.3 [1624.4–1629.9]  +23.5%
8k       1829.9 [1828.6–1836.3]  1523.4 [1522.8–1526.4]  +20.1%
16k      1527.4 [1490.2–1539.6]  1321.7 [1320.6–1324.9]  +15.6%
30k      1172.4 [1157.8–1174.4]  1076.0 [1073.0–1076.1]  +9.0%

Median [min–max] of 7 timed passes per context, after one warm-up pass. 256 tokens generated, fixed seed (42), q8_0 KV cache, prompt cache disabled, same GGUF as above. Both builds are llama.cpp b12359 (commit b1b770d90). ROCm is the local HIP build that serves Luna; its HIP libraries come from /usr/local/lib/ollama/rocm_v7_2 (7.2.70201), not /opt/rocm. Vulkan is the official ggml-org archive (sha256 verified), on Mesa RADV 25.2.8 and kernel 7.0.0-43. Luna's own server was stopped during the test. One GPU, one model. Output quality was not compared.

resultats_brutes.csv
every timed pass: backend, context, pass number, generation and prompt-reading tokens per second
versions.txt
builds, sha256, drivers, kernel and test conditions
Routing

How Luna picks a tool

Three real requests from Luna's log (7 Oct 2026): a rule, SetFit, then Qwen3 14B. SetFit now has 26 classes, one per tool offered to the model, and can pick any of them with a score of at least 0.6; Qwen3 then fills in the parameters or turns the choice down. The video below shows the earlier version (10 of 53 classes).

Reliability

How I test reliability

A test bench replays real scenarios 5 times each, and code decides pass or fail. Run of 26 Nov 2026: 112 of 112 evaluated attempts passed (100 %), with 0 errors. 13 more attempts, in 3 scenarios, were skipped because their precondition was not met, so they are not counted (25 scenarios x 5 runs in total). The video below shows the earlier run of 11 Oct 2026: 109 of 110 evaluated attempts passed (99.1 %, 22 scenarios x 5 runs), with 15 more attempts (3 scenarios) skipped.

Safety

What PolicyGuard does

PolicyGuard is a filter placed between the model's decision and the execution of a tool. This section lists what it checks, the gaps found by testing, and its limits.

01

Checks

The tool must be on the allowed list (65 tool names; the model itself is offered 26 tools). Text parameters are compared with lists of forbidden commands and patterns: file or disk destruction, sudo elevation, chmod/chown, mount, package installation, shell injection, service control, critical system paths. Three tools (app_open, webcam, service_restart) accept only values from a list. port_scan accepts only private-network addresses.

02

Confirmation

17 names on that list require the user's confirmation: writing and editing files, stopping processes, Docker, quarantine, reboot and shutdown, among others. They include 7 of the 26 tools offered to the model. A few precise cases lift it, for example an explicit order to turn the PC off.

03

Sudoers

Further down, administrator rights are limited by sudoers to a short list of exact commands that need no password: package updates (apt update, apt upgrade, and a security-upgrade helper script), restarting the 4 Luna/Ollama services, and ufw status. Luna's sudo calls run without a password prompt, so commands outside this list are expected to fail (deduced from the rules, not tested for every case).

Gaps found by testing, then fixed
  • Luna's routing, not PolicyGuard, found by Luna's own benches: “ok merci. et niveau RAM, ça tient la route ?” (French, roughly “ok thanks. And the RAM, is it holding up?”) was taken for a greeting, so Luna answered without a tool; in test replays, Luna also stated a RAM figure without any measurement. And when the model called system_info for a measurement question, a guard refused it and Luna fell back to answering without a tool. Fixed: a real measurement tool is now called.
  • PolicyGuard no longer raises exceptions: an internal error, or parameters that are not a dictionary, now fail closed (refusal or confirmation request). A service name that is not text no longer lifts the confirmation. Fixed.
  • network_audit (target validated, private IPv4 only), service_analysis and service_manage (service name validated) now refuse model-supplied values that start with a dash, so that nmap or systemctl cannot read them as options. Fixed.
  • diagnostic_read now uses a list of allowed options instead of a list of forbidden ones. Known side effect: some normal options are now refused.
  • Luna can no longer run npm or npx through run_command: both were removed from the allowed list, and tests check the refusal even with confirmation. Known remainder: python, make, cargo and go can still execute project code, with confirmation.
  • write_file ran without asking for confirmation. Fixed.
  • Audit: docker_action ran without confirmation, and a script ran deletion commands without going through PolicyGuard. Both fixed.
  • Asking Luna to restart the ollama service restarted a critical service without confirmation. Fixed.
  • port_scan accepted a public IP address. It is now limited to the private network.
Limits
01

Lists

PolicyGuard is a filter based on lists. It can refuse harmless requests and let unusual wordings through.

02

One layer

It is only one layer. The confirmations and sudoers are the main barriers.

03

Testing

PolicyGuard is tested on forbidden commands. No real refusal appears in the logs that are kept.

04

False refusals

Some harmless requests are known to be wrongly refused. 6 such cases are kept as tests marked as expected failures (xfail).

05

Project code

Through run_command, python, make, cargo and go can still execute project code, with confirmation.

Reproduce

Run it yourself.

ROCm run
HIP_VISIBLE_DEVICES=0 llama-server \
  --model qwen3-14b-Q4_K_M.gguf --alias qwen3:14b \
  --ctx-size 32768 --n-gpu-layers 99 --flash-attn on \
  --cache-type-k q8_0 --cache-type-v q8_0 \
  --host 127.0.0.1 --port 8080
Vulkan run

Same protocol and prompts as the ROCm run, with the official llama.cpp b12359 Vulkan build; the builds, hashes and options of the retest are in versions.txt. bench.py is the script behind the numbers above, used unmodified. vulkan_command.txt and run_vk.sh come from the earlier run. run_vk.sh has private paths replaced by variables and was not re-run after this cleanup; the retest used a wrapper derived from it, which is not published.

vulkan_command.txt
llama-server command, build and driver details of the earlier run
run_vk.sh
runs q8_0 then f16: 1 warm-up and 7 passes per context
bench.py
measures prompt speed, generation speed and VRAM

For the earlier run, medians and min–max were kept, not the raw per-pass values. The 22 Nov 2026 retest is the exception: its 7 timed passes per context are published (resultats_brutes.csv, warm-up pass not included).
ROCm is a local HIP build and Vulkan is the official ggml-org archive, both llama.cpp b12359.

GGUF sha256
a8cc1361f3145dc01f6d77c6c82c9116b9ffe3c97b34716fe20418455876c40e
Versions
llama.cpp b12359 · ROCm HIP libraries 7.2.70201 · Mesa RADV 25.2.8
Hardware
RX 9070 XT, 16 GB
Follow along

Built by one person, measured in public.

New tests and demos go on X first. Luna's code is not published; the measurements are.

Follow @g_lejars