{
  "hf_id": "Qwen/Qwen3-30B-A3B-Thinking-2507",
  "meta": {
    "title": "Qwen3-30B-A3B-Thinking-2507",
    "slug": "qwen3-30b-a3b-thinking-2507",
    "provider": "Qwen",
    "description": "Thinking-only Qwen3 MoE model (30.5B total / 3.3B active) with a 262K context, with an AMD PTPC FP8 variant for Instinct GPUs",
    "date_added": "2025-07-31",
    "date_updated": "2026-12-03",
    "tasks": [
      "text"
    ],
    "performance_headline": "",
    "related_recipes": [
      "Qwen/Qwen3-30B-A3B",
      "Qwen/Qwen3-235B-A22B-Instruct-2507"
    ],
    "hardware": {}
  },
  "recommended_command": {
    "hardware": "h200",
    "strategy": "single_node_tp",
    "variant": "default",
    "hub": "huggingface",
    "checkpoint_url": "https://huggingface.co/Qwen/Qwen3-30B-A3B-Thinking-2507",
    "node_count": 1,
    "deploy_type": "single_node",
    "env": {},
    "docker_image": "vllm/vllm-openai:latest",
    "command": "vllm serve Qwen/Qwen3-30B-A3B-Thinking-2507 \\\n  --tensor-parallel-size 1 \\\n  --enable-auto-tool-choice \\\n  --tool-call-parser hermes \\\n  --reasoning-parser qwen3",
    "argv": [
      "vllm",
      "serve",
      "Qwen/Qwen3-30B-A3B-Thinking-2507",
      "--tensor-parallel-size",
      "1",
      "--enable-auto-tool-choice",
      "--tool-call-parser",
      "hermes",
      "--reasoning-parser",
      "qwen3"
    ],
    "docker_command": "docker run --gpus all \\\n  --privileged --ipc=host -p 8000:8000 \\\n  -v ~/.cache/huggingface:/root/.cache/huggingface \\\n  vllm/vllm-openai:latest Qwen/Qwen3-30B-A3B-Thinking-2507 \\\n  --tensor-parallel-size 1 \\\n  --enable-auto-tool-choice \\\n  --tool-call-parser hermes \\\n  --reasoning-parser qwen3",
    "docker_argv": [
      "docker",
      "run",
      "--gpus",
      "all",
      "--privileged",
      "--ipc=host",
      "-p",
      "8000:8000",
      "-v",
      "~/.cache/huggingface:/root/.cache/huggingface",
      "vllm/vllm-openai:latest",
      "Qwen/Qwen3-30B-A3B-Thinking-2507",
      "--tensor-parallel-size",
      "1",
      "--enable-auto-tool-choice",
      "--tool-call-parser",
      "hermes",
      "--reasoning-parser",
      "qwen3"
    ],
    "strategy_spec": {
      "name": "single_node_tp",
      "deploy_type": "single_node",
      "display_name": "Tensor Parallel",
      "short_label": "TP",
      "orientation": "latency",
      "description": "Single-node tensor parallel. Splits the model across all local GPUs. TP size is set to the GPU count at deploy time. The simplest multi-GPU strategy — works for all model architectures.\n",
      "hardware_match": {
        "min_gpus": 1,
        "max_gpus": 8,
        "multi_node": false
      },
      "vllm_args": [],
      "parallel_flag": "--tensor-parallel-size"
    },
    "hardware_profile": {
      "brand": "NVIDIA",
      "generation": "hopper",
      "compute_arch": "sm90",
      "display_name": "H200",
      "description": "NVIDIA H200 SXM 141 GB HBM3e · 8-GPU HGX node",
      "gpu_count": 8,
      "vram_gb": 1128,
      "multi_node": false
    },
    "alternatives": {
      "single_node_tep": "/Qwen/Qwen3-30B-A3B-Thinking-2507/strategies/single_node_tep.json",
      "single_node_dep": "/Qwen/Qwen3-30B-A3B-Thinking-2507/strategies/single_node_dep.json",
      "multi_node_tp": "/Qwen/Qwen3-30B-A3B-Thinking-2507/strategies/multi_node_tp.json",
      "kv_store_centralized_mooncake": "/Qwen/Qwen3-30B-A3B-Thinking-2507/strategies/kv_store_centralized_mooncake.json",
      "kv_store_distributed_mooncake": "/Qwen/Qwen3-30B-A3B-Thinking-2507/strategies/kv_store_distributed_mooncake.json"
    },
    "by_hardware": {
      "h200": "/Qwen/Qwen3-30B-A3B-Thinking-2507/hw/h200.json",
      "h100": "/Qwen/Qwen3-30B-A3B-Thinking-2507/hw/h100.json",
      "b200": "/Qwen/Qwen3-30B-A3B-Thinking-2507/hw/b200.json",
      "gb200": "/Qwen/Qwen3-30B-A3B-Thinking-2507/hw/gb200.json",
      "b300": "/Qwen/Qwen3-30B-A3B-Thinking-2507/hw/b300.json",
      "gb300": "/Qwen/Qwen3-30B-A3B-Thinking-2507/hw/gb300.json",
      "mi300x": "/Qwen/Qwen3-30B-A3B-Thinking-2507/hw/mi300x.json",
      "mi325x": "/Qwen/Qwen3-30B-A3B-Thinking-2507/hw/mi325x.json",
      "mi350x": "/Qwen/Qwen3-30B-A3B-Thinking-2507/hw/mi350x.json",
      "mi355x": "/Qwen/Qwen3-30B-A3B-Thinking-2507/hw/mi355x.json"
    }
  },
  "model": {
    "model_id": "Qwen/Qwen3-30B-A3B-Thinking-2507",
    "min_vllm_version": "0.10.0",
    "architecture": "moe",
    "parameter_count": "30.5B",
    "active_parameters": "3.3B",
    "context_length": 262144,
    "base_args": [],
    "base_env": {},
    "install": {
      "pip": {
        "command": "uv venv\nsource .venv/bin/activate\nuv pip install -U vllm --torch-backend auto"
      },
      "docker": {
        "command": "docker pull vllm/vllm-openai:latest"
      }
    }
  },
  "features": {
    "tool_calling": {
      "description": "Enable automatic tool choice with the Hermes parser",
      "args": [
        "--enable-auto-tool-choice",
        "--tool-call-parser",
        "hermes"
      ]
    },
    "reasoning": {
      "description": "Separate the thinking trace from the answer with the Qwen3 reasoning parser",
      "args": [
        "--reasoning-parser",
        "qwen3"
      ]
    }
  },
  "opt_in_features": [],
  "variants": {
    "default": {
      "precision": "bf16",
      "vram_minimum_gb": 74,
      "description": "Full precision BF16"
    },
    "amd_ptpc_fp8": {
      "model_id": "amd/Qwen3-30B-A3B-Thinking-2507-PTPC-FP8",
      "precision": "fp8",
      "label": "PTPC FP8 (AMD)",
      "vram_minimum_gb": 38,
      "description": "AMD Quark FP8 with per-channel weight and per-token activation scales, for MI300X/MI325X/MI350X/MI355X",
      "supported_hardware": [
        "arch:gfx942",
        "arch:gfx950"
      ],
      "min_vllm_version": "0.34.1",
      "nightly_required": true,
      "tp": 1,
      "extra_args": [
        "--attention-backend",
        "ROCM_AITER_FA",
        "--kv-cache-dtype",
        "fp8",
        "--block-size",
        "16"
      ],
      "extra_env": {
        "VLLM_ROCM_USE_AITER": "1",
        "VLLM_ROCM_SHUFFLE_KV_CACHE_LAYOUT": "1"
      },
      "hardware_overrides": {
        "mi300x": {
          "docker_image": "vllm/vllm-openai-rocm:nightly"
        },
        "mi325x": {
          "docker_image": "vllm/vllm-openai-rocm:nightly"
        },
        "mi350x": {
          "docker_image": "vllm/vllm-openai-rocm:nightly"
        },
        "mi355x": {
          "docker_image": "vllm/vllm-openai-rocm:nightly"
        }
      },
      "json": "/amd/Qwen3-30B-A3B-Thinking-2507-PTPC-FP8.json"
    }
  },
  "hardware_overrides": {},
  "guide": "## Overview\n\n[Qwen3-30B-A3B-Thinking-2507](https://huggingface.co/Qwen/Qwen3-30B-A3B-Thinking-2507)\nis the July 2025 thinking-only update of Qwen3-30B-A3B: a mixture-of-experts model\nwith 30.5B total and 3.3B active parameters (128 experts, 8 active), 48 layers and\na native 262,144-token context. Unlike the hybrid\n[Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B), it always thinks: the\nchat template opens the `<think>` block, so the output contains only the closing\n`</think>`. The Qwen3 reasoning parser handles this and returns the trace in\n`message.reasoning`.\n\n### AMD PTPC FP8 (MI300X / MI325X / MI350X / MI355X)\n\nThe PTPC FP8 (AMD) variant serves\n[amd/Qwen3-30B-A3B-Thinking-2507-PTPC-FP8](https://huggingface.co/amd/Qwen3-30B-A3B-Thinking-2507-PTPC-FP8),\nan AMD Quark checkpoint with per-channel FP8 weights and dynamic per-token FP8\nactivations. It runs on one GPU:\n\n- The weights are 31.2 GB. With an FP8 KV cache a token takes 48 KiB\n  (48 layers x 4 KV heads x 128 x K and V), so a full 262,144-token sequence\n  needs 12 GiB. After the weights and warmup, one MI300X leaves at least\n  130 GiB of KV cache, about 2.9M tokens.\n- `--attention-backend ROCM_AITER_FA` selects the AITER flash-attention backend,\n  and `VLLM_ROCM_SHUFFLE_KV_CACHE_LAYOUT=1` stores the KV cache in the layout\n  AITER's assembly paged-attention decode kernel reads.\n- `--kv-cache-dtype fp8` stores the KV cache in FP8. The checkpoint has no KV\n  scales, so the scales default to 1.0.\n- `--block-size 16` is required with the shuffle layout: the default of 64 fails\n  at startup, and AITER has no FP8 decode kernel for 32-token blocks.\n\nThe first AITER launch may take several minutes while ROCm kernels are compiled\nand cached.\n\n## Client Usage\n\nThe model card recommends temperature 0.6, top-p 0.95 and top-k 20, and an output\nbudget of 32,768 tokens for most tasks (81,920 for competition math and code).\n\n```python\nfrom openai import OpenAI\n\nclient = OpenAI(base_url=\"http://localhost:8000/v1\", api_key=\"unused\")\nresponse = client.chat.completions.create(\n    model=\"Qwen/Qwen3-30B-A3B-Thinking-2507\",\n    messages=[{\"role\": \"user\", \"content\": \"How many primes are there below 100?\"}],\n    temperature=0.6,\n    top_p=0.95,\n    max_tokens=32768,\n    extra_body={\"top_k\": 20},\n)\nprint(response.choices[0].message.reasoning)\nprint(response.choices[0].message.content)\n```\n\nUse the served model id (for example `amd/Qwen3-30B-A3B-Thinking-2507-PTPC-FP8`)\nas `model` when serving a variant.\n\n## References\n\n- [Model card](https://huggingface.co/Qwen/Qwen3-30B-A3B-Thinking-2507)\n- [AMD PTPC FP8 checkpoint](https://huggingface.co/amd/Qwen3-30B-A3B-Thinking-2507-PTPC-FP8)\n- [AMD Quark](https://quark.docs.amd.com/latest/index.html)\n",
  "source": {
    "source": "vllm",
    "repo": "vllm-project/vllm",
    "ref": "main",
    "sha": "0e8c5f622f138bdce14a917572e3f48e2311c927",
    "path": "recipes/models/Qwen/Qwen3-30B-A3B-Thinking-2507.yaml",
    "edit_url": "https://github.com/vllm-project/vllm/edit/main/recipes/models/Qwen/Qwen3-30B-A3B-Thinking-2507.yaml",
    "overlays": []
  }
}