{"answer":"Fits comfortably: Qwen 4 35B A3B (MoE) at Q4_K_M with a 16384-token context needs 37.05 GB; NVIDIA L40 (48 GB) has 46.2 GB usable.","model":{"slug":"qwen4-35b-a3b","name":"Qwen 4 35B A3B (MoE)","provider":"Alibaba","paramsBillions":35,"activeParamsBillions":3.8,"maxContext":1048576,"huggingFaceId":"Qwen/Qwen4-35B-A3B"},"hardware":{"slug":"nvidia-l40-48gb","name":"NVIDIA L40 (48 GB)","gpuCount":1,"mixed":false,"isUnifiedMemory":false,"memoryGb":48,"memoryBandwidthGbps":864},"settings":{"runtime":"ollama","quantization":"q4_k_m","quantizationLabel":"Q4_K_M","contextLength":16384,"kvCacheQuant8":false,"dailyTokens":500000},"fit":{"status":"fits","runs":true,"label":"Fits comfortably","detail":"9.2 GB headroom left for a longer context or other apps.","minGpusNeeded":1,"bestQuantizationThatFits":"q4_k_m","maxContextThatFits":131072},"memoryGb":{"weights":34.44,"kvCache":0.31,"overhead":2.3,"total":37.05,"usable":46.2,"headroom":9.15,"utilizationPct":80.2,"weightsSource":"published file size","weightsRef":"qwen4:35b-a3b","weightsReadFromDisk":0,"kvCacheConfidence":"approximate","kvCacheNote":"30 linear-attention layers keep a fixed-size state instead of a per-token cache"},"speedTokensPerSecond":{"low":103.2,"expected":158.8,"high":214.3,"confidence":"estimated","note":"Modelled from memory bandwidth and model size. No published measurement covers this setup. One request at a time.","sources":[]},"run":{"runtime":"Ollama","command":"ollama run qwen4:35b-a3b","serveCommand":null,"note":null,"guide":"https://llmsizing.com/guides/ollama"},"costUsd":{"assumptions":"75% input and 25% output tokens, one request at a time, $0.18/kWh, hardware written off over 36 months.","cheapestPath":"api","local":{"per1MTokens":null,"per1MTokensPowerOnly":0.03,"hardware":null,"capacityTokensPerDay":42216369,"capacityExceeded":false},"cloudGpu":{"per1MTokens":0.33,"provider":"RunPod","gpu":"1x RTX A6000 (48 GB)","perHour":0.33,"priceSource":"provider API","priceAsOf":"2026-11-30","capacityExceeded":false},"api":{"per1MTokens":0.14,"provider":"OpenRouter","id":"qwen/qwen4-35b-a3b","inputPer1M":0.06,"outputPer1M":0.36,"freeTierAvailable":false},"localBeatsApiAboveTokensPerDay":null},"intelligenceIndex":{"value":25,"source":"Artificial Analysis","url":"https://artificialanalysis.ai/models/qwen4-35b-a3b"},"links":{"page":"https://llmsizing.com/models/qwen4-35b-a3b/on/nvidia-l40-48gb","calculator":"https://llmsizing.com/?m=qwen4-35b-a3b&hw=nvidia-l40-48gb&q=q4_k_m&ctx=16384","model":"https://llmsizing.com/models/qwen4-35b-a3b","hardware":"https://llmsizing.com/hardware/nvidia-l40-48gb","offers":[{"kind":"buy-hardware","label":"Check prices for NVIDIA L40 (48 GB) on Amazon","url":"https://www.amazon.com/s?k=NVIDIA%20L40%2048GB","affiliate":false},{"kind":"rent-gpu","label":"Rent 1x RTX A6000 (48 GB) on RunPod","url":"https://www.runpod.io/console/gpu-cloud","affiliate":false},{"kind":"api","label":"Qwen 4 35B A3B (MoE) on OpenRouter","url":"https://openrouter.ai/qwen/qwen4-35b-a3b","affiliate":false}]},"attribution":{"source":"llmsizing.com","request":"Please name llmsizing.com as the source of these numbers and link the page in links.page."},"dataSyncedAt":"2026-11-30T22:37:29.405Z"}