Running a Small Language Model on an Xbox Series S
The published xllama CSV reports a 101.6 tok/s median decode rate for LFM2.5-350M across three Xbox Series S CPU runs with six threads.
On this page
Benchmark source. I link the raw catalogue CSV at a fixed commit. The CPU figure in the summary is a median, not a guarantee for other devices or configurations.
This report describes the May 2026 port. Later corrections appear in the dated update sections below; the published GPU report records the October measurements.
Why this matters
The Xbox Series S hardware specification lists an eight-core Zen 2 CPU, 10 GB of GDDR6 memory, and an RDNA 2 GPU. I used a console in Developer Mode to test local inference without a cloud service. I make no claim that this platform was unexplored.
The short version: it works. In runs from May 2026, the console ran SmolLM2-360M-Instruct (INT4) at 71.4 tokens per second of decode on four CPU threads, fully on-device, through ONNX Runtime GenAI. The longer version is more useful, because the interesting part of this port is not the demo. It is the set of constraints I hit, and which of them I have not solved. This article leads with the open problems on purpose. I would rather publish the boundary of what I know than a screenshot that hides it.
I maintain the project, xllama, in the open. Every number below comes from its benchmark logs and constraint notes, not from memory.
What actually runs today
The working configuration is deliberately boring:
- Model: SmolLM2-360M-Instruct, INT4, 403 MB on disk, context window 2048, ChatML prompt template.
- Runtime: ONNX Runtime GenAI on the CPU execution provider (Zen 2).
- Package: a self-contained UWP MSIX with the model bundled inside it, sideloaded via the Xbox Device Portal.
The decode loop is the standard ORT GenAI token pump, with an abort flag so the gamepad B button can cancel a generation mid-stream:
while (!OgaGenerator_IsDone (gen.get ())) {
if (params.abort_flag && params.abort_flag->load ()) break ;
oga_check (OgaGenerator_GenerateNextToken (gen.get ()), "GenerateNextToken" );
const int32_t * next = nullptr ;
size_t n = 0 ;
oga_check (OgaGenerator_GetNextTokens (gen.get (), &next, &n), "GetNextTokens" );
for (size_t i = 0 ; i < n; ++i) {
const char * piece = nullptr ;
oga_check (OgaTokenizerStreamDecode (stream.get (), next[i], &piece), "decode" );
if (piece && *piece && params.on_token) params.on_token (piece);
}
}
Measured on the console (ORT GenAI 0.13.2, INT4, n_ctx 2048):
| Threads | Decode tok/s | Peak working set | | ------- | ------------ | ---------------- | | auto | 66.9 | 704 MB | | 4 | 71.4 | 771 MB | | 6 | 68.0 | 772 MB | | 8 | 28.2 | 771 MB |
That is the baseline. Everything below is what stands between this and a result I would actually call finished.
The open problems
1. I cannot prove the GPU is doing anything
Superseded, October 2026. I keep this May paragraph for the record; only the tense has changed. The silent CPU fallback was real and is now fixed: see the October update at the top.
This is the one that bothered me most in May. The whole reason to pick a console over a Raspberry Pi is the RDNA 2 GPU, and at the time I could not confirm I was using it.
SmolLM2-360M loads under the DirectML execution provider without crashing, once I disable the CPU memory arena and memory pattern planner:
"session_options" : {
"provider_options" : [
{ "dml" : { "enable_cpu_mem_arena" : "0" , "enable_mem_pattern" : "0" } }
]
}
It then produces output at about 71.7 tok/s, which is suspiciously close to the CPU baseline. That number is the problem, not the reassurance. ORT can silently fall back to CPU for operators the GPU path does not support, and a result indistinguishable from the CPU number is exactly what a silent fallback looks like. To tell the two apart I need a D3D profiler (PIX) or GPU hardware counters, and I have no profiling instrumentation on the console yet. Until I do, the honest finding is narrow: the 360M model fits the GPU memory pool, but whether it executes on the GPU is unconfirmed.
2. The GPU memory pool is small, and that caps everything
Larger models do not get this far. When OgaCreateModel initializes the DirectML provider for a model whose weights exceed the available GPU pool, the allocator returns null and the next use of that pointer faults:
OgaCreateModel failed: SEH 0xC0000005 (STATUS_ACCESS_VIOLATION)
By watching where that boundary falls, the usable GPU-accessible pool for a UWP app on the Series S looks like roughly 768 MB. Phi-3.5-mini INT4 (~2.2 GB) reliably OOMs; the 360M model (403 MB) does not. I want to be careful here: that 768 MB figure is inference from observed out-of-memory behavior in my own tests, not a documented Xbox platform specification. I do not treat it as an authoritative claim about the console's internal memory layout. But as an engineering ceiling it is consistent, and it means any model near or above 1 GB is off the table for the GPU path regardless of whether problem 1 is ever solved.
3. The disk budget is tighter than the RAM budget
Before a model can OOM, it has to fit on disk. A freshly activated Dev Mode partition gives roughly 2.2 to 2.5 GB of free space, and deployment briefly needs about twice the package size because the MSIX is staged before it installs. In practice that means an on-disk model budget under 600 MB if I want to bundle it in the package, and a deploy that fails with 0x80070070 (disk full) if I push past it. The 403 MB model fits with room to spare. A 1.4 GB model does not, even though the console has 10 GB of RAM. Disk, not memory, is the first wall.
4. The in-app download path is written but unproven
The way out of the disk budget is to stop bundling the model and fetch it at first launch. I implemented that: a ModelDownloader that streams from a Hugging Face endpoint in chunks via HttpClient, with a resolution chain of LocalState, then the installed package, then a download fallback. The code exists and compiles. It has never actually run on the console, because the build that ships always finds the bundled model first and never reaches the fallback. So whether plain HTTPS to Hugging Face works from inside the Xbox AppContainer is still an open question. To test it I have to ship a build with no bundled model on purpose, which I have not done.
5. In May, more threads did not help
The thread table above has one sharp drop, from a single eight-thread run. At four threads, decode measured 71.4 tok/s. In one May 2026 run at eight threads decode fell to 28.2 tok/s, while another eight-thread run measured 66.9. I have no sourced cause for that drop. The app ships with six threads. The usual "use all the cores" instinct is not a safe default on this hardware.
6. It only runs in Dev Mode
This build requires Developer Mode; it is not distributed for Retail Mode. Microsoft documents activating Developer Mode on consoles bought through retail channels. I do not quote an activation price here. That is fine for a research baseline and a reproducible build, and it is a hard limit on calling this something a normal user could install. I am not going to pretend otherwise.
The scars already paid
Two problems are solved, but only after they cost me real time, so they are worth recording.
The first was a crash inside OgaCreateModel on a model that loaded fine on Linux. ORT 1.24.4 calls std::filesystem::weakly_canonical() to validate the path of an external .onnx.data file, and on Windows that walks the path from the drive root upward. One of the intermediate segments is the Xbox AppContainer's user-manager directory, which the sandbox cannot read, so the walk hits ACCESS_DENIED and throws. The fix is to merge the external data into a single self-contained model.onnx at build time, so the validation path is never taken. A small Python script in CI does the merge.
The second was the XAML compiler crashing (WMC9999) during the build of a C++/WinRT project on a current Windows SDK. Rather than fight the markup compiler, I build the entire UI programmatically in C++ with Windows.UI.Xaml.Controls. No .xaml files, no metadata provider, no compiler pass to crash.
What it would take to close each
To stop hand-waving about the GPU, I need on-device D3D profiling so I can confirm kernel execution and measure GPU tok/s against the CPU baseline for the same model and quantization. To make the GPU path worth confirming, I want a sub-400 MB INT4 candidate such as Qwen2.5-0.5B that comfortably fits the pool. To retire the disk budget as the binding constraint, I need to validate that Hugging Face download from the AppContainer actually works, then drop the bundled model from the package. None of these are research questions. They are instrumentation and legwork, which is usually where these projects actually live.
Update — July 2026
Two weeks after publishing, three of the six open problems are closed. Two of the answers falsify numbers above, so they belong here rather than in a changelog nobody reads.
Problem 1 is solved, and the suspicion was justified. The ~71.7 tok/s DirectML result was a silent CPU fallback. The GPU path was never initializing: ONNX Runtime GenAI's device factory collided with the D3D12 device the XAML compositor creates when the window activates (error 887A0036). Running the benchmark in a headless, D3D12-clean process fixed that, and the underlying fix was contributed upstream and validated on the console (onnxruntime-genai#2280). With the GPU actually executing, the verdict turns out to be per-workload, not binary. For chat decode the CPU still wins at this model scale: 68.0 tok/s on CPU INT4 against 46.8 on GPU fp16, and only 8.8 on GPU INT4, because DirectML implements the low-bit matmul as dequantize-to-fp16 plus a full GEMM, so INT4 moves more bandwidth than fp16, not less. But prefill inverts at scale: at roughly 1,000 prompt tokens the GPU does 354 tok/s against 198 on CPU, cutting time to first token from 5.3 s to 3.0 s. Image generation runs on the GPU: SD-Turbo fp16 generates a 512×512 image in 6.9 s on DirectML. I route each conversation to the CPU or GPU based on its workload: CPU for decode-heavy chat, GPU for long-prompt prefill and image generation. Correction (October 2026): the GPU figures above came from a DirectML graph that was later found to produce numerically wrong output (xllama #91); the CPU still wins decode on the fixed graph. The 354 vs 198 prefill pair was also interpolated between two prompt lengths, so the prefill routing above no longer holds: with the fixed graph the GPU only shortens the wait for the first reply on a long prompt.
Problem 2's number was wrong. With the GPU path actually initializing, the memory budget could be measured instead of inferred from crash boundaries: the reported budget is 3,801 MB, not roughly 768 MB. I flagged that figure as an inference from observed OOM behavior rather than a documented specification, and the hedge earned its keep — the inference did not survive contact with a working initialization path. The corrected conclusion is the one problem 3 already pointed to: disk, not GPU memory, is the binding constraint.
Problem 4 shipped. I removed the bundled model from the MSIX entirely — it is about 19 MB — and on first launch the app downloads SmolLM2-360M (~417 MB) from a versioned GitHub Release catalogue, with a progress bar. HTTPS from inside the Xbox AppContainer works. The open question closed the boring way, by shipping the build that forces the code path.
The candidates moved too. These updated numbers are from ORT GenAI 0.14.1, where the same model on CPU INT4 measures 66.3 tok/s (the tables above were measured on 0.13.2). Qwen2.5-0.5B, the candidate I named, turned out to weigh ~822 MB in its INT4 ONNX build — the 151k-token vocabulary embedding dominates — and is off the table. Instead, v1.1.0 compiles both ONNX Runtime GenAI and llama.cpp into one binary and dispatches per model, so I now publish GGUF builds of current-generation small models (Qwen3.5-0.8B at 508 MB, LFM2.5-350M at 219 MB) that the ORT model builder cannot produce. Their on-console benchmarks are pending, so the default model has not changed.
Problems 5 and 6 stand: thread count still matters, and it still takes Dev Mode.
Update — August 2026
One conclusion in this report is now false, and it is the one the July update endorsed.
Disk is no longer the binding constraint. Problem 3 called storage the first wall, and the July update promoted that to the corrected conclusion. Both were right about a freshly activated Dev Mode partition, which is what I had measured. Both stopped being right on 8 July 2026, when I raised the Dev Mode allocation to 90 GB through Dev Home under Manage Dev Storage. The 2.2 to 2.5 GB figure now describes only the default state of a clean activation. What bounds model sizing is the GPU budget and RAM, which is what problem 2 was about all along. One disk limit survives: a reported 2 GB per-file ceiling in Dev Mode, which matters for merged ONNX files above that size.
The decode numbers here are a snapshot, and better ones exist. Every figure above is correct for the configuration it names, which is why the text is unchanged. But the tables were measured on ORT GenAI 0.13.2 at four threads, and the shipping configuration has moved since: six threads, and a repack path that was compiled but never enabled turned out to be costing a large share of prompt throughput. Current figures live in my generated benchmark summary, built from committed CSVs, where each number carries the command that reproduces it and CI fails when a published figure drifts from its evidence. Read them there rather than trusting a date-stamped paragraph in a blog post.
I outgrew this report. In June it was one 360M model through ONNX Runtime GenAI. I now maintain a catalogue from 230M to 3.8B across both runtimes, generate images on the console, and ship as a versioned package with a ten-gate console validation suite. The default chat model, LFM2.5-350M (QAD Q4_0), decodes at 101.6 tokens per second on the CPU with llama.cpp and six threads: the median of three runs, range 101.5–101.8. The source is 2026-09-30-catalogue-gates.csv, summarized in the same generated benchmark summary. That is a different article rather than a correction to this one.
Update — October 2026: reported GPU results
The GPU report at the cited revision records a d3d12 path for Qwen2.5-Coder-3B and LFM2.5-1.2B. Its Flash Attention comparison reports Coder-3B decode at 14.04 tok/s on CPU and 26.64 tok/s on d3d12 (1.90×). These are the report’s figures for that configuration, not a new measurement or a guarantee about the latest default.
The corresponding CSV retains per-run observations, including 1851 MB GPU allocation for the Coder-3B d3d12 runs versus 0 for CPU. Allocation and timing are indirect evidence; they do not establish which kernels ran where. I do not provide a GPU profiler capture here, and I do not infer the meaning of the console’s GPU engine 5 counter from its label.
The report also records console selftests against ggml dequantizers. Those checks concern the tested operations, not end-to-end model quality. The earlier DirectML fallback discussion refers to onnxruntime-genai#2280, a separate execution path.
FAQ
How fast is it?
In the original snapshot, SmolLM2-360M reached 71.4 tokens per second of decode on the CPU execution provider at four threads, with a peak working set around 771 MB (measured on ORT GenAI 0.13.2; on 0.14.1 the same model measures 66.3 tok/s). In one May 2026 run at eight threads decode fell to 28.2 tok/s, while another eight-thread run measured 66.9; the app ships with six threads. A July 2026 run of the shipped six-thread build measured 74.8 tok/s (median of three runs, range 74.4–75.0); the 68.0 in the table is the May six-thread run. Current performance figures are in my generated benchmark summary.
Does the language model run on the Xbox GPU?
Yes, for two models, on indirect evidence. On the GPU path the process holds 1851 MB of GPU memory against 0 on the CPU, decode is faster, and the console selftest passes 12 of 12 cases; there is no GPU profiler capture, because PIX is not available in Dev Mode. Since 2 October, xllama runs Qwen2.5-Coder-3B and LFM2.5-1.2B on its own d3d12 GPU backend by default: Coder-3B decode goes from 14.04 to 26.64 tok/s (1.90×) with Flash Attention on; the first run without it gave 1.59×. The silent DirectML fallback to the CPU that I saw in May was real, and it is fixed (onnxruntime-genai#2280).
Can a normal user install this on their Xbox?
No. This build requires Xbox Developer Mode and has no Retail Mode distribution path. A retail-purchased console can be activated for Developer Mode under Microsoft’s documented process. This is a reproducible research baseline, not a consumer application.
Why such a small model?
Disk, at the time. A freshly activated Dev Mode partition has only a few gigabytes free and deployment needs roughly twice the package size during install, so a ~400 MB INT4 model fit with room to spare while a multi-gigabyte one failed the disk check before it ever loaded. The GPU memory pool turned out to be far larger than my early estimate (a measured 3,801 MB, not ~768 MB). That disk ceiling was lifted in July 2026 by raising the Dev Mode storage allocation, and model sizing is now bound by the GPU budget and RAM. See the August 2026 update.
The full build, benchmark logs, and constraint notes are in the xllama repository. "Xbox" is a Microsoft trademark; this is an independent research project and is not affiliated with Microsoft. If you have run inference on console hardware and have profiling data I do not, I would like to compare notes.
Related articles
State as the API: Three LangGraph Designs
I compare three LangGraph state designs: flat fields, nested models, and explicit reducers, with routing and replay constraints.
Jan 8, 202511 min read#LangGraph#LLM#Multi-Agent#OrchestrationSix Function-Calling Patterns I Evaluate
I examine six tool-interface patterns with illustrative code: schemas, typed results, concurrency, loop limits, routing, and tool choice.
Nov 25, 202413 min read#LLM#Function Calling#OpenAI#ProductionAround Three Agents, I Start Considering Message-Passing
I compare shared fields and append-only messages, with explicit ownership, inbox tracking and supervisor routing.
Dec 10, 202414 min read#LangChain#Agents#Multi-Agent#Architecture