I'd been working on edge compute/physical AI and was starting to dogfood some of my work, I wanted to do a project with my 4-year-old daughter, something that would show her what kind of work dad does. So we mounted a Reachy Mini together. Then I wanted local AI for it, so my kids could talk to it. Given my work with local/edge AI, I came up with the following constraints:
- The conversational smarts need to be local, not cloud.
- Needs to be inside the robot, not an extra piece of gear that I hook up, and no boat load of private conversations sent for training
- It needs to converse in English and Romanian
- Pleasant personality, similar to something like Olaf from Frozen
- Kid friendly; I wanted them to talk to it, ask questions, learn words, hear stories.
- Feel personal; recognize people in the house.
My first plan was to use the 8 GB Jetson Orin Nano I already had. I figured I could run a small language model on it along with speech recognition and text-to-speech. Getting the Jetson inside Reachy was a project of its own. I designed a new base for the robot and had to work out where the carrier board and Wi-Fi would fit, how to route the cables, and how to get heat out through the base plate, heatsink and fan.
Then I found a 16 GB Orin NX on eBay. That gave me more room to try a model I actually wanted my kids to talk to. The camera pipeline, speech recognition, text-to-speech and motion control still had to share that memory with Gemma.

Reachy Mini with the Jetson built into the base.
On Reachy, Gemma 4 E4B is the one language model my kids talk to. I run it with my fork of TensorRT Edge-LLM, NVIDIA’s software for running language models on devices like the Jetson. It can tell them a story in Romanian, call a tool to turn its head, or look at a camera frame when they ask what it sees. I’d tried smaller models, but I liked talking to E4B more.
“Can you take a look?” Parakeet transcribes the question. DeepStream is already using the camera for detection and tracking, so Reachy can fetch a fresh frame when Gemma needs one. Gemma describes what it sees and Piper speaks the answer. Today Gemma gets the transcript and the image. For a month I also sent it the recording.
I still wanted E4B to run on the 8 GB Orin Nano I’d started with. I had a second use for it there: looking at camera footage to work out what had happened to a parked bike. I got Gemma running with vision on the Nano using the same TensorRT Edge-LLM fork that powers Reachy. Qwen did better on the bike footage, so that’s what I shipped for the camera project. But if you’ve got a Nano, you can try Gemma with images on the board you already own. The full robot runs on the 16 GB NX.
The number that matters
The NX shares its 16 GB between the CPU and GPU. Across 347 voice turns on my earlier full-stack build (before 0.12.0, INT8 per-layer embeddings, audio input on), the robot had 2,008 MB available at the median and 1,551 MB at its lowest. That was with speech, perception and motion running alongside Gemma.
Could I make the model small enough to fit, keep its accuracy at 4 bits, and get it answering fast enough for a conversation?
"Buy" vs build: where llama.cpp was
When I first wanted to run Gemma 4 E4B on a Jetson, llama.cpp was where I started; I didn't really want to go neck deep into the bouquet of TRT offerings. There was already a working example in the Reachy community: Aditya Sahu’s Reachy Mini Jetson Assistant uses llama.cpp with the smaller E2B for local voice and vision on an 8 GB Orin Nano. The build write-up shows how the whole stack fits. Again, I wanted E4B; it had more personality and better tool calls. I wanted its replies to flow while Reachy was still listening and watching. How close could I get by tuning llama.cpp?
I swept 22 llama.cpp configurations on the AGX Orin with the same prompts. The chart shows the six draft-length settings with the tool adapter on. Shortening the draft bought a few percent on spoken replies and cost considerably more on tool calls.

