LocalFit

DeepSeek-V4-Flash

deepseek-ai/DeepSeek-V4-Flash

ReleasedRelease date unknownSize284B MoE · 13B activeRoleAssistantLicensemitContext1M config max

Where it runs 8K context · ≥ 5 t/s floor

SetupBest planMemoryGenerate
8 GB GPU + 32 GB RAMDoes not fit
12 GB GPU + 32 GB RAMDoes not fit
16 GB GPU + 64 GB RAMDoes not fit
24 GB GPU + 64 GB RAMDoes not fit
32 GB GPU + 128 GB RAMnative fp8vLLMGPU streams weights from RAM · 119 GiB in RAMKV unknown≤ 5.4 t/s Ceiling
2× 24 GB GPUs + 128 GB RAMDoes not fit
96 GB workstation GPU + 256 GB RAMnative fp8vLLMGPU streams weights from RAM · 55 GiB in RAMKV unknown≤ 11 t/s Ceiling
Mac, 24 GBDoes not fit
Mac, 48 GBDoes not fit
Mac, 128 GBDoes not fit
Mac, 512 GBDoes not fit
DGX Spark 128 GBDoes not fit
Ryzen AI Max+ 395, 128 GBDoes not fit
CPU only, 64 GB DDR5-5600 dual channelDoes not fit

Same plan engine as the planner, with its default reserves and RAM. How plans are chosen.

Files exact Hugging Face bytes

ArtifactSizeFilesRevisionSource
Native safetensors mixed/custom native; quant_method=fp8; stored tensor dtypes=
deepseek-ai/DeepSeek-V4-Flash
149 GiB4660d8d70770HF files

Not found in the representative quant search (not proven unavailable): GGUF FP16, GGUF Q8_0, GGUF Q5_K_M, GGUF Q4_K_M, MLX 8-bit, MLX 4-bit, EXL3, AWQ, GPTQ. Complete selected file sets; projectors, MTP/draft and lookup files are listed separately and budgeted only by plans that use them. File bytes are not allocated memory.

Quality

No Artificial Analysis evaluation mapped to this checkpoint.

Arena text rating

1,432

CI 1428–1436 · 51,987 votes · published 2026-10-15 · dataset

Explicit name identity; exact hosted revision/local quant equivalence not verified

Publisher-reported benchmarks

None extracted from the model card.

AA and Arena describe the hosted model in the stated mode, not each quantized file; scores are never inherited by base, pruned, abliterated or quantized variants and never averaged together.

How to run it

model

source-documented, not executed source

#!/usr/bin/env bash
# DeepSeek-V4-Flash @ ~28 tok/s single-stream, 4-bit, coding quality intact.
# Box: 1x RTX 5090 (32GB, sm_120) + 2x Xeon Gold 6138 (Skylake-SP, 40 physical cores, AVX-512, NO AMX), 256GB DDR4-2400.
# Stack: stock kvcache-ai/ktransformers + its sglang (kt-kernel). See README for the one-time convert step.
set -euo pipefail

# --- edit these three paths ---
KT_DIR="${KT_DIR:-/path/to/ktransformers}"                 # built ktransformers checkout (contains .venv)
MODEL="${MODEL:-/path/to/dsv4_flash}"                      # source MIT weights: deepseek-ai/DeepSeek-V4-Flash
KT_WEIGHTS="${KT_WEIGHTS:-/path/to/dsv4_flash_rawint4}"    # int4 numa-sharded output of convert_cpu_weights_ds4.py
# ------------------------------

cd "$KT_DIR"
export CUDA_HOME=/usr/local/cuda
export PATH="$CUDA_HOME/bin:$PWD/.venv/bin:$PATH"
export FLASHINFER_CUDA_ARCH_LIST=12.0a          # RTX 5090 = sm_120
export TORCH_CUDA_ARCH_LIST="12.0+PTX"
export SGLANG_DSV4_MODE=2604
export SGLANG_DSV4_2604_SUBMODE=2604A           # measured config (upstream docs default to 2604B; both work)
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True

exec ./.venv/bin/python -m sglang.launch_server \
  --host 127.0.0.1 --port 30000 \
  --model "$MODEL" --kt-weight-path "$KT_WEIGHTS" --kt-method AMXINT4 \
  --kt-num-gpu-experts 0 --kt-cpuinfer 40 --kt-threadpool-count 2 \
  --kt-gpu-prefill-token-threshold 4096 --kt-enable-dynamic-expert-update \
  --kt-max-deferred-experts-per-token 3 --kt-expert-placement-strategy frequency \
  --tensor-parallel-size 1 --context-length 8192 --attention-backend flashinfer \
  --mem-fraction-static 0.70 --chunked-prefill-size 2048 --max-prefill-tokens 2048 \
  --max-running-requests 2 --watchdog-timeout 1200 --disable-shared-experts-fusion \
  --trust-remote-code --json-model-override-args '{"num_experts_per_tok": 4}' \
  --cuda-graph-bs 1 --cuda-graph-max-bs 1 --disable-radix-cache --skip-server-warmup \
  2>&1 | tee /tmp/kt_server.log

# Notes:
#   --kt-cpuinfer 40         = ONE thread per PHYSICAL core. Do NOT use hyperthreads (80 -> ~2.7 tok/s, 10x worse).
#   --kt-num-gpu-experts 0   = CPU-only experts. Adding GPU experts under AMXINT4 was net-negative here (27.5 < 28).
#   num_experts_per_tok: 4   = top-4 adaptive-k (from top-6). Coding-verified; top-3 and below break coding.
#   No EAGLE/spec-decode: net-negative on this CPU-bandwidth-bound box (27.2 < 28).

Recipes are source examples (settings are the publisher’s or author’s, not measured optima) and were not executed by LocalFit. A downloadable file does not prove your backend build supports the architecture.

Reported speeds 4

HardwareQuantBackendPlacementPrompt t/sGen t/sDateSource
1× RTX 5090 + 2× Xeon Gold 6138 + 256 GB DDR4-2400, 8 of 12 channels populatedint4 routed experts (AMXINT4 conversion); other weights from source checkpointKTransformers + SGLangGPU + CPU experts—28 method2026-07-22source
1× RTX 5090 + 2× Xeon Gold 6138 + 256 GB DDR4-2400, 8 of 12 channels populatedint4 routed experts (AMXINT4 conversion); other weights from source checkpointKTransformers + SGLangGPU + CPU experts—27 method2026-07-22source
1× RTX 5090 + 2× Xeon Gold 6138 + 256 GB DDR4-2400, 8 of 12 channels populatedint4 routed experts (AMXINT4 conversion); other weights from source checkpointKTransformers + SGLangGPU + CPU experts—28 method2026-07-22source
1× RTX 5090 + 2× Xeon Gold 6138 + 256 GB DDR4-2400, 8 of 12 channels populatedint4 routed experts (AMXINT4 conversion); other weights from source checkpointKTransformers + SGLangGPU + CPU experts—2.7 method2026-07-22source

Reported by the linked sources, not reproduced by LocalFit. Stream pieces/s and method-unknown rates are flagged and cannot pass a tokens/s floor. All rows