Run this model with HF Jobs

Run litert-community/Qwen4-35B-A3B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/litert-community/Qwen4-35B-A3B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/litert-community/Qwen4-35B-A3B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/litert-community/Qwen4-35B-A3B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Qwen4-35B-A3B (LiteRT-LM)

Qwen/Qwen4-35B-A3B is packaged as a single .litertlm file for fast, private, local inference. LiteRT-LM is Google's production-ready, high-performance runtime for running LLMs locally across macOS, Windows, Linux, Android, iOS, and the web β€” built on LiteRT.

  • Long context: 256K by default, up to 1M (set with --max-num-tokens)
  • Hardware acceleration: accelerates across platforms, using direct LiteRT integration with NVIDIA TensorRT-RTX and ML Drift for native Metal on Apple Silicon and WebGPU on Windows/Linux/web.
  • Rich features: image understanding and tool calling
  • OpenAI-compatible server for the Google Antigravity SDK, and any OpenAI-compatible clients like Open WebUI.

πŸ“– Guide: Run Qwen 4 Locally with LiteRT-LM

Quick Start

# 1. Install
uv tool install litert-lm-nightly
# (or: pip install -U litert-lm-nightly)

# 2. Chat (add --attachment=image.png for images)
litert-lm run \
  --from-huggingface-repo=litert-community/Qwen4-35B-A3B \
  qwen4-35b-a3b.litertlm \
  --backend=gpu --vision-backend=gpu

# 3. Serve an OpenAI-compatible API at http://localhost:9379/v1
litert-lm import \
  --from-huggingface-repo=litert-community/Qwen4-35B-A3B \
  qwen4-35b-a3b.litertlm \
  qwen4-35b-a3b
mkdir -p ~/.litert-lm
echo '{"default": {"backend": "gpu", "vision_backend": "gpu"}}' > ~/.litert-lm/config.json
litert-lm serve

Then connect any OpenAI-compatible client with base URL http://localhost:9379/v1 and model qwen4-35b-a3b.

Files

File Context Input
qwen4-35b-a3b.litertlm 256K default, up to 1M Text, image

Hardware Acceleration & NVIDIA RTX Integration

LiteRT-LM accelerates Qwen 4 across platforms using ML Drift (--backend=gpu for native Metal on Apple Silicon and WebGPU on Windows/Linux/web) and NVIDIA TensorRT-RTX (--backend=npu on Windows/Linux).

On NVIDIA RTX GPUs, install the NVIDIA SDK plugin and set --backend=npu:

# 1. Install CLI + NVIDIA SDK
uv tool install litert-lm-nightly --with ai-edge-litert-sdk-nvidia-nightly
# (or: pip install -U litert-lm-nightly ai-edge-litert-sdk-nvidia-nightly)

# 2. Import the model
litert-lm import \
  --from-huggingface-repo=litert-community/Qwen4-35B-A3B \
  qwen4-35b-a3b.litertlm \
  qwen4-35b-a3b

# 3. Chat on NVIDIA RTX
litert-lm run qwen4-35b-a3b --backend=npu

# 4. Serve on RTX (configure default backend once)
mkdir -p ~/.litert-lm
# Update config.json on Linux:
echo '{"default": {"backend": "npu"}}' > ~/.litert-lm/config.json
# Update config.json on Windows using PowerShell:
'{"default": {"backend": "npu"}}' | Out-File -Encoding ascii ~/.litert-lm/config.json
litert-lm serve

For more options (--max-num-tokens, --thinking, --vision-backend), see the CLI configuration guide.

Highlights

  • Fast, interactive responses on Apple Silicon and NVIDIA RTX GPUs, staying fast as the context grows. CPU-only machines are supported too.
  • Long context in limited memory: even a 1M context window runs on a 36 GB Mac without swapping.
  • Agent-ready: verified with live coding and terminal-agent tasks through litert-lm serve, including parallel tool calls.
  • Strong vision: reads screenshots, receipts, tables, charts, and code, and understands spatial layout in photos.

Requirements

  • Mac: Apple Silicon with 36 GB+ memory
  • Windows / Linux GPU: 24 GB+ VRAM
  • CPU only: 32 GB+ RAM

License

Converted from Qwen4-35B-A3B under the Apache 2.0 license. No training data added.

Runtime: LiteRT-LM (Apache 2.0).

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for litert-community/Qwen4-35B-A3B

Quantized
(34)
this model

Article mentioning litert-community/Qwen4-35B-A3B