To install without Homebrew, see the Baseten CLI install reference.Pick the model you want to deploy. Each tab is a self-contained recipe.
27B
35B-A3B
Qwen/Qwen3.6-27B is a 27B-parameter dense model with up to 256K context.This preset serves Qwen3.6-27B on H100:4 with MTP speculative decoding, optimized for low time-to-first-token on interactive chat and agent workflows.
Hardware
H100 × 4
Context
256K
Write the config
Create and move into the project directory:
mkdir qwen3.6-27b-latency && cd qwen3.6-27b-latency
Then create a file named config.yaml and paste the following:
config.yaml
# BIS-LLM (vLLM backend) conversion of this preset, in place: same path, new deployment model# `preset:bis-latency` because the platform rejects BIS deployments into the old KNATIVE model.# Kept from the vLLM docker_server preset: same checkpoint and revision, TP4, 262,144 context, MTP speculative decoding (2 tokens), text only, qwen3 reasoning and qwen3_coder tool parsers.## Serving image: the 2026-11-02 MP release (baseten/bis-llm-vllm:mp-v2026.11.02), pinned by its# green tag. No bis_llm.version: the platform's current chart is used.## Differences from the vLLM preset:# - Qwen3.5 hybrid GDN settings from llm/qwen3.5-9b-bis: --mamba-cache-mode align,# --gdn-prefill-backend triton, DYN_KV_EVENT_MAIN_GROUP_IDX 3 (KV events from the# full-attention group), capped worker thread pools.# - Text only, as before (language_model_only: true).# - Speculative decoding passed to vLLM as --speculative-config {"method": "mtp", "num_speculative_tokens": 2}.# - max_num_seqs 64 replaces predict_concurrency 64.model_name: model:qwen3.6-27b preset:bis-latencymodel_metadata: example_model_input: model: Qwen/Qwen3.6-27B messages: - role: user content: What is the capital of France? stream: true max_tokens: 512 temperature: 1.0 top_p: 0.95 tags: - openai-compatible description: Qwen 3.6 27B (dense, BF16) on four H100 GPUs (TP4), latency, text only, with MTP speculative decoding and Qwen tool calling, served with vLLM through the Baseten Inference Stack. repo_id: Qwen/Qwen3.6-27Bbis_llm: config: additional_environment_variables: Worker: DYN_KV_EVENT_MAIN_GROUP_IDX: '3' HF_HUB_ENABLE_HF_TRANSFER: '1' MKL_NUM_THREADS: '4' OMP_NUM_THREADS: '1' RAYON_NUM_THREADS: '4' SAFETENSORS_FAST_GPU: '1' TOKENIZERS_PARALLELISM: 'false' VLLM_ENGINE_READY_TIMEOUT_S: '3600' VLLM_LOGGING_LEVEL: WARNING arguments_as_json: true b10_routing_config: algo_selector: B10 durable_kv_events: false enable_worker_tree: true router_cache_miss_weight: 0 router_overlap_score_weight: 1000 router_temperature: 0.001 checkpoint_name: Qwen/Qwen3.6-27B engine_backend: vllm engine_config: dtype: auto enable_chunked_prefill: true enable_prefix_caching: true enforce_eager: false kv_events_endpoint: tcp://*:5557 max_model_len: 262144 max_num_seqs: 64 trust_remote_code: true vllm_extra_args: - --mamba-cache-mode - align - --reasoning-parser - qwen3 - --gdn-prefill-backend - triton - --speculative-config - '{"method": "mtp", "num_speculative_tokens": 2}' gpuTRTImage: baseten/bis-llm-vllm:green-mp--v0.26.0-d9e38b3e4-b6573aaba5 language_model_only: true model_name: Qwen/Qwen3.6-27B model_path: /models/qwen3.6-27b reasoning_parser: qwen3 served_model_name: Qwen/Qwen3.6-27B served_model_name_response: Qwen/Qwen3.6-27B tensor_parallel_size: 4 tokenizer_limit_length: 262144 tool_call_parser: qwen3_coderenvironment_variables: {}resources: accelerator: H100:4 use_gpu: trueweights:- source: hf://Qwen/Qwen3.6-27B@6a9e13bd6fc8f0983b9b99948120bc37f49c13e9 mount_location: /models/qwen3.6-27b
Deploy
Push the config to Baseten with the Baseten CLI, or with the Truss CLI if you prefer it:
baseten model push
uvx truss push
You should see output similar to:
Pushing model "qwen3.6-27b-latency"...Uploading model...Uploaded model in 0s✨ Model qwen3.6-27b-latency was successfully pushed ✨ Model: qwen3.6-27b-latency (abc1d2ef) Deployment: xyz123 Environment: production🪵 View logs: deployment: baseten model deployment logs --model-id abc1d2ef --deployment-id xyz123 environment: baseten model environment logs --model-id abc1d2ef --environment production (once deployed) app: https://app.baseten.co/models/abc1d2ef/logs/xyz123🚀 Invoke your model: URL: https://model-abc1d2ef.api.baseten.co/deployment/xyz123/predict CLI: baseten model predict --model-id abc1d2ef
baseten model push prints your model ID (abc1d2ef in the example). The examples below use it wherever you see {model_id}, and read your API key from the BASETEN_API_KEY environment variable.
Call the model
Your deployment serves an OpenAI-compatible API.Now call your deployment to run inference:
Qwen/Qwen3.6-35B-A3B is a 35B-parameter hybrid MoE model (3B active per token) with up to 256K context.This variant ships in 2 presets tuned for different goals: Throughput for highest tokens per second, and Latency for lowest time-to-first-token. Pick the tab that matches your workload.
Throughput
Latency
This preset serves the RedHatAI NVFP4 quantization of Qwen3.6-35B-A3B on a single B200, with FlashInfer MoE kernels, chunked prefill, and prefix caching enabled. It maximizes aggregate throughput at high concurrency.
Hardware
B200
Context
256K
Write the config
Create and move into the project directory:
mkdir qwen3.6-35b-a3b-throughput && cd qwen3.6-35b-a3b-throughput
Then create a file named config.yaml and paste the following:
config.yaml
# BIS-LLM (vLLM backend) conversion of this preset, in place: same path, new deployment model# `preset:bis-throughput` because the platform rejects BIS deployments into the old KNATIVE model.# Kept from the vLLM docker_server preset: same checkpoint, 262,144 context, 512 sequences, 32,768 batched tokens, 0.95 GPU memory, FlashInfer MoE env, MTP speculative decoding (3 tokens), image input, qwen3 reasoning and qwen3_coder tool parsers.## Serving image: the 2026-11-02 MP release (baseten/bis-llm-vllm:mp-v2026.11.02), pinned by its# green tag. No bis_llm.version: the platform's current chart is used.## Differences from the vLLM preset:# - Qwen3.5 hybrid GDN settings from llm/qwen3.5-9b-bis: --mamba-cache-mode align,# --gdn-prefill-backend triton, DYN_KV_EVENT_MAIN_GROUP_IDX 3 (KV events from the# full-attention group), capped worker thread pools.# - Images are planned by the BIS frontend and encoded by the worker (frontend_plan_worker_exec);# video is off. family: qwen35 is set explicitly: the encoder only resolves known Qwen repo# names, and an alias (e.g. Hcompany/Holo-3.1) otherwise fails with "Unknown encoder model".# - Speculative decoding passed to vLLM as --speculative-config {"method": "qwen3_5_mtp", "num_speculative_tokens": 3}.# - --moe_backend flashinfer_cutlass dropped: the BIS image runs vLLM v0.26 (the preset used v0.28); the FlashInfer MoE environment variables are kept.# - Weights pinned to the revision in variant.json (the vLLM preset used @main).model_name: model:qwen3.6-35b-a3b preset:bis-throughputmodel_metadata: example_model_input: model: RedHatAI/Qwen3.6-35B-A3B-NVFP4 messages: - role: user content: What is the capital of France? max_tokens: 100 temperature: 0.7 tags: - openai-compatible - vllm - qwen3.6 - nvfp4 - b200 description: Qwen 3.6 35B A3B MoE (RedHatAI NVFP4) throughput on one B200 with MTP speculative decoding, image input and Qwen tool calling, served with vLLM through the Baseten Inference Stack. repo_id: RedHatAI/Qwen3.6-35B-A3B-NVFP4bis_llm: config: additional_environment_variables: Worker: DYN_KV_EVENT_MAIN_GROUP_IDX: '3' HF_HUB_ENABLE_HF_TRANSFER: '1' MKL_NUM_THREADS: '4' OMP_NUM_THREADS: '1' RAYON_NUM_THREADS: '4' SAFETENSORS_FAST_GPU: '1' TOKENIZERS_PARALLELISM: 'false' VLLM_ENGINE_READY_TIMEOUT_S: '3600' VLLM_LOGGING_LEVEL: WARNING PYTORCH_ALLOC_CONF: expandable_segments:True VLLM_FLASHINFER_MOE_BACKEND: throughput VLLM_USE_FLASHINFER_MOE_FP4: '1' VLLM_USE_FLASHINFER_MOE_FP8: '1' arguments_as_json: true b10_routing_config: algo_selector: B10 durable_kv_events: false enable_worker_tree: true router_cache_miss_weight: 0 router_overlap_score_weight: 1000 router_temperature: 0.001 b10_vision_config: encoding_mode: frontend_plan_worker_exec enabled: true family: qwen35 max_videos: 0 checkpoint_name: RedHatAI/Qwen3.6-35B-A3B-NVFP4 engine_backend: vllm engine_config: dtype: auto enable_chunked_prefill: true enable_prefix_caching: true enforce_eager: false gpu_memory_utilization: 0.95 kv_events_endpoint: tcp://*:5557 max_model_len: 262144 max_num_batched_tokens: 32768 max_num_seqs: 512 trust_remote_code: true vllm_extra_args: - --mamba-cache-mode - align - --reasoning-parser - qwen3 - --gdn-prefill-backend - triton - --speculative-config - '{"method": "qwen3_5_mtp", "num_speculative_tokens": 3}' gpuTRTImage: baseten/bis-llm-vllm:green-mp--v0.26.0-d9e38b3e4-b6573aaba5 language_model_only: false model_name: RedHatAI/Qwen3.6-35B-A3B-NVFP4 model_path: /models/qwen3.6-35b-a3b-nvfp4 reasoning_parser: qwen3 served_model_name: RedHatAI/Qwen3.6-35B-A3B-NVFP4 served_model_name_response: RedHatAI/Qwen3.6-35B-A3B-NVFP4 tensor_parallel_size: 1 tokenizer_limit_length: 262144 tool_call_parser: qwen3_coderenvironment_variables: {}resources: accelerator: B200 use_gpu: trueweights:- source: hf://RedHatAI/Qwen3.6-35B-A3B-NVFP4@e94a930c8e9b8a7d3763e449289c261c9c7d3e5e mount_location: /models/qwen3.6-35b-a3b-nvfp4 auth_secret_name: hf_access_token
Deploy
Push the config to Baseten with the Baseten CLI, or with the Truss CLI if you prefer it:
baseten model push
uvx truss push
You should see output similar to:
Pushing model "qwen3.6-35b-a3b-throughput"...Uploading model...Uploaded model in 0s✨ Model qwen3.6-35b-a3b-throughput was successfully pushed ✨ Model: qwen3.6-35b-a3b-throughput (abc1d2ef) Deployment: xyz123 Environment: production🪵 View logs: deployment: baseten model deployment logs --model-id abc1d2ef --deployment-id xyz123 environment: baseten model environment logs --model-id abc1d2ef --environment production (once deployed) app: https://app.baseten.co/models/abc1d2ef/logs/xyz123🚀 Invoke your model: URL: https://model-abc1d2ef.api.baseten.co/deployment/xyz123/predict CLI: baseten model predict --model-id abc1d2ef
baseten model push prints your model ID (abc1d2ef in the example). The examples below use it wherever you see {model_id}, and read your API key from the BASETEN_API_KEY environment variable.
Call the model
Your deployment serves an OpenAI-compatible API.Now call your deployment to run inference:
This preset serves Qwen3.6-35B-A3B on H100:4 with MTP speculative decoding, optimized for low time-to-first-token on interactive chat and short-horizon agent workflows.
Hardware
H100 × 4
Context
256K
Write the config
Create and move into the project directory:
mkdir qwen3.6-35b-a3b-latency && cd qwen3.6-35b-a3b-latency
Then create a file named config.yaml and paste the following:
config.yaml
# BIS-LLM (vLLM backend) conversion of this preset, in place: same path, new deployment model# `preset:bis-latency` because the platform rejects BIS deployments into the old KNATIVE model.# Kept from the vLLM docker_server preset: same checkpoint and revision, TP4, 262,144 context, MTP speculative decoding (2 tokens), text only, qwen3 reasoning and qwen3_coder tool parsers.## Serving image: the 2026-11-02 MP release (baseten/bis-llm-vllm:mp-v2026.11.02), pinned by its# green tag. No bis_llm.version: the platform's current chart is used.## Differences from the vLLM preset:# - Qwen3.5 hybrid GDN settings from llm/qwen3.5-9b-bis: --mamba-cache-mode align,# --gdn-prefill-backend triton, DYN_KV_EVENT_MAIN_GROUP_IDX 3 (KV events from the# full-attention group), capped worker thread pools.# - Text only, as before (language_model_only: true).# - Speculative decoding passed to vLLM as --speculative-config {"method": "mtp", "num_speculative_tokens": 2}.# - max_num_seqs 64 replaces predict_concurrency 64.model_name: model:qwen3.6-35b-a3b preset:bis-latencymodel_metadata: example_model_input: model: Qwen/Qwen3.6-35B-A3B messages: - role: user content: What is the capital of France? stream: true max_tokens: 512 temperature: 1.0 top_p: 0.95 tags: - openai-compatible description: Qwen 3.6 35B A3B MoE (BF16) on four H100 GPUs (TP4), latency, text only, with MTP speculative decoding and Qwen tool calling, served with vLLM through the Baseten Inference Stack. repo_id: Qwen/Qwen3.6-35B-A3Bbis_llm: config: additional_environment_variables: Worker: DYN_KV_EVENT_MAIN_GROUP_IDX: '3' HF_HUB_ENABLE_HF_TRANSFER: '1' MKL_NUM_THREADS: '4' OMP_NUM_THREADS: '1' RAYON_NUM_THREADS: '4' SAFETENSORS_FAST_GPU: '1' TOKENIZERS_PARALLELISM: 'false' VLLM_ENGINE_READY_TIMEOUT_S: '3600' VLLM_LOGGING_LEVEL: WARNING arguments_as_json: true b10_routing_config: algo_selector: B10 durable_kv_events: false enable_worker_tree: true router_cache_miss_weight: 0 router_overlap_score_weight: 1000 router_temperature: 0.001 checkpoint_name: Qwen/Qwen3.6-35B-A3B engine_backend: vllm engine_config: dtype: auto enable_chunked_prefill: true enable_prefix_caching: true enforce_eager: false kv_events_endpoint: tcp://*:5557 max_model_len: 262144 max_num_seqs: 64 trust_remote_code: true vllm_extra_args: - --mamba-cache-mode - align - --reasoning-parser - qwen3 - --gdn-prefill-backend - triton - --speculative-config - '{"method": "mtp", "num_speculative_tokens": 2}' gpuTRTImage: baseten/bis-llm-vllm:green-mp--v0.26.0-d9e38b3e4-b6573aaba5 language_model_only: true model_name: Qwen/Qwen3.6-35B-A3B model_path: /models/qwen3.6-35b-a3b reasoning_parser: qwen3 served_model_name: Qwen/Qwen3.6-35B-A3B served_model_name_response: Qwen/Qwen3.6-35B-A3B tensor_parallel_size: 4 tokenizer_limit_length: 262144 tool_call_parser: qwen3_coderenvironment_variables: {}resources: accelerator: H100:4 use_gpu: trueweights:- source: hf://Qwen/Qwen3.6-35B-A3B@995ad96eacd98c81ed38be0c5b274b04031597b0 mount_location: /models/qwen3.6-35b-a3b
Deploy
Push the config to Baseten with the Baseten CLI, or with the Truss CLI if you prefer it:
baseten model push
uvx truss push
You should see output similar to:
Pushing model "qwen3.6-35b-a3b-latency"...Uploading model...Uploaded model in 0s✨ Model qwen3.6-35b-a3b-latency was successfully pushed ✨ Model: qwen3.6-35b-a3b-latency (abc1d2ef) Deployment: xyz123 Environment: production🪵 View logs: deployment: baseten model deployment logs --model-id abc1d2ef --deployment-id xyz123 environment: baseten model environment logs --model-id abc1d2ef --environment production (once deployed) app: https://app.baseten.co/models/abc1d2ef/logs/xyz123🚀 Invoke your model: URL: https://model-abc1d2ef.api.baseten.co/deployment/xyz123/predict CLI: baseten model predict --model-id abc1d2ef
baseten model push prints your model ID (abc1d2ef in the example). The examples below use it wherever you see {model_id}, and read your API key from the BASETEN_API_KEY environment variable.
Call the model
Your deployment serves an OpenAI-compatible API.Now call your deployment to run inference: