Skip to content

nv1 — Jetson Orin NX (GPU node)

nv1 (192.168.48.5) is a Jetson Orin NX 16 GB running Talos with a custom nvgpu stack (JetPack 7 / r39.2 since 2026-10-08, see below). CPU and GPU share the 16 GB (about 12.8 GiB usable for models).

JetPack 7 (r39) image

nv1 runs the JetPack 7 build of the custom installer (ghcr.io/mmalyska/custom-installer:v1.14.2-6.18.54-nvgpu39.2.1-jp7, Jetson Linux r39.2, CUDA 13 driver, modules from NVIDIA's r39.2.1 sources). The board firmware (QSPI) was flashed to r39.2.0 on 2026-10-08 with Seeed's recomputer-orin-j401 package, QSPI only (l4t_initrd_flash.sh --qspi-only; without --qspi-only the tool also rebuilds and flashes the NVMe). The module list is provision/talos/patches/node/nv1/28 to 38: ivc_ext, tegra_hv and nvhwpm are new, and host1x_nvhost loads before host1x_fence.

  • Libraries: the restore-libs init container of nvidia-cdi-setup downloads libcuda and what it loads from NVIDIA's apt repository (component som, dist r39.2: nvidia-l4t-core, -cuda-nvgpu and -cuda, about 26 MB, plus libnvidia-ptxjitcompiler out of the cuda-compat-13-2 package of the common component, about 88 MB to download and 32 MB kept; versions and SHA-256 pinned in the manifest) into /var/lib/nvidia-tegra-libs/tegra once per version, and the CDI spec mounts that directory into GPU containers, together with the host1x-*/nvhost-* device nodes. The set includes libnvcucompat.so, which libcuda dlopen()s at cuInit (without it cuInit returns 999). The node image carries no userspace libraries, only the GA10B firmware (extension nvidia-firmware-ext). nv1 moved to this image (the nvidia-tegra-userspace extension gone from the node, libraries from the init container) on 2026-10-10: the init container filled 14 files on the old image first, then the node was upgraded by digest and booted with nvidia.com/gpu 1 and llama-server at 25.8 tok/s generation. The node needs access to repo.download.nvidia.com the first time (and after a version bump of the manifest); once the marker file .l4t-<version> exists it works offline.
  • Firmware: nvidia-cdi-setup copies the firmware from the node image to /var/fw-fresh/ga10b and sets firmware_class.path there, and it re-syncs on every start. /var survives upgrades: a one-time copy left JetPack 6 firmware in front of the JetPack 7 files and the r39 nvgpu reset the node on GPU power-on (PMU never booted, then a NULL dereference in the nvgpu interrupt thread, hard reset with no pstore record).
  • Measured 2026-10-08: llama-server (LFM2.5-8B-A1B Q6_K_XL) 25.7 tok/s generation, 66 tok/s prompt processing, GPU load about 95% during a request; the CPU fallback is about 6 tok/s.
  • Comparison with the upstream author's JetPack 6 numbers (2026-10-10; the upstream README measures Ollama 0.20.5 decode with the prompt Hello! on an Orin NX 16 GB at MAXN). Same Q4_K_M files from the Ollama registry, llama-bench of our llama-cpp-jetson v0.6.0 (native sm_87, CUDA 13.2 driver), -ngl 99, pp8 and tg128, 5 runs, MAXN, llama-server scaled to 0 for the test:
Model JetPack 7.2 here (llama.cpp) Talos JetPack 6 (upstream, Ollama) JetPack 6.2 native (upstream, Ollama)
qwen2.5:0.5b Q4_K_M 89.7 ± 2.7 tok/s 64.6 tok/s 66.5 tok/s
qwen3:4b Q4_K_M 16.7 ± 0.0 tok/s 16.4 tok/s 19.5 tok/s

The 4B model is memory-bandwidth bound and lands at the same speed on both JetPack lines. The 0.5B gap is mostly engine and version (llama.cpp directly against Ollama's HTTP path), not JetPack 7; this is not a like-for-like JetPack comparison. Prefill (pp8) was 447 and 133 tok/s.

  • Stock Ollama runs once libnvidia-ptxjitcompiler is in the library set (v0.40.2, cuda_v13, 2026-10-10). Without it the first kernel aborts with CUDA error: PTX JIT compiler library not found: Ollama's CUDA 13 build has no native sm_87 code and falls back to PTX JIT, and the library is not in the som debs (nvidia-l4t-core, -cuda, -cuda-nvgpu, -cuda-utils). The restore-libs step takes it from cuda-compat-13-2 (libnvidia-ptxjitcompiler.so.595.71.05, the newest 595.x in the common component while the node driver is 595.78; the version gap caused no problem). The same applies to any image without native sm_87 SASS (stock PyTorch and vLLM wheels carry sm_80 code and PTX). Result with the library, Ollama v0.40.2, all layers on the GPU, MAXN, Hello! prompt (median of 5) and a 256-token generation:
Model Hello! decode 256-token decode Talos JP6 (upstream, Ollama 0.20.5) JP 6.2 native (upstream)
qwen2.5:0.5b Q4_K_M 77.0 tok/s 89.3 tok/s 64.6 tok/s 66.5 tok/s
qwen3:4b Q4_K_M 17.6 tok/s 17.6 tok/s 16.4 tok/s 19.5 tok/s

The Hello! prompt generates only about 10 tokens on the 0.5B model, so warm-up overhead lowers its rate; the 256-token column is the steady decode rate. Like for like (Ollama against Ollama), JetPack 7.2 is about 19% faster than Talos JetPack 6 on the 0.5B and about 7% on the 4B, and still about 10% below JetPack 6.2 native on the 4B. Ollama and llama-bench agree within a few percent, so Ollama adds little overhead here. The pod test needs the single GPU: llama-server has to be paused through git (server.replicaCount: 0), as the app self-heals a scale-down.

  • Soak 2026-10-09 (2 hours, 2 workers matching the 2 slots, random prompts of 40 to 4,500 words, 100 to 300 generated tokens): 1,398 requests, 0 errors, 265k generated tokens, generation median 21.8 to 22.0 tok/s in every 30-minute window (no slowdown), slowest request 25 s, 24 prompts above 4,000 tokens. The GPU sat at 92 to 100% load. Memory filled while the prompt cache and context checkpoints warmed up and then levelled off: node MemAvailable fell from 3.9 GB to about 1.7 GB within 40 minutes and stayed there, the pod at about 11.4 GiB (below its 13Gi limit). No restarts, no OOM kills, no nvgpu errors or Oops in the kernel log, node uptime unbroken. A first attempt was cut short after 17 minutes by a site power outage; nv1 cold-booted cleanly afterwards.
  • nvme nvme0: I/O tag ... timeout, completion polled (a missed completion that the driver recovered): once about a day after the soak, and again on 2026-10-26 22:14, 2026-10-29 02:56 and 2026-11-17 00:29 UTC (Loki lists each event twice, from two log streams; the node rebooted on 2026-11-06 in between). It is about 3 times in 30 days and no I/O error followed. On 2026-11-24 the drive reported 0 media errors, 0 error-log entries, 0 % used, 100 % spare, no critical warning and 33 °C (smartctl_device_*{node="nv1"}). Keep watching: a rise in the rate, or any media error, is the signal.
  • Upstream: our r39 branch was merged as schwankner/talos-jetson-orin#65 on 2026-11-24, after the maintainer's own tests on an Orin NX 16 GB (below) and on an AGX Orin 64 GB devkit (where the warm reboot after the QSPI flash did find the NVMe, so the cold-boot note may be specific to the J401). r39 is the upstream default line since #87 (2026-11-25); its modules are built headless from then on (39.2.1-jp7-headless, tegra-drm without its display code), and the installer is published as ghcr.io/schwankner/custom-installer-jp7, including the plain alias tag :v<talos>. nv1 still uses our fork's image (2026-11-25); the possible switch is an item in .plans/TODO.md. History: .archive/TODO.md, "Moved 2026-11-25 (third move)".
  • The upstream maintainer ran our r39 branch (schwankner/talos-jetson-orin#65) on their own Orin NX 16 GB in a reComputer J401 on 2026-11-23/24 (QSPI flashed to r39.2.0, Talos v1.14.4 with the r39 installer): cuInit and PTX JIT work with native CUDA 13.2, Ollama 0.20.5 runs on the GPU at the same speed as their r36 stack at the same clock (qwen2.5:0.5b about 65 tok/s, qwen3:4b about 16.6 tok/s), a 45-minute load test of 182 requests had 0 failures and no GPU fault, and a reboot came back on the r39 UKI. Their findings that matter here:
    • GPU clock after boot. The r39 nvgpu creates its devfreq node only at the first GPU use, and its default maximum is 1173 MHz (the Super clock). Our power-mode DaemonSet logs GPU devfreq not found at start. It used to apply the 918 MHz cap only in its 60-second re-assert loop, so for up to about a minute after the first GPU use after a boot the GPU could run above 918 MHz on a board that must not run the Super clock. Since 2026-11-24 the loop looks for the node every second and caps it as soon as it appears (log line GPU devfreq appeared, capped at 918000000 Hz); the full re-assert still runs every 60 seconds. It was checked on real hardware in a controlled restart of nv1 on 2026-11-24: the container started at 10:02:01 with GPU devfreq not found, llama-server began using the GPU at 10:02:53, and at 10:02:54 the log showed GPU devfreq appeared, capped at 918000000 Hz (cur_freq=918000000 Hz). The node was out for about 3 minutes (NotReady to Ready) and llama-server for about 5 (eviction to Ready), and no alert fired. The sub-second before the cap was not observed. A restart of the power-mode pod alone does not show the path, because the node exists by then. See cluster/apps/system/nvidia/resources/power-mode.yaml.
    • Warm reboot after the QSPI flash. UEFI r39 did not find the NVMe after the warm reboot that ends the flash; a cold power cycle fixed it.
    • Upgrade order. Remove the r36 CDI DaemonSet before the first boot of the r39 driver: stale r36 GA10B firmware in /var/fw-fresh resets the node.
  • cuInit returning 999 or a node reset when a GPU pod starts: stream talosctl dmesg --follow and strace -f over the network (a hard reset loses unsynced files, so do not write the trace to local disk), see the fork's docs/jetpack7.md.
  • Upgrading the image needs three things beyond talos:upgrade: (1) a new tag or the digest: the node reuses a cached image for a tag it already pulled, so a rebuilt installer under the same tag is not fetched (talosctl upgrade --image ...@sha256:<digest>); (2) free ESP space first: each UKI is about 565 MB and the ESP is 2.0 GB, so keep at most two (delete the *.bak files with a privileged pod that mounts /dev/nvme0n1p1; the pod needs a namespace that allows privileged pods, for example nvidia-system); (3) the stale default boot entry: the Jetson UEFI keeps booting the old UKI (it did again on 2026-10-10), so rename it to .bak (see provision/talos/README.md, "nv1 boots the wrong UKI after an upgrade") and reboot. task talos:upgrade cannot tell the old and new image apart when the Talos version is the same, so check the extensions with talosctl get extensions.
  • Rollback: the previous image was ghcr.io/mmalyska/custom-installer:v1.14.2-6.18.54-nvgpu5.13.0-drm-noshim. An earlier r39 image, by digest: ghcr.io/mmalyska/custom-installer@sha256:5bcfbf2b723b6ebad1600e2e3f0d4ef16774f6958001b4e42d7acd76b212db9d (it still has the old userspace extension inside, so it needs the old CDI manifest from git history; it still pulled on 2026-11-24, after the unused nvidia-tegra-userspace package was deleted). The r39 firmware also ran the JetPack 6 modules (seen on 2026-10-08).

How GPU access works

  • nvidia-cdi-setup DaemonSet writes a CDI spec (device nodes + JetPack libs).
  • nvidia-device-plugin advertises exactly one nvidia.com/gpu (hard-coded, no config). Only one pod at a time can hold it.
  • A kubelet-watchdog sidecar restarts the plugin whenever the kubelet re-creates kubelet.sock. Without it, any kubelet restart leaves the node at nvidia.com/gpu: 0 because the plugin never re-registers.
  • Alert NodeGpuUnavailable fires when allocatable GPU is 0 for 5 minutes.

Rules for GPU images

  • The JetPack 7 driver (CUDA 13.2) runs CUDA 13 images. Pin images by digest.
  • On the JetPack 6 image (rollback) use CUDA 12.6 images only (for llama.cpp: ghcr.io/nvidia-ai-iot/llama_cpp:b8708-r36.4-tegra-aarch64-cu126-22.04) and never latest* tags: they moved to CUDA 13, which the JetPack 6 driver cannot initialize. llama.cpp then falls back to CPU silently (log line ggml_cuda_init: failed to initialize CUDA: CUDA driver version is insufficient for CUDA runtime version, ~6 tok/s).

Symptoms and recovery

Symptom Cause Fix
GPU pod Pending, Insufficient nvidia.com/gpu; node allocatable nvidia.com/gpu: 0 Kubelet restarted; plugin lost registration Watchdog fixes it in about a minute; manual: kubectl rollout restart ds/nvidia-device-plugin -n nvidia-system
Kubelet restarts every 10–20 min Extra DHCP address on the NIC flapping the static IP See below
cilium-envoy/node-exporter CrashLoopBackOff, DNS timeouts, llama-server slows to a few tok/s Node-wide OOM (see memory budget below) Check talosctl -n 192.168.48.5 dmesg \| grep -i oom and read /proc/meminfo; keep llama-server within its budget

Metrics

Jetson has no nvidia-smi or DCGM. The jetson-gpu-exporter DaemonSet (nvidia-system, cluster/apps/system/nvidia/resources/gpu-exporter.yaml) reads the GPU, EMC and nvmap files in sysfs and debugfs and serves them as Prometheus metrics: busybox httpd runs gpu-exporter.sh as a CGI script on each scrape (PodMonitor, every 15 s, /cgi-bin/metrics on port 9400). It is privileged because debugfs is root-only, with /sys, debugfs and its root filesystem read-only; the script only reads files and takes no input. Test: bash cluster/apps/system/nvidia/resources/gpu-exporter.test.sh. Design and the raw r39 checks: .archive/.plans/nv1-igpu-metrics/ (spec.md, evidence.md).

Metric Source (r39) Notes
jetson_gpu_load_ratio /sys/devices/platform/bus@0/17000000.gpu/load / 1000 0 idle, 0.90–0.92 during sustained generation
jetson_gpu_railgated, jetson_gpu_powered_on is_railgated (yes/no), gpu_powered_on (on/off) in the same dir State right now; words in the files, 0/1 in the metrics
jetson_gpu_railgate_enabled, jetson_gpu_tpc_power_gating_enabled railgate_enable, tpc_pg_mask Settings; both 0 on nv1
jetson_gpu_devfreq_present /sys/bus/platform/devices/17000000.gpu/devfreq/17000000.gpu exists 0 until the first GPU use after boot; the clock metrics are absent then
jetson_gpu_frequency_hz, _min_hz, _max_hz, jetson_gpu_governor_info devfreq cur_freq, min_freq, max_freq, governor All 918 MHz, performance (pinned by jetson-power-mode)
jetson_emc_frequency_hz, _min_hz, _max_hz debugfs bpmp/debug/clk/emc/{rate,min_rate,max_rate} 3199 MHz, locked in MAXN
jetson_emc_activity debugfs bpmp/debug/actmon/mc_all_avg_activity, raw A moving average, not a percent: see below
jetson_gpu_process_memory_bytes{command}, jetson_gpu_memory_bytes debugfs nvmap/iovmm/maps: process header lines and the total line, KiB × 1024 Summed per process name, no pid label
jetson_exporter_source_up{source} one per source 0 when a file is missing or unreadable; the scrape still succeeds
  • EMC activity. jetson-stats shows mc_all_avg_activity / (EMC clock in kHz) as a percent, but on nv1 that is about 0.02–0.08 idle and a steady 10.9 during sustained generation (raw 34.9M–35.1M; 2026-11-25, 1800 tokens at 29.7 tok/s), so it is a relative number with no known scale. The dashboard shows it as "relative, jtop scale". Compare it with itself over time, not with 100.
  • Resolution. The values are read at each 15 s scrape, and both GPU load and EMC activity return to idle within one scrape after a request. A 13 s request showed up in one sample, so short requests are undercounted or missed; the metrics describe sustained load. In PromQL, use subqueries with an explicit step ([5m:15s]): [5m:] evaluates every 30 s (the global interval) and skipped that sample.
  • GPU memory per process is the size of what is loaded (4.3 GiB for llama-server with LFM3-1.7B), not activity: it stays flat during requests.
  • Not exported: trans_stat (its header runs the frequency columns together), enable_3d_scaling (absent on r39), the NVDEC/NVENC/NVJPG/OFA load files (nothing on nv1 uses those engines).
  • Power comes from node-exporter, not this exporter: the INA3221 (hwmon chip i2c_1_1_0040, chip_name="ina3221") has in1/curr1 = VDD_IN (the whole module), in2/curr2 = VDD_CPU_GPU_CV, in3/curr3 = VDD_SOC; watts are node_hwmon_in_volts × node_hwmon_curr_amps per pair. On 2026-11-25 VDD_CPU_GPU_CV went from about 0.5 A idle to 1.2–2.2 A during a request (at about 5 V). Fan: node_hwmon_pwm{chip="platform_pwm_fan"} (0–255). Reading the GPU files every 15 s does not keep the GPU awake: idle VDD_CPU_GPU_CV was 2.638 W before the exporter started and 2.628 W after.
  • Keep the script cheap. The first version started a process per file read (about 25 per scrape) and its probes ran the script; the bursts were throttled in 58 % of CPU periods under the 100m limit and CPUThrottlingHigh fired (#6466, fixed in #6467). The script now reads files with the shell's read, starts only awk, and the probes are TCP; gpu-exporter.test.sh fails if anything but awk is needed.
  • Series labels. The PodMonitor sets instance to the node name and drops pod, so a restarted exporter continues the same series. Until 2026-11-25 each pod had its own series (pod name and IP), which split the dashboard lines at the #6467 rollout; the dashboard aggregates by node to join that history.
  • Script changes leave the old ConfigMap. The script is a generated ConfigMap with a content hash, so a change rolls the pod; nvidia has prune: false, so Argo CD then shows the app OutOfSync on the old jetson-gpu-exporter-<hash> ConfigMap until it is pruned (an owner action). Nothing uses it.
  • Dashboard: "Jetson GPU" (folder "Devices Metrics", cluster/apps/system/prometheus-stack/dashboards/jetson-gpu.json): load, EMC activity, clocks with the 918 MHz cap, GPU memory per process, power per rail, GPU temperature and fan, exporter sources.
  • Alerts (gpu-exporter-rules.yaml, tests in cluster/apps/system/nvidia/tests/):
  • JetsonGpuClockAboveCap (critical, 2 min): the GPU clock or its devfreq maximum is above 918 MHz, the MAXN cap in power-mode.yaml. Change the two together. Check the jetson-power-mode logs; if the cap does not hold, scale llama-server to 0.
  • JetsonGpuExporterDown (warning, 15 min): an exporter pod on a Ready node has no successful scrape, so the clock alert is blind.

Talos: platform DHCP left in META (fixed 2026-09-25)

nv1 had a leftover platform network config in the Talos META partition (key 0x0a) with operators: [dhcp4 enP8p1s0]. It leased 192.168.48.210 beside the static 192.168.48.5; lease churn flapped .5, and Talos restarted the kubelet. Machine-config dhcp: false does not remove a platform-layer operator.

  • Since the network migration (2026-10-21) the machine config has no dhcp: false any more: nv1's LinkConfig (patches/node/nv1/10-link.yaml) has no DHCPv4Config, and no document means no DHCP. The platform-layer operator below is still the one thing that can bring it back.
  • Check: talosctl -n 192.168.48.5 get operatorspecs must be empty and get addresses must show only 192.168.48.5/24 on enP8p1s0.
  • Fix: talosctl -n 192.168.48.5 meta delete 0x0a (no reboot needed).
  • After a reinstall or reflash, re-check this: the key is not in git.

Memory budget (llama-server)

nv1 has 15.6 GiB of unified memory shared between the system and the GPU. Since 2026-10-28 it serves LFM3 (text-only 1.7B, LFM3-VL-2B from 2026-10-29, the text-only 1.7B again from 2026-11-13), which needs a fraction of what Gemma did.

LFM3-1.7B (measured 2026-10-29)

Config: -c 131072 -np 1 --cache-ram 2048 --ctx-checkpoints 16 -ctk q8_0 -ctv q8_0 -ub 256, after about 30 minutes with the speed benchmark, a 10-turn corruption run and several translation tests (never more than two concurrent sessions).

Reading Value
Pod cgroup memory.current / memory.peak 4.0 GB / 4.0 GB (limit 8 GiB); kubectl top shows 3286 Mi
of which anon / file 1.26 GB / 0.57 GB (the rest is kernel and mapped memory)
Node MemAvailable right after load / after tests 9.2-9.5 GB / 7.97-8.3 GB
PVC llama-server-models 19 GB of 30 GB used, 18.3 GB of it unused models (see Cleanup, below)
  • Settings and why: the 2048 MiB prompt cache and 16 checkpoints would have starved the node with Gemma; with LFM3 they use only a part of the headroom. anon was still only 1.26 GB, so the prompt cache has not filled; when it does the pod can grow by up to about 2 GiB (about 6 GB total). The limit stays at 8Gi, the request is 4Gi (it was 3Gi, below the measured working set).
  • KV cost: only 6 of 24 layers hold global attention. About 4.9 KB per token at q8_0/q4_0 and 6.5 KB at q8_0/q8_0 (0.65 GB and 0.85 GB at 128K); 262144 tokens would be about 1.7 GB at q8_0/q8_0, f16 about 3.2 GB.
  • Not measured (single-slot run): a full prompt cache, and a prompt that fills the 128K window (prefill alone would take over 1.5 minutes at ~1700 tok/s).
  • Watch: node MemAvailable (talosctl -n 192.168.48.5 read /proc/meminfo), not kubectl top; GPU allocations are not charged to the pod cgroup.
  • Cleanup pending: the PVC still holds the Gemma file (10.5 GB) and an older LFM2.5-8B-A1B-UD-Q6_K_XL.gguf (7.7 GB). Neither is used; deleting them needs a throwaway pod on nv1 (cluster change, owner's confirmation).

Gemma 4 26B-A4B era (history, measured 2026-10)

The figures below were measured with Gemma 4 26B-A4B (about 11.9 GiB pod).

nv1 has 15.6 GiB of unified memory. The system (Talos, kubelet, Cilium, DaemonSets) uses about 3.4 GiB, and the llama-server pod sits at about 11.9 GiB right after warm-up (weights 10.0 GiB, KV cache 0.76 GiB, compute buffers 0.6 GiB, CUDA context). That leaves roughly 1.3 GiB of node headroom, and the pod can grow to about 13.4 GiB before the node starves.

  • Settings that fit (cluster/apps/ai/llm/server/values.yaml): memory limit 13Gi, request 11Gi, --cache-ram 256, --ctx-checkpoints 2, -ub 256. Measured steady state: 11.8–12.2 GiB, node MemAvailable about 1.3 GiB, 15–16 tok/s, no restarts across a sustained multi-prompt test.
  • llama-server defaults do not fit: the host-RAM prompt cache defaults to 8192 MiB (about 88 MiB per 1k tokens) and each context checkpoint is 100–120 MiB (32 per slot). Left at defaults they starve the node, Talos' OOM controller kills besteffort system pods, and generation decays from about 14 to about 3 tok/s. It is not thermal.
  • A pod limit of 12Gi is too low (OOM-killed at about 12.5 GB); a limit above about 13.4 GiB gives no protection because the node runs out first.
  • Gemma 4 thinks by default and reasoning consumes max_tokens, so small-budget calls return empty content. The server defaults to thinking off (--chat-template-kwargs); a request can opt in with chat_template_kwargs.enable_thinking=true.
  • Before changing the model, quantization, context, slots or any of the flags above, re-run a sustained test with many different prompts and watch pod memory and node MemAvailable (talosctl -n 192.168.48.5 read /proc/meminfo).
  • Smaller quants of the same model save little (IQ2_XXS is 9.24 GiB vs 9.82 GiB for the running Q2_K_XL); Gemma 4 E4B frees about 5 GiB but scored much lower on agentic tasks.
  • Hermes needed at least 64,000 tokens of context per slot (ctx / parallel >= 64000). It was archived on 2026-10-21 (restore notes in .archive/cluster/ai/README.md); keep -c 65536 -np 1 if it comes back.

Qwen3.6-35B-A3B benchmark (2026-10-13)

Plan: .archive/.plans/superpowers/plans/2026-10-13-qwen3.6-benchmark.md. Image llama-cpp-jetson v0.6.0 (same digest as production), llama-server paused through git for about 25 minutes, throwaway pods on the llama-server-models PVC, production flags (-c 131072 -np 2 -fa on -ctk q8_0 -ctv q4_0 -ub 256, --cache-ram 512 --ctx-checkpoints 2 for the Qwen arms).

Arm pp512 (tok/s) tg128 (tok/s) Result
Qwen3.6-35B-A3B UD-IQ2_XXS (10.0 GiB) 183 15.9 loads, 15.1 tok/s single stream in server mode, quality 19/20
Qwen3.6-35B-A3B UD-IQ2_M (10.7 GiB) n/a n/a fails to load: cudaMalloc OOM on the 10.4 GiB weight buffer
LFM2.5-8B-A1B UD-Q6_K_XL (baseline) 632 26.6 production model
  • Verdict: does not fit. With IQ2_XXS loaded and idle the pod sat at 10.7-11 GiB and node MemAvailable at 0.40-0.47 GB (gate: 0.8 GB; LFM2.5 leaves 1.7-4 GB). The concurrent 45K-token load test was stopped after a minute instead of risking the node-wide OOM described above; no round completed.
  • The corruption rate (hybrid-state bug class, #29002) was not measured: the memory result made it moot. It is still unknown whether Qwen3.6's Gated-DeltaNet hybrid shares LFM2.5's bug.
  • Quality with thinking off: known answers 4/5 (missed reversing a word letter by letter), JSON 5/5, single tool calls 5/5, small-budget titles 5/5. With enable_thinking=true a 32-token title call returns empty content (finish length), so thinking stays off server-side as for Gemma 4.
  • llama-bench and the server both ran on the GPU with no CUDA 13.2 gibberish, so Unsloth's warning does not apply to our build.
  • Qwen3.6-35B-A3B at 2-bit is about the ceiling nv1 can load at all (IQ2_M is already out). A 3-bit file or UD-Q2_K_XL (11.45 GiB) cannot work. A usable Qwen3.6 or Qwen3.8-27B needs a 24 GB-class GPU.

LFM3-1.7B (2026-10-28)

llama-server serves LFM3-1.7B-Q8_0 (1.85 GB, alias lfm3-1.7b) from LiquidAI/LFM3-1.7B-GGUF (license lfm1.0) on llama-cpp-jetson:v0.8.0, the first llama.cpp release with LFM3 support (ggml-org/llama.cpp#31252). It replaced Gemma 4 26B-A4B by owner decision: Liquid AI positions LFM3 for agents like Hermes (BFCL V4 71.4, IFEval 96.7, 256K context), and the node gets about 10 GB of room back for tailored models. Plan: .archive/.plans/lfm3-llama-server/.

  • First LFM3 run used the Gemma-era flags -c 65536 -np 1 --cache-ram 640 --ctx-checkpoints 2 -ub 256, so only the model differed.
  • Tuning step 1 (2026-10-28, PR #5979, live): -c 131072 -np 1 --cache-ram 2048 --ctx-checkpoints 16 plus server sampling defaults from the model card (--temp 0.1 --top-k 50 --repeat-penalty 1.1, chart value server.sampling; a request's own values win). Global-attention KV is ~4.9 KB/token with q8_0/q4_0 (6 of 24 layers), so 128K is ~0.65 GB and the model's 262144 maximum ~1.3 GB.
  • Speed is unchanged from the 64K config (bench/speed.py, 3 runs each): prefill 1678-1786 tok/s at 1K/4K/16K prompts, generation 29.6 / 28.9 / 26.1 tok/s, thinking on or off.
  • Corruption harness (2 sessions x 5 turns, 30 padded tools): 0/10 corrupt, 6/6 requested tool calls made, median turn 35 s (max 42 s). The earlier 64K config ran 60 turns (4 sessions) with 0 corrupt and a 67 s median, so this is a smoke test, not a like-for-like comparison.
  • Lingarr-style EN->PL batch (16 subtitle lines as a JSON array, one request, translate.py): with thinking on both runs failed: 6000 completion tokens (~17K characters of reasoning) were spent before the JSON finished, 208 s at repeat penalty 1.1 (JSON cut off) and 202 s at 1.0 (empty content). With chat_template_kwargs.enable_thinking=false the same batch took 14 s (454 tokens) at 1.1 and 16 s (452 tokens) at 1.0, valid JSON with 16/16 lines both times. Repeat penalty 1.0 vs 1.1 made no useful difference; the Polish is mediocre either way (gender and case errors such as "cały noc", "skończyci", one English word left in at 1.0). Not compared against Gemma output yet. Consequence: Lingarr must run with thinking off (a 357-cue file needs ~9K output tokens before any reasoning, against nPredict 16384), through the LiteLLM alias local-fast (same llama-server, extra_body.chat_template_kwargs.enable_thinking=false); Lingarr uses it, everything else keeps local (thinking on). Gateway check (2026-10-29, Lingarr key): one-line EN->PL request took 0.6 s and 13 tokens on local-fast with no reasoning, against 15.9 s and 500 tokens of reasoning with empty content on local. A new alias needs local-fast in the LiteLLM team's models AND in the LiteLLMVirtualKey's own models list (both returned 403 key_model_access_denied until added).
  • Whole-file test (2026-10-29, Leanne S01E01, 330 cues, one batch, thinking off, repeat penalty 1.1): 271 s, 6661 prompt + 7340 completion tokens, finish normally, but unusable. Strict JSON was invalid (21 of 330 lines malformed: doubled braces, missing quotes, stray brackets); with a per-line regex recovery all 330 positions came back, yet 71 lines (21%) still had 2+ common English words, 11 were identical to the source, some cues held text from other cues (batch drift), and the Polish had case/gender errors. Reference: the existing Gemini 3.5 Flash translation of the same file. Note the earlier "Gemma baseline" idea did not work: Bazarr replaced the Lingarr/Gemma Fuller House files with OpenSubtitles downloads on 2026-10-27, so no Gemma subtitle survives. Decision: Lingarr uses the cheap alias (Gemini Flash Lite via OpenRouter); LFM3 is not used for subtitle translation. Untested: smaller batches (15-20 lines) might fix the drift and JSON errors.
  • Lingarr on cheap (2026-10-29, Leanne S01E01 rerun from Bazarr): Lingarr sends 40-line batches (not the whole file), 330 lines in 32 s, Bazarr history "translated using Lingarr" (score 288/360). All 330 cues kept their timestamps, 0 lines with leftover English, natural Polish (minor case/gender slips, 131 two-line cues joined into one line). One episode, judged by the maintainer's reading, cost not checked. Lingarr's log shows an unrelated "API settings are not configured correctly" error before each run that does not stop the translation.
  • Tuning step 3 (2026-10-29, PR #5993, live): KV cache V type q4_0 -> q8_0 (chart values server.kvCache.k/v, K stays q8_0). Speed unchanged (prefill 1681-1794 tok/s, generation 29.6 / 28.9 / 26.3 tok/s), corruption harness 0/10 with 6/6 tool calls (median turn 30 s, max 46 s), node MemAvailable 9.22 GB after load and 8.30 GB after the benchmarks. This only shows no regression: the harness does not measure answer quality.
  • Node MemAvailable: 9.47 GB right after load, settled at 7.98 GB after the benchmarks (about 1.5 GB for touched KV plus the filling prompt cache), measured under two sessions only. The pod ran 12 minutes without restarts. The checkpoint size did not show up in the server log.
  • LFM3 is a conv/attention hybrid. -np 1 stayed until the corruption harness showed 0 corrupt turns at more slots (met on 2026-10-29 at -np 2, see "Two slots" under LFM3-VL-2B): llama.cpp#29002 (co-batching corrupts hybrid state) is still open; #30666 (SWA checkpoint invalidation, in v0.8.0) fixed the single-sequence variant.
  • First run (2026-10-28): the v0.8.0 image took 27 min to pull (8.5 GB, 52 layers; ghcr's blob CDN served 0.2-1.1 MB/s to nv1 and to a second machine, while Hugging Face gave ~50 MB/s), then the model loaded in about 2 s. A short completion generated at 28-29 tok/s with ~250 tok/s prompt processing and the node CPU at 1%, so the GPU does the work; v0.8.0 logs no ggml_cuda_init line, so check CPU use, not the log. Node MemAvailable was 10.1 GB right after start (Gemma: 0.5-0.9 GB). Pre-pull a new image tag on nv1 before merging a bump, otherwise the node serves nothing while it downloads.
  • LFM3 thinks by default in its chat template. Until 2026-10-29 the server pinned enable_thinking: true on purpose; since then it pins false (owner decision: callers that want reasoning opt in per request with chat_template_kwargs.enable_thinking=true and a large max_tokens). The history below describes the thinking-on setup. Reasoning consumes max_tokens, so a 120-token request returned empty content (finish_reason=length); callers with small budgets need more tokens, or opt out per request with chat_template_kwargs.enable_thinking=false (verified: a 291-token story came back as normal content and stopped on its own).
  • Still unverified: Polish translation quality for Lingarr, the tool-call format, multi-slot corruption, and the steady-state memory numbers.
  • Rollback is a revert of the PR; ArgoCD recreates the pod (the single GPU unit cannot be shared by two pods, see "How GPU access works").

Back to LFM3-1.7B (2026-11-13)

llama-server serves the text-only LFM3-1.7B-Q8_0 again (alias lfm3-1.7b), at the two-slot settings below (-c 262144 -np 2; the model is trained to 262144, so each slot gets 131072). Owner decision after the AI model inventory: Liquid's card for LFM3-VL-2B says it is "not recommended for coding, multi-turn conversations, or complex reasoning", which is most local traffic (Honcho deriver and dialectic, Hermes background tasks), and local-think, the only image consumer, had 0 requests in the 7 days before. Hermes vision moved to main. LFM3-Omni-2B was looked at and rejected: it is a non-reasoning model (enable_thinking=True unsupported), and local-think needs reasoning.

  • The two-slot corruption gate (0 of 60) was measured on LFM3-VL-2B, which shares the LFM3 backbone; LFM3-1.7B itself was only measured at one slot (0 of 70). Re-run the corruption harness if multi-turn output looks wrong; the fallback is ctx 131072 / parallel 1.
  • Rollback to VL-2B: the file and projector details are in the comment above server.model in cluster/apps/ai/llm/server/values.yaml.

LFM3-VL-2B (2026-10-29 to 2026-11-13)

llama-server serves LFM3-VL-2B-Q8_0 (1.85 GB) plus mmproj-LFM3-VL-2B-Q8_0 (0.20 GB, chart value server.mmproj) from LiquidAI/LFM3-VL-2B-GGUF (PRs #6004, #6005). The served alias stayed lfm3-1.7b, so the LiteLLM local and local-fast models did not change; the 2026-11-13 switch back to LFM3-1.7B made the alias match the file again. The language model is the same size as the text-only 1.7B, so one server now covers text and images and there is no second pod for the one GPU unit. Rollback: revert #6005 (the LFM3-1.7B file stays on the PVC).

  • Load: /props reports vision: true, video: true, audio: false. Pod working set 3.3 GB, node MemAvailable 8.19 GB after the tests (8.39 GB just after load), no restarts.
  • Text roles (bench/roles.py, the six Hermes/Honcho-style tasks, same prompts as LFM3-1.7B): thinking off is fine for summary, extraction, triage and persona, and the title no longer leaks reasoning (7 tokens, "Ceph Cluster Health Warning Resolution"). The curate (keep/drop) judgment flipped to "drop" against 1.7B's "keep", so treat it as unreliable either way. Thinking on still returns empty content with small budgets, and at 2048 tokens the memory-extraction task produced nothing, so short tasks belong on local-fast.
  • Images (bench/vision.py, four synthetic Pillow images, 1-2 s with thinking off, 8-13 s with thinking on): receipt total and most expensive item correct; bar chart highest/lowest correct; four shapes and colors correct. A dashboard mock was wrong with thinking off (OSD and "12 pagins" garbled) and right with thinking on. Clean synthetic images only: real screenshots and photos, video and concurrent requests are untested.
  • Consumers: Hermes vision auxiliary task moved from main to local-think (thinking on; local has thinking off since #6007, and the local-fast alias was removed; a call with a small max_tokens can come back empty, in which case move it back or to local-fast). Image input goes through LiteLLM unchanged.
  • Gateway check (2026-10-29, Hermes key, after #6007): local returned a title in 1.3 s with no reasoning; local-think at 48 tokens came back empty (finish=length, reasoning only) and at 2048 tokens returned a title after 25 s with reasoning; an image of "22.53 EUR" was read correctly through both aliases (0.8 s on local-think, 0.6 s on local). So image input, the extra_body thinking switch and the Hermes key's local-think allow-list all work through LiteLLM. A real Hermes vision call has not been observed.
  • Two slots (2026-10-29, PR #6009, live): -c 262144 -np 2. llama-server logs n_slots = 2, n_ctx_slot = 128000 because the model's trained context is 128000, so each slot is a little under the 131072 asked for. Baseline at -np 1 with thinking off (direct_corruption.py, 2 sessions x 5 turns): 0/10 corrupt, 6/6 tool calls, median turn 13 s, longest 17 s (about 2.5x faster than the thinking-on baseline of 30-35 s). Two-slot run: 4 concurrent sessions x 3 rounds x 5 turns = 60 turns, 0 corrupt, 36/36 requested tool calls made, median turn 23 s, longest 29 s, while an image request went out every 20 s (12 requests, all 12 answered correctly; the script flagged 4 only because it expected "148.00" and the model wrote "148 EUR", 3-13 s each). Node MemAvailable 7.42 GB after the restart and 7.28 GB after the run, pod working set 4.2 GB, 0 restarts. Caveats: 60 turns and 12 images is a smoke-sized sample (LFM2.5's bug showed at 29% with Hermes traffic, so a rate that high would have appeared, a rare fault could still hide), and it was not run with prompts that fill the 128K window or two simultaneous image requests. llama.cpp#29002 is still open; the fix in #30666 is already in v0.8.0.
  • Reasoning budget (2026-10-29): llama-server takes thinking_budget_tokens per request (no server change; the server flag reasoningBudget stays -1). With thinking on and the usual small max_tokens (bench/budget.py, the six role tasks): no budget gave empty content on 5 of 6 tasks and a cut-off triage reply; budgets 64 and 128 gave valid content on 5 of 6 (title still empty at max_tokens 48, because budget plus answer must fit), 2-3x faster, reasoning about 270-500 characters instead of 1300-1900; 256 with max_tokens 1024 gave 6 of 6 in 6-14 s. The keep/drop judgment flipped between budgets (drop at 64, keep at 128 and 256), so it stays unreliable. Dashboard screenshot under thinking on (bench/vbudget.py): off was wrong ("degraded by 12 pagins"), no budget 13.6 s correct, 128 slipped ("12 pgs (petabytes)"), 256 correct in 9.2 s, 512 correct in 14.3 s. Result: local-think carries thinking_budget_tokens: 256 in its LiteLLM extra_body; callers may send their own. One sample per cell, one image, v0.8.0. Gateway check (Hermes key, after #6013): the same keep/drop prompt on local-think gave 1,108 reasoning characters (393 tokens, 15 s) with the alias default, 120 (134 tokens, 5 s) with an explicit thinking_budget_tokens: 32 and 4,587 (1,201 tokens, 38 s) with 1024, so LiteLLM forwards the field and a caller's value overrides the alias default.
  • Next: real Hermes vision prompts, d1-omni GGUF when published.

Gemma 4 26B-A4B at one slot (2026-10-15, replaced 2026-10-28)

Hermes and Honcho were archived on 2026-10-21 (.archive/cluster/ai/README.md); Lingarr is the only consumer of this server now. The Hermes figures below are kept as history and as the baseline for a restore.

llama-server serves gemma-4-26B-A4B-it-UD-Q2_K_XL at -c 65536 -np 1 --cache-ram 640 --ctx-checkpoints 2 --n-predict 2048 (alias gemma-4-26b-a4b), replacing LFM2.5-8B-A1B. Plan and gates: .archive/.plans/superpowers/plans/2026-10-13-llm-reliability-gemma4.md; harness: .archive/.plans/superpowers/plans/artifacts/2026-10-13-llm-reliability/hermes-corruption.py.

Why: LFM2.5's hybrid recurrent state is corrupted by llama.cpp under multi-sequence serving (ggml-org/llama.cpp#29002, still open on 2026-10-15): 29.0% of real Hermes turns (n=100). Gemma 4 has no recurrent state.

Measurement Result
Corrupt turns (multi-turn, tool-calling, 3 runs) 0 of 66 (95% upper bound ~4.5%); 0 of 10 more on the live service with 2 concurrent sessions
Required tool calls used all (6 of 6 live; 8 of 8 in run 1)
Quality probes (thinking off) 19/20 (misses reversing a word letter by letter)
Generation 17.8 tok/s in the test pod, 18.1 tok/s on the live Service (LFM2.5: ~25)
Prefill ~205-225 tok/s (LFM2.5: ~630)
Node MemAvailable, 640 MiB cache (production) 0.86 GB steady, 0.54 GB transient low after a fresh start (256 MiB: 0.64-0.8 GB); LFM2.5 had 1.7-3.8 GB. Owner accepted this on 2026-10-15

What costs what

  • One slot serializes everything. Sessions are served one LLM call at a time. With the 256 MiB cache a turn alone took ~11-39 s and with 2 sessions interleaved a no-tool turn took ~50 s, tool turns ~105-150 s, the first turn 230-260 s (prefix reuse is lost when sessions alternate). With the 640 MiB cache two sessions take 12-18 s for a no-tool turn, 22-42 s with tool calls and ~105-120 s for the first turn (see the cache bullet). With four profiles interleaved it is 90-260 s either way.
  • A full-toolset Hermes call is ~16K tokens, about 80 s of cold prefill. hermes chat -q ping took 2m31s and its auxiliary title generation timed out (single slot busy with the main call).
  • -np 2 does not fit. Two 64K slots need -c 131072: idle MemAvailable 0.55 GB (vs 1.38 GB fresh at -np 1), 0.29 GB within ~2 minutes of two concurrent sessions (watchdog abort), and talosctl/kubectl exec started timing out. Same config OOM-killed on 2026-09-28. The pod's own RSS (~10.9 GiB) looks fine because GPU allocations on this unified-memory board are not charged to the pod cgroup: watch node MemAvailable, not kubectl top.
  • --cache-ram 640 is what production runs (trial 2026-10-15). One saved prompt state is ~276 MiB, so 256 MiB rejects every entry ("exceeds cache size limit") and sessions that alternate re-prefill every call. 640 MiB holds two states, which is exactly two interleaved sessions: no-tool turns fell from 48-51 s to 12-18 s, tool turns from 103-153 s to 22-42 s, first turns from 232-258 s to 103-119 s (2 profiles x 2 rounds, 20 turns, 0 real corruption, 12/12 tool calls). Cost: node MemAvailable 0.86 GB steady with a 0.54 GB transient low. It does not help with 3 or more sessions: a first test with four interleaved profiles showed no latency change (cyclic access over two entries always misses) and a 0.48 GB dip. Budget for 4 concurrent profiles is not met by any cache size the node can afford (~1.1 GB).
  • A runaway generation blocks the only slot until the context fills (about an hour at 14 tok/s). --n-predict bounds it: a request with no max_tokens stops at exactly that many tokens with finish_reason=length. It was 2048 (about 2 minutes) and is 16384 since Lingarr started sending whole subtitle files as one batch (~25 output tokens per cue, 357 cues need ~9K tokens; at 2048 the JSON was cut off on every retry). A runaway now blocks the slot for up to about 19 minutes. Hermes may retry on length.

Harness lessons

  • The todo tool's state does not persist across --resumed Hermes processes; a prompt that asks to "read the list back" sends the model into a reconcile spiral. Test prompts must not depend on tool state across turns.
  • kubectl exec killed locally leaves the remote hermes process alive, still holding its connection to llama-server: wrap the remote command in timeout -s KILL.
  • The file and terminal toolsets route over SSH to a remote host in this cluster's Hermes config; the harness uses the local-only todo toolset.
  • Qwen3.6-35B-A3B was ruled out earlier the same day (see the section above).

_[VIP]: Virtual IP (Used for high-availability controlplanes) _[HA]: High Availability (often reduntant hardware/software) _[PVC]: k8s resource - Persistent Volume Claim _[PV]: k8s resource - Persistent Volume _[CNI]: k8s networking - Container Network Interface _[k8s]: Shortening of Kurbenetes _[CRD]: Custom Resource Definitions _[S3]: Simple Storage Service _[NFS]: Network File System _[DR]: Disaster Recovery