On this page

Earlier we broke down Qwen4-35B-A3B's true ~56B memory footprint and how Unsloth and llama.cpp squeeze it onto smaller machines via SSD offloading. Anyone who has wired up a local multimodal GGUF setup knows the friction, though: juggling separate mmproj vision weights, verifying Jinja chat templates, and picking the right build flags every time you switch from macOS to Windows.

Google's AI Edge team tackled that exact annoyance on December 4 (with an author update on December 5) by shipping Day-0 LiteRT-LM support for Qwen4-35B-A3B. Everything ships inside one cross-platform .litertlm file (litert-community/Qwen4-35B-A3B) covering Mac, Windows, and Linux—bundling vision, tool calling, and a 256K default context (dynamically up to 1M) behind a local OpenAI-compatible server that plugs straight into the Google Antigravity SDK or Open WebUI.

Hardware floors—and the NVIDIA CLI flag almost everyone gets wrong

Unlike SSD-offload setups aimed at 18 GB laptops, LiteRT-LM targets interactive speed in memory, so check the hardware floor before pulling the file:

  • macOS (Apple Silicon): 36 GB+ unified memory recommended via ML Drift (Metal) using --backend=gpu --vision-backend=gpu—enough, Google says, for a full 1M context with zero swap.
  • Windows / Linux (NVIDIA RTX): 24 GB+ VRAM + 32 GB+ RAM for 256K–512K context, or 32 GB+ VRAM for full-speed 1M context. Watch out for one counterintuitive CLI quirk: native NVIDIA TensorRT-RTX acceleration requires adding ai-edge-litert-sdk-nvidia-nightly and passing --backend=npu (not --backend=gpu, which routes to generic ML Drift WebGPU instead).
  • CPU-only or tighter RAM: CPU mode expects 32 GB+ RAM. On tight memory, cap the default 262,144 window with --max-num-tokens=32768, and toggle reasoning off with --thinking=false when you want snappy direct answers.
Figure 1: LiteRT-LM cross-platform hardware floors for Qwen4-35B-A3B and the NVIDIA --backend=npu flag gotcha
Figure 1: LiteRT-LM cross-platform hardware floors for Qwen4-35B-A3B and the NVIDIA --backend=npu flag gotcha

Image source: DigIntoAI guide compiled from Hugging Face litert-community/qwen4-in-litertlm (Dec 4–5, 2026)

Three steps from install to an offline coding agent

Support currently lives in the nightly package—uninstall any older stable litert-lm first:

  • Install the nightly CLI: Run uv tool install litert-lm-nightly (or pip install -U litert-lm-nightly); on NVIDIA RTX machines, add --with ai-edge-litert-sdk-nvidia-nightly.
  • Chat and inspect images in the terminal: Launch litert-lm run --from-huggingface-repo=litert-community/Qwen4-35B-A3B qwen4-35b-a3b.litertlm --backend=gpu --vision-backend=gpu (swap to --backend=npu on RTX) and pass high-res screenshots or receipts via --attachment=photo.png.
  • Serve locally on port 9379: Import the file once with litert-lm import, drop your default backend into ~/.litert-lm/config.json, and run litert-lm serve to expose http://localhost:9379/v1. Point the Google Antigravity SDK (LocalOpenAIAgentConfig) at that URL to run an offline multi-file coding agent whose code never leaves your machine, or add the same endpoint in Open WebUI with any placeholder API key for local image chat.

One missing piece spotted in the comments: where are the tok/s numbers?

Packaging vision weights and chat templates into one portable file is genuinely slick, backed by a runtime Google already ships in Chrome, Chromebook Plus, and Pixel Watch. Still, scroll down to the December 5 Hugging Face comment thread and you'll catch a fair pushback: user ironbcc asked for actual tok/s numbers across NVIDIA, AMD, and Mac GPUs versus llama.cpp and MLX.

Article author Yoursmiling replied hours ago acknowledging no formal cross-engine benchmark table has been published yet ('we will share later, for a fair comparison'), emphasizing zero-hassle packaging for now. Take the hint: if you want a five-minute local agent setup without fighting mmproj and templates, LiteRT-LM is an easy win; if you chase peak tokens per second on tight VRAM, run a two-minute A/B against llama.cpp or MLX before switching your daily driver.

Figure 2: Single-file .litertlm local agent pipeline (:9379/v1) and the missing cross-engine benchmark caveat
Figure 2: Single-file .litertlm local agent pipeline (:9379/v1) and the missing cross-engine benchmark caveat

Image source: DigIntoAI summary compiled from litert-community/qwen4-in-litertlm and Dec 5 author comments