Offloading MoE Experts to Disk#

Mixture-of-Experts (MoE) models activate only a subset of their experts for each token. The OpenVINO Intel GPU plugin can keep part of the routed expert weights on disk and load experts as needed, instead of keeping all of them in GPU memory. This can make a model usable with less VRAM, at the cost of disk access and slower inference. Other model weights and runtime allocations, including the KV cache, still require memory.

OFFLOAD_RATIO controls the percentage of routed experts offloaded to disk. Set it to a value between 1 and 99 to enable offloading; 0 keeps all experts resident and is useful as a baseline. WEIGHTS_PATH must point to the original language model .bin file, which must remain accessible while the server is running. Use a fast local disk and benchmark the ratio on your own hardware.

This feature requires a compatible MoE model and Intel iGPU or dGPU device.

Performance Considerations#

Offloading generally has a greater impact on time to first token (TTFT) than on time per output token (TPOT). Prefix caching can mitigate the TTFT impact when requests share prompt prefixes, because cached prefixes do not need to be evaluated again.

Single-client usage is preferable: concurrent requests can have a greater impact on both TTFT and TPOT. Performance depends on the workload, hardware, and offload ratio.

Deploy on Linux#

The following example serves the INT4 OpenVINO/Qwen3.6-35B-A3B-int4-ov model, the published OpenVINO version of Qwen3.6-35B-A3B. It downloads the model on first startup and offloads 40% of its routed experts.

Prerequisites:

  • Docker Engine, a supported Intel GPU and its drivers, and an OVMS image whose OpenVINO GPU plugin supports MoE offloading. The example uses openvino/model_server:2026.5.0; verify that the image version includes this support.

  • Internet access and sufficient disk space for the model download. Keep the model repository on a fast local disk.

  • Access to /dev/dri and its render device from the container.

mkdir -p "${HOME}/models"

docker run -d --rm \
	--device /dev/dri --group-add "$(stat -c '%g' /dev/dri/render* | head -n1)" \
	--user "$(id -u):$(id -g)" \
	-p 8000:8000 -v "${HOME}/models:/models:rw" \
	openvino/model_server:2026.5.0 \
	--model_repository_path /models \
	--source_model OpenVINO/Qwen3.6-35B-A3B-int4-ov \
	--target_device GPU \
	--rest_port 8000 \
	--plugin_config '{"OFFLOAD_RATIO":"40","WEIGHTS_PATH":"/models/OpenVINO/Qwen3.6-35B-A3B-int4-ov/openvino_language_model.bin"}'

The weights path is inside the container and corresponds to ${HOME}/models/OpenVINO/Qwen3.6-35B-A3B-int4-ov/openvino_language_model.bin on the host. If you use a different model repository or a locally prepared model, change WEIGHTS_PATH to the matching .bin file. Do not remove or replace it while the model is loaded. To compare with no offloading, restart the server with OFFLOAD_RATIO set to 0.

Check Readiness and Send a Request#

Wait until the model is listed:

curl http://localhost:8000/v1/models

Send a text request using the OpenAI-compatible API:

curl http://localhost:8000/v1/chat/completions \
	-H 'Content-Type: application/json' \
	-d '{
		"model": "OpenVINO/Qwen3.6-35B-A3B-int4-ov",
		"max_completion_tokens": 128,
		"messages": [{"role": "user", "content": "Explain mixture-of-experts models briefly."}]
	}'