{
 "id": "qwen3.5-397b-a17b",
 "name": "Qwen3.5 397B-A17B",
 "repo": "Qwen/Qwen3.5-397B-A17B",
 "lab": {
  "name": "Alibaba",
  "country": "China"
 },
 "released": "2026-02-16",
 "parameters": 403.397928944,
 "activeParameters": 17,
 "maxContext": 262144,
 "architecture": "60 layers · 15 full attention (2 KV × 256) · 45 linear attention",
 "page": "https://studiotvai.com/vram-requirements/qwen3-5-397b-a17b",
 "calculator": "https://studiotvai.com/llm-vram-calculator?model=qwen3.5-397b-a17b",
 "weightsGiB": {
  "bf16": 739.1,
  "fp8": 371.45,
  "q4_k_m": 223.07
 },
 "kvCacheGiBPerRequest": [
  {
   "context": 8192,
   "bf16": 0.234,
   "fp8": 0.117
  },
  {
   "context": 32768,
   "bf16": 0.938,
   "fp8": 0.469
  },
  {
   "context": 131072,
   "bf16": 3.75,
   "fp8": 1.875
  },
  {
   "context": 262144,
   "bf16": 7.5,
   "fp8": 3.75
  }
 ],
 "recurrentStateGiBPerRequest": 0.1789,
 "gpusNeeded": {
  "scenario": "one request of 8192 tokens, BF16 KV cache; vLLM on data-center GPUs, llama.cpp elsewhere",
  "gpus": [
   {
    "gpu": "rtx-4090",
    "name": "GeForce RTX 4090",
    "memoryGB": 24,
    "engine": "llama.cpp",
    "byFormat": {
     "bf16": 48,
     "fp8": 24,
     "q4_k_m": 16
    }
   },
   {
    "gpu": "rtx-5090",
    "name": "GeForce RTX 5090",
    "memoryGB": 32,
    "engine": "llama.cpp",
    "byFormat": {
     "bf16": 32,
     "fp8": 16,
     "q4_k_m": 8
    }
   },
   {
    "gpu": "rtx-pro-6000",
    "name": "RTX PRO 6000 Blackwell",
    "memoryGB": 96,
    "engine": "llama.cpp",
    "byFormat": {
     "bf16": 16,
     "fp8": 5,
     "q4_k_m": 3
    }
   },
   {
    "gpu": "mac-m5-max-128",
    "name": "Mac M5 Max 128 GB",
    "memoryGB": 96,
    "engine": "llama.cpp",
    "byFormat": {
     "bf16": 16,
     "fp8": 5,
     "q4_k_m": 3
    }
   },
   {
    "gpu": "h100",
    "name": "NVIDIA H100",
    "memoryGB": 80,
    "engine": "vLLM",
    "byFormat": {
     "bf16": 16,
     "fp8": 6,
     "q4_k_m": 4
    }
   },
   {
    "gpu": "h200",
    "name": "NVIDIA H200",
    "memoryGB": 141,
    "engine": "vLLM",
    "byFormat": {
     "bf16": 7,
     "fp8": 4,
     "q4_k_m": 2
    }
   },
   {
    "gpu": "b200",
    "name": "NVIDIA B200 (HGX)",
    "memoryGB": 180,
    "engine": "vLLM",
    "byFormat": {
     "bf16": 5,
     "fp8": 3,
     "q4_k_m": 2
    }
   }
  ]
 },
 "ggufFiles": {
  "repo": "unsloth/Qwen3.5-397B-A17B-GGUF",
  "gib": {
   "BF16": 738.5,
   "MXFP4_MOE": 221.05,
   "Q3_K_M": 165.23,
   "Q3_K_S": 153.04,
   "Q4_K_M": 227.33,
   "Q4_K_S": 212.33,
   "Q5_K_M": 273.5,
   "Q5_K_S": 257.56,
   "Q6_K": 304.17,
   "Q8_0": 392.56,
   "UD-IQ1_M": 99.48,
   "UD-IQ2_M": 114.6,
   "UD-IQ2_XXS": 106.98,
   "UD-IQ3_S": 136.32,
   "UD-IQ3_XXS": 130.7,
   "UD-IQ4_NL": 180.45,
   "UD-IQ4_XS": 176.7,
   "UD-Q3_K_M": 165.23,
   "UD-Q3_K_S": 153.04,
   "UD-Q3_K_XL": 166.46,
   "UD-Q4_K_M": 227.33,
   "UD-Q4_K_S": 212.33,
   "UD-Q4_K_XL": 228.43,
   "UD-Q5_K_M": 273.5,
   "UD-Q5_K_S": 257.56,
   "UD-Q5_K_XL": 274.61,
   "UD-Q6_K": 304.17,
   "UD-Q6_K_XL": 337.45,
   "UD-Q8_K_XL": 398.35
  }
 },
 "runsWith": [
  "vLLM",
  "SGLang",
  "llama.cpp (Ollama, LM Studio)",
  "MLX (Mac)"
 ],
 "verified": null,
 "updated": "2026-10-12T11:05:05.798Z"
}