For the robot test, I put llama.cpp back on the same 16 GB NX in November. With the tool adapter enabled, it generated free text at 18.9 tok/s. My TensorRT Edge-LLM fork delivered 34.0–34.2 tok/s on the live robot. Both ran at 40 W, with different prompts and service loads. On the separate 395-case AGX routing test, llama.cpp with its drafter got 371 cases right and the fork got 374. The gap I felt on Reachy was how fast it could speak.
Embeddings and KV cache
The "E" in E4B stands for effective. E4B has 4.5B effective parameters, 8B with embeddings per the model card. Per-layer embeddings (PLE) give every decoder layer its own small embedding for every token "to maximize parameter efficiency in on-device deployments". The tables are large and only used for lookups.
A lookup table doesn't have to live where the compute lives, right? Each decode step only needs one row per token. That was my hypothesis, so I tried to see what I can do about it.
The FP16 token and per-layer embedding tables totaled 6.50 GiB. My INT8 version took 3.29 GiB, and on the short-context NX build decode stayed at 24.3 tok/s. I then kept the files on the host and gathered the rows each step needed into a small pinned buffer.
(I tried the obvious shortcut first: cudaHostRegister the files and let the GPU read them in place. Registering took about 4 seconds for the token table and 17 for the per-layer table, and it pinned every page, which defeats the point. Orin also doesn't report pageable memory access, so the GPU can't just read the mmap. Gathering rows into a staging buffer is less clever and works better.)
On my 8 GB Orin Nano, I tried the same E4B vision engine three ways. With both tables on the GPU, the server failed to load. Moving the per-layer table to the host got it running with 438 MiB available at the lowest sample. Moving the token table there too left 1,142 MiB. The camera and YOLO26n detector kept running while my script sent six-frame storyboards to Gemma for descriptions of events. Both working configurations finished all 20 warm requests, with a median of about 4.4 seconds per storyboard. So now we're on to something, it fits on the Nano nicely!
Back on Reachy’s 16 GB NX, I still use my host-mapped INT8 token table. For the per-layer embeddings I now use NVIDIA’s 0.12.0 implementation, which reads FP16 rows from disk into a GPU cache of about 252 MiB. NVIDIA also credited my INT8 per-layer embedding work in the 0.12.0 release notes.
Eighteen of E4B’s 42 layers read keys and values computed by earlier layers. The runtime still reserved memory for all 42. Sarah Kerkhove fixed that allocation, and I ported her change. At the robot’s production context size, the KV pool shrank from 2,352 to 1,344 MiB with identical outputs.
So now it's smaller, it fits on the Nano, but is it still as good?
Keeping the accuracy
For the Google published quantization-aware-trained (QAT) Gemma 4 checkpoints (gemma-4-E4B-it-qat-q4_0-unquantized) the weights are stored as 16-bit floats (BF16), but they were trained for 4 bits and sit on a symmetric 4-bit grid in groups of 32.
However, the runtime's 4-bit kernels only accepted group size 128. So it takes those trained weights and re-quantizes them onto a different, coarser grid with AWQ.. for no good reason, throws away what QAT bought. I was excited by this find.
The fix was two pieces in the fork (PR #7): group-32 INT4 kernels and an importer that reads each group's grid back out of the checkpoint and places the weights on it. On E2B, 99.92% of groups hold at most 16 equally spaced levels. Every group lands on the grid within BF16 rounding.
I did a test to see how it pans out on an AGX Orin, greedy, INT8 tables:
| MMLU-500 | AWQ group 128 (stock) | QAT group 32 | FP16-weight reference |
|---|---|---|---|
| E4B | 64.6% | 68.0% | 68.2% |
| E2B | 47.6% | 53.6% | 54.4% |
On this benchmark, the QAT import lands within a fraction of a point of the FP16-weight reference, where the stock recipe was 3.6 points (E4B) and 6.8 points (E2B) behind.
After size and accuracy, speed?
I could now run E4B with vision on the 8 GB Nano and the group-32 weights came within one question of FP16 on my 500-question test. But holding a conversations, especially with kids, sucks if the Reachy is slow to respond. I want looking for opportunities to speed up.
Turns out Gemma 4 ships a small multi-token-prediction (MTP) drafter. It proposes several tokens, the main model checks them all in one batched step and accepted ones don't have to be produced serially. Bandwidth on the NX is not like datacenter class GPUs, so generating less tokens serially is a big deal.
NVIDIA already had a Gemma MTP decoder, but it didn't work with my previos changes. The drafter picked tokens on the GPU, but my embedding lookup needed their IDs on the CPU. I copied the IDs back before looking up the rows. I also changed the export so the base model could skip unnecessary work on long prompts and still check every proposed token. The server also refused directories of prebuilt engines, so I changed my fork to load the pair of engines I’d already built.
I tested my 0.11.0-based build on the 16 GB NX with group-32 QAT, the orchestrator stopped and LoRA off. Switching on depth 4 linear drafting took decode from 25–26 to 54–65 tok/s. In a separate run through the live agent, both configurations passed 104 of 120 tool cases. Two cases flipped each way.
I kept MTP on after moving Reachy to 0.12.0. The robot now uses tree drafting with my patched version of NVIDIA’s Gemma decoder. With the rest of the robot running and the tool adapter enabled, I measured about 34 tok/s on free text.
Choosing the right tool
I showed Reachy a sketch and asked it to make up a story. To spot the rocket and the packing list, it first had to call look_and_describe, one of 26 tools. I used to spend a lot of the system prompt explaining when to use each one.
I trained a LoRA adapter on the robot’s routing decisions. Across 395 cases, the base model with my full prompt scored 82.0%. The adapter with a shorter prompt scored 92.4%. I removed 1,995 tokens of routing advice, taking the system text from 3,526 to 1,531 tokens before the same 26 tool declarations. Most of that prefix is cached on warm turns. The measured gains were better routing and a shorter prompt.
What the microphone added
My English-only speech recognizer sometimes turned Romanian into fluent, wrong English. Once, hearing the audio let it recover a weather question transcribed as “what’s the letter in Germany?”
Across 427 paired turns, audio produced 14 clear wins on tool decisions and the transcript alone produced 12. Audio added 130–700 ms per reply. By then Reachy had a multilingual recognizer, Parakeet, so on November 19 I turned Gemma’s audio input off.
Getting that comparison took a cache fix on 0.11.1: reusing the text before the first audio token cut time to first token from 5.315 to 1.075 seconds. NVIDIA shipped its own fix in 0.12.0.
Moving to TensorRT Edge-LLM 0.12.0
With 0.12.0 I could delete several pieces of my fork. Among them, NVIDIA shipped its own cached per-layer embeddings, prefix reuse for speculative requests carrying media and a fix for rendering tool-call arguments.
On the robot, 18 of 18 golden replies were identical before and after. On the AGX the tool choice matched on 394 or 395 of 395 cases, depending on the run. Still fork-only, hopefully upstream later: the host-mapped INT8 token table, KV sharing that skips the 18 shared layers, the group-32 QAT import and kernels, LoRA serving and the Gemma 4 tool and reasoning parsers.
Reachy now tells my kids stories in English and Romanian on the Jetson inside its base. On the live robot, Gemma generates about 34 tokens a second. The earlier build had about 2 GB available at the median across 347 voice turns, and the 4-bit model finished one question behind FP16 on my 500-question test. My favorite test was showing Reachy a sketch of a rocket. It spotted the packing list and asked if I wanted chapter two.
The code the robot runs is on the fork's rebase/v0.12.0 branch (commit b74aeb92), and the PRs are at github.com/mihai-chiorean/TensorRT-Edge-LLM. Published engines and their model cards are on Hugging Face: E2B and E4B. Those engines are from the earlier gemma4-jetson-v0.1 release. If you're building something that talks on a Jetson, I'd like to compare notes, please reach out.
Mihai Chiorean@mihaichioreanSeveral 3D prints later and some fitting and Jarvis is alive with its embodied brain. I showed it a doodle of a rocket and asked for a story. It looked, made one up, and asked if I wanted chapter two. 10 models in charge, Gemma 4 E4B as the brain. No cloud. https://t.co/QGLYPuQIJ4 pic.twitter.com/rIy8sfBtej
November 18, 2026 · View on X
Acknowledgements
Thanks to Aditya Sahu for connecting me with NVIDIA’s TensorRT Edge-LLM team, and to Ian Ballantyne (@IanBallantyne) for encouraging me to demo Reachy and write this up. I appreciate the TensorRT Edge-LLM team taking my feedback seriously and shipping their own implementations of several of those ideas in 0.12.0.
Thanks to Sarah Kerkhove for the KV-sharing allocation fix that freed 1,008 MiB on Reachy.
I did this work independently. I have no affiliation with Google, Google DeepMind or NVIDIA. None of them endorses this project, and any mistakes are mine.
Appendix: the full setup
Production on 2026-11-19, after the move to 0.12.0:
| Device | Jetson Orin NX 16 GB, 40 W power mode, JetPack 7.2.1 (L4T R39.2.1), CUDA 13.2, TensorRT 10.16.2 |
| Model | Gemma 4 E4B, Google's QAT Q4_0 checkpoint, imported as INT4 group-32 weights (I initially started with AWQ) |
| Embedding tables | INT8 token table mapped in host memory; FP16 per-layer (PLE) table read from disk through a 12,289-row GPU cache (about 252 MiB) |
| Speculative decoding | Gemma 4's multi-token-prediction (MTP) drafter, tree mode (top-2, 5 speculative tokens, verify 12) |
| Encoders | FP16 vision encoder engine; FP16 audio encoder engine, loaded but unused since audio input was turned off |
| Geometry | batch 1, 12,288 input tokens, 24,576 KV tokens, prefix reuse on |
| Runtime | TensorRT Edge-LLM fork: upstream 0.12.0 plus 62 fork commits (b74aeb92) |
| Tool adapter | rank-16 tool-routing LoRA ("adapter A") on every round that carries tools |
| Agent loop | ZeroClaw, 26 bounded typed tools (2 of them bounded web tools) |
How I measured
Embedding tables. The 24.3 tok/s comparison between FP16 and INT8 tables ran on the NX at 40 W, on a 3,072-token engine with no other inference load. I measured the cost of mapping the token table from its file later, on an AGX Orin with E4B and the 0.12.0-based build: plain decode was unchanged and MTP decode was 1.6–2.5% slower.
Audio prefix. On October 31, the 0.11.1 audio-prefix fix reused 5,760 of 6,568 prompt tokens on the NX with tree drafting and 21 tools. Greedy output was identical.
8 GB Nano vision run. Orin Nano Super at 25 W, JetPack 7.2.1, fork commit fd2eff11 on the 0.11.1 line. All three placements used the same group-32 INT4 engine, INT8 embedding tables, 4,096-token FP16 KV cache and 5,632 MiB container limit. MTP, LoRA and audio were off. I ran each placement once and sampled system MemAvailable every 200 ms. With both tables on the GPU, the per-layer allocation requested 2,688 MiB with 1,664 MiB free.
I paused the Qwen worker and replayed ten October camera events twice through the model server, one request at a time. Each request ran the vision encoder and a full prefill. Timing started at HTTP send. With both tables on the host, the median time to first token was 2.09 seconds and the median end-to-end time was 4.43 seconds. The p95 was 2.13 seconds to first token and 4.77 seconds to the end of the stream. I measured serving performance here. The accuracy comparison came from the earlier evaluation.
Robot memory. The 347 full-stack samples ran November 1–12. Available memory was 1,620 MB at the fifth percentile and 2,803 MB at the maximum. I observed about 140 MB of swap in use. A separate November 22 spot check on 0.12.0 showed 1,746 MB available and 932 MB of swap after almost four days, with no out-of-memory kills.