Skip to content
项目

关于

Local language models on Xbox Series X|S consoles in Developer Mode: llama.cpp (GGUF) on CPU and a D3D12 GPU backend, and an optional OpenAI- and Ollama-compatible LAN API (off by default). Independent project, not affiliated with or endorsed by Microsoft or Ollama Inc.

人工智能与机器学习

这些数字如何统计

可以做什么

  • Chat — multi-turn pad UI with the default LFM2.5-350M model, plus other catalogue models you download (which one to choose).
  • Image generation — SD-Turbo on the console. Powered by Stability AI.
  • Benchmarks — headless tok/s and platform probes on the console, with every figure traceable to a committed run. See the charts below, docs/benchmarks.md and bench/README.md.
  • Experimental fine-tuning — on-device last-block fine-tune, host PEFT on a workstation, and serving a merged GGUF. The in-app Train on my feedback flow is not yet walked end to end on a console.

实测星标增长

24小时
+1
7天
+2
15天
+8
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

xllama

xllama is a free, MIT-licensed open-source project for running local language models on Xbox Series X|S in Developer Mode. The main way to use it today is an app you sideload onto the console: chat, an OpenAI-compatible API on your local network, and image generation. Inference runs on the console. Once a model is on the console, the app only goes online to download a model you don't have yet. No model ships in the app: the first model you choose needs an internet connection to download.

build-uwp build-linux CodeQL Release License: MIT

DOI

Supported on Series S and Series X. The project's own figures are measured on a Series S; the Series X figures below were measured by Joshua Henne (Eidon Labs Inc.), xllama contributor, and are labelled as such (details). On a Series S, the recommended model LFM2.5-350M generates text at 98.3 tok/s (decode speed, llama.cpp on CPU, 6 threads, median of 3 runs; benchmarks).

On a Series X, measured by Joshua Henne (Eidon Labs Inc.), xllama contributor (xllama 1.7.0.1495, discussion #434; raw runs in series-x-end-to-end-2026-11-13.csv), not by the project:

  • LFM2.5-350M, about 95.7 tok/s over the local-network API end to end, averaged over ten 1024-token generations, after the app was set as a Game. Before that change, batches averaged about 35.4 to 38.8 tok/s.
  • LFM2.5-1.2B-Instruct (QAD Q4_0, CPU forced), about 37.1 tok/s over the local-network API end to end, the average of three runs.

xllama is an independent project, not affiliated with or endorsed by Microsoft.

xllama is MIT-licensed, so a studio could reuse its inference code in its own game. That path isn't built or tested: today xllama runs on the console as a Developer Mode app.

Before you sideload

  • Developer Mode only. You activate it with your own Partner Center developer account and accept Microsoft's Developer Mode terms. To play retail games or use retail apps, switch the console back to Retail Mode.
  • Sideload only from this repository's Releases and check the SHA-256. The package is signed with a test certificate.
  • The LAN API is off by default and has no authentication. Turn it on only on a network you trust.
  • Models come from third parties, each under its own licence, and are downloaded separately.
  • Full notes: docs/before-you-sideload.md.

Quick start

You only need a terminal for the checksum step (full guide). Read before you sideload first.

  1. Activate Developer Mode with Microsoft's Xbox Dev Mode app from the Microsoft Store and your own Partner Center app developer account. Xbox Dev Mode is the Store app; Developer Mode is the console mode you switch into. After the switch, the console opens Dev Home.
  2. In Dev Home, open the Home tab → Remote Access → Remote Access Settings, enable Xbox Device Portal, set a username and password under Authentication, then open the URL listed under Remote Access in a browser (it has the form https://<console-ip>:11443). Accept the console's self-signed TLS certificate on first visit.
  3. From the latest app release, download SHA256SUMS and every file it names, into the same folder. On v1.12.0.0 that is xllama_1.12.0.2849_x64.msix, xllama_1.12.0.2849_x64.msix.spdx.json, xllama-test.cer, Microsoft.VCLibs.x64.14.00.appx and release-validation.json. Later tags may add or rename files; trust the SHA256SUMS on the release you open.
  4. Verify them: sha256sum -c SHA256SUMS (macOS: shasum -a 256 -c SHA256SUMS). Every line must print OK. If a named file is missing, the check fails.
  5. In Device Portal → My games & apps, add the verified MSIX and, when the dialog asks, Microsoft.VCLibs.x64.14.00.appx as its framework dependency. Offer xllama-test.cer if the dialog has a certificate field (see the full guide if the package is refused as untrusted).
  6. Launch xllama from Dev Home. On first launch a Before you start dialog appears; after you accept it, Choose a model lists the catalogue with sizes and measured speeds, with LFM2.5-350M (~219 MB) preselected as recommended. The package contains no model, and nothing downloads until you pick one. After sideload, check App type on the tile (View details) and set it to Game (why). When you finish, return to Dev Home.

The browser steps follow Microsoft's documentation but have not yet been walked end to end on a console. If something doesn't match, open an issue.

Other ways in:

  • Command-line sideload: ./scripts/deploy.sh, see sideload from the command line.

  • Build the app from source: docs/crossbuild-console.md.

  • Linux CLI (no console needed):

    git submodule update --init --recursive && ./scripts/apply-llama-patches.sh
    cmake --preset linux-release && cmake --build build/linux-release -j
    ./build/linux-release/bin/xllama-cli -m <model.gguf> -p "hi"   # --help lists the options
    

Demo

xllama chat view in Developer Mode, ready for a prompt, with lfm25-350m in the header and the LAN API panel visible (address redacted).

The current app on the console, Developer Mode. The LAN API address is redacted.

Older recordings and their capture notes: docs/screenshots.

What you can do

  • Chat — multi-turn pad UI with the default LFM2.5-350M model, plus other catalogue models you download (which one to choose).
  • LAN API — OpenAI-compatible and native Ollama chat (/api/chat, /api/generate, /api/ps) on your local network, with per-request reasoning control, embeddings, image generation, and a catalogue you can list and download from (/api/catalog, /api/pull). Tool calling on /v1/chat/completions (streamed tool_calls too) and /api/chat, on GGUF models whose chat template supports tools (/v1/models lists capabilities.tools); your client runs the tools, xllama does not. One request at a time, and a 2048-token context on most models. Off by default and has no authentication. See docs/api-endpoint.md.
  • Image generation — SD-Turbo on the console. Powered by Stability AI.
  • Benchmarks — headless tok/s and platform probes on the console, with every figure traceable to a committed run. See the charts below, docs/benchmarks.md and bench/README.md.
  • Experimental fine-tuning — on-device last-block fine-tune, host PEFT on a workstation, and serving a merged GGUF. The in-app Train on my feedback flow is not yet walked end to end on a console.

Models and performance (Series S)

Every figure below is generated from committed runs in bench/results/ by scripts/generate-readme-charts.py; CI fails if the README falls out of date. Hugging Face collection: xllama: GGUF models run on Xbox Series S.

Bar chart: median decode and prefill tokens per second for each catalogue model on an Xbox Series S, coloured by backend, with the decode min-max of the recorded repeats.Scatter chart: median decode tokens per second against peak RAM in MiB for each catalogue model on an Xbox Series S.Chart: peak working set in MiB against context length for the committed context sweeps on an Xbox Series S, with the app memory limit from the run notes and one refused load marked.

Each chart states its source files, run dates and builds; not a speed claim beyond these runs. LFM2.5-1.2B is the default GPU model on llama.cpp d3d12. The v1.12.0 remeasure run notes do not state whether the app was designated as a Game.

Model Use Weights Download Context Decode tok/s Peak RAM MiB Tool calls on device Measured
LFM2.5 230M lfm25-230m chat (floor) QAD GGUF Q4_0 149 MB 2048 (app default) 127.0 (llama.cpp CPU) 234 not measured 2026-11-30
LFM2.5 350M lfm25-350m chat QAD GGUF Q4_0 219 MB 2048 (app default) 98.3 (llama.cpp CPU) 311 not measured 2026-11-30
Gemma 3 270M gemma3-270m chat GGUF Q4_K_M 253 MB 2048 (app default) 79.9 (llama.cpp CPU) 366 not measured 2026-10-11
SmolLM2 360M smollm2-360m-cpu-int4 chat ONNX int4 421 MB set by the ONNX export 71.9 (ONNX CPU) 524 not measured 2026-12-02
Qwen3.5 0.8B qwen35-0.8b chat GGUF Q4_K_M 533 MB 2048 (app default) 34.3 (llama.cpp CPU) 715 not measured 2026-11-15
LFM2.5 1.2B Instruct lfm25-1.2b-instruct chat (balanced) QAD GGUF Q4_0 696 MB 2048 (app default) 74.4 (llama.cpp d3d12 GPU)
39.8 (llama.cpp CPU)
861 (llama.cpp d3d12 GPU)
786 (llama.cpp CPU)
probed (run) 2026-11-30
2026-11-30
SmolLM2 360M smollm2-360m-dml-fp16-v2 chat ONNX fp16 729 MB set by the ONNX export 41.2 (ONNX DirectML GPU) 1206 not measured 2026-10-11
Qwen3 1.7B qwen3-1.7b chat GGUF Q4_K_M 1107 MB 2048 (app default) 21.8 (llama.cpp CPU) 1398 not measured 2026-07-27
SmolLM2 1.7B smollm2-1.7b-cpu-int4 chat ONNX int4 1478 MB set by the ONNX export 21.0 (ONNX CPU) 2324 not measured 2026-11-15
Llama 3.2 3B llama32-3b chat (1.54 GB, advanced) GGUF Q3_K_S 1543 MB 2048 (app default) 14.1 (llama.cpp CPU) 1827 not measured 2026-10-11
LFM2 2.6B lfm2-2.6b chat (quality) GGUF Q4_K_M 1564 MB 2048 (app default) 18.1 (llama.cpp CPU) 1629 not measured 2026-11-30
Granite 4.2 3B ¹ granite42-3b chat GGUF Q4_K_M 2244 MB 4096 12.2 (llama.cpp CPU) 2567 not measured 2026-12-01
Gemma 4 E2B gemma4-e2b chat (2.45 GB, advanced) GGUF Q3_K_S 2446 MB 2048 (app default) 15.3 (llama.cpp CPU) 2731 not measured 2026-11-15
Granite 4.0 H Tiny ¹ granite40-h-tiny chat (3.06 GB, experimental) GGUF Q3_K_S 3062 MB 2048 21.7 (llama.cpp CPU) 3100 not measured 2026-11-24
LFM2.5 8B-A1B lfm25-8b-a1b chat (3.57 GB, experimental) GGUF UD-IQ3_S 3571 MB 2048 (app default) 14.5 (llama.cpp CPU) 3553 probed (run) 2026-07-30
Qwen2.5 Coder 0.5B qwen25-coder-0.5b coding (fast) GGUF Q4_K_M 398 MB 4096 62.4 (llama.cpp CPU) 533 not measured 2026-07-27
Qwen2.5 Coder 1.5B qwen25-coder-1.5b coding GGUF Q4_K_M 986 MB 4096 26.1 (llama.cpp CPU) 1176 not measured 2026-11-30
LFM3 1.7B ¹ lfm3-1.7b thinking QAD GGUF Q4_0 1050 MB 4096 not measured not measured not measured not measured

Xbox Series S, Developer Mode. Throughput and memory: the rows bench/benchmark-summary.json selects, median of the recorded repeats; dates link to the CSV. Different dates, builds and bench protocols are not a paired comparison. Not a speed claim beyond these runs. Context: the catalogue value the app opens; every chat GGUF is also capped at its trained context. Tool calls: every GGUF whose chat template renders tools reports capabilities.tools in /v1/models; "probed" means a committed on-device tool-call run exists. Embedding, image and speech models: model-matrix.md.

¹ In the catalogue on main, not in the latest release package yet.

Full matrix with prefill and long-prompt columns: docs/benchmarks.md. Which model to pick: model tiers.

LAN API

Off by default and has no authentication. Turn it on only on a network you trust. Protocol: docs/api-endpoint.md.

Turn it on in Settings → LAN API (default port 11434); the panel on the main screen shows the base URL. The endpoint answers only while xllama is in the foreground on the console (why).

curl -s http://<console-ip>:11434/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"lfm25-350m","messages":[{"role":"user","content":"hi"}]}'
A terminal on the local network calling the xllama LAN API with curl and receiving a reply. The host is passed in $XLR_BASE_URL, not typed.

Each chat model carries its own sampling defaults (listed per model in /v1/models), so a request sets only what it wants to change, for that request only. The layers and an example are in Discovery.

How it works

Shared C++17 core, WinRT-free and host-testable, with two front ends (Linux CLI and the UWP app). Two runtimes, dispatched per model: GGUF through llama.cpp, on the CPU or on xllama's own d3d12 GPU backend (GGUF GPU decode); some catalogue models in ONNX format, on DirectML or the CPU. One resident session in the process — two models do not fit the console budget. UWP/AppContainer limits apply (no mmap, no dlopen, no registry, no arbitrary paths); measured ceilings live in the constraints doc.

Architecture · Design decisions · UWP constraints · Reuse in a game

Documentation

Group Topic Docs
Use Sideload a release install-release.md
Use Before you sideload before-you-sideload.md
Use Using the app using-the-app.md
Use LAN API api-endpoint.md
Use Choose a model model tiers
Use Model catalogue model-matrix.md
Use Privacy and security privacy.md · SECURITY.md
Use Release notes v1.12.0 · CHANGELOG.md
Build Architecture architecture.md
Build Build from source crossbuild-console.md
Build Platform limits uwp-constraints.md
Research Benchmarks benchmarks.md
Research Positioning positioning.md
Research Roadmap ROADMAP.md
Research Reuse in a game reuse-in-a-game.md
Research Research package paper/ · technical-report.md

Index: docs/README.md

Upstream contributions

The fixes xllama sent to the ONNX Runtime projects, and the issues it reported, are listed in docs/upstream.md.

Contributing

UWP packaging, compact models, benchmark methodology, and non-Windows developer documentation are the usual places to help. See CONTRIBUTING.md.

Support

Sponsor

xllama is free and MIT-licensed. If it's useful to you, you can support its development on GitHub Sponsors — funds go to development time, Xbox Developer Mode costs, and model/storage budgets for testing.

Citation

The versioned research report is archived on Zenodo. The concept DOI 10.5281/zenodo.22118437 always resolves to the latest version; to cite 1.0.6 specifically:

@software{xllama_research_1_0,
  author  = {Mazza, Gianluca},
  title   = {Consumer Game Consoles as Local AI Compute},
  version = {1.0.6},
  doi     = {10.5281/zenodo.22119126},
  url     = {https://github.com/gianlucamazza/xllama}
}

The DOI badge and version DOI are synchronized from release.toml.

Acknowledgements, licence and trademarks

  • llama.cpp — Georgi Gerganov
  • ONNX Runtime GenAI — Microsoft
  • The Xbox Developer Mode community
  • Andrei David's llama2.c port to Xbox 360

xllama is MIT-licensed; see LICENSE. The llama.cpp submodule is under MIT and xllama applies its own UWP patches to it at build time (patches/).

The onnxruntime.dll and onnxruntime-genai.dll that xllama ships are patched by xllama and are not official builds. They are built from the open-source ONNX Runtime (1.24.4) and ONNX Runtime GenAI (0.14.1) sources with the patches in patches/, and pinned by SHA-256 in vendor/. Both projects are under the MIT License, Copyright (c) Microsoft Corporation. Their licence texts and third-party notices are in LICENSES/ and NOTICE.

xllama is an independent open-source project by Gianluca Mazza. It is not affiliated with, endorsed, sponsored or approved by Microsoft. Xbox, Xbox Series S and Xbox Series X are trademarks of the Microsoft group of companies. Llama is a trademark of Meta; xllama is not affiliated with Meta, or with the Ollama project or Ollama Inc. Other product names are trademarks of their respective owners and are used only to describe compatibility.

探索相关项目

加载中…