selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

deepseek-ai logo

DeepSeek-V4.1-Flash-1017

deepseek-ai·Instruct·released 17 Oct 2026

MIT763BA188BMoE1M ctx ≈454 GB
Your GPU
vllm serve deepseek-ai/DeepSeek-V4.1-Flash-1017
All 2 runners ↓

This instruct model from deepseek-ai is a vision-language model with 763.2B total parameters, of which 188B are active in its mixture-of-experts design. It accepts text and image inputs, returns text, and supports a context window of 1,048,576 tokens. It is released under the MIT licence, which the listing marks as permitting commercial use.

Notify me when

How much VRAM does DeepSeek-V4.1-Flash-1017 need?

At Q4_K_M DeepSeek-V4.1-Flash-1017 needs about 454 GB with an 8K context (454 GB at Q4, 1494 GB at full precision). Pick your GPU to see what fits and how fast it runs.

--vram
any
--gpus
--quant

Needs: ≈454 GB · Q4_K_M · 8K context — Pick a GPU to check the fit.

Change quant, context or KV cache to compare
Advanced: context 8K · KV cache 16-bit
Context
KV cache

Smallest GPU for each quant and context (KV cache 16-bit)

Quantisation8K16K32K64K128K1M
Q3_K_M
Q4_K_M
Q5_K_M
Q6_K
Q8_0
FP16

≤16 GB card24–32 GB48–96 GBmore

QuantisationQualityWeightsKV cacheTotal
Q2_KHeavy lossSmallest, noticeably worse qualityHeavy loss234 GB est.0.6 GB≈246 GB
Q3_K_MNoticeable lossSmall, some quality lossNoticeable loss347 GB est.0.6 GB≈366 GB
Q4_K_MrecommendedSmall lossRecommended default for local useSmall loss431 GB est.0.6 GB≈454 GB
Q5_K_MNear-losslessNear-lossless for most tasksNear-lossless506 GB est.0.6 GB≈532 GB
Q6_KNear-losslessPractically losslessNear-lossless586 GB est.0.6 GB≈616 GB
Q8_0LosslessLossless in practice, twice the size of Q4Lossless7.4 GB file0.6 GB≈8.9 GB
FP16 / BF16LosslessFull precision, as releasedLossless7.9 GB file0.6 GB≈9.4 GB

Estimates for 8K tokens of context: weights + KV cache + runtime overhead. All experts stay in memory, but only the active ones are read per token. Speed assumes memory-bound decoding at your GPU’s bandwidth. Pick a GPU above and the fit column checks every row against it. Weights marked “file” use the real GGUF download size; “est.” rows are computed from the parameter count.

How to pick a quant

Take the biggest quant that fits with room left for context. Q4_K_M is the usual sweet spot. Below Q4 quality drops fast, above Q6 you mostly pay memory for nothing. Big models (70B+, large MoE) tolerate low quants better than small ones.

  • LosslessF16, Q8_0
  • Near-losslessQ6_K, Q5_K_M
  • Small lossQ5_K_S, Q4_K_M, IQ4_NL, IQ4_XS, Q4_K_S
  • Noticeable lossQ4_0, Q3_K_L, Q3_K_M, IQ3_M
  • Heavy lossIQ3_XXS, Q3_K_S, IQ2_M, Q2_K

Typical quality loss, not measured per model. Tiers come from KL divergence against FP16 on Llama 3 8B: llama.cpp perplexity README: LLaMA 3 8B scoreboard (KLD and ΔPPL vs FP16, Wikitext-2); llama.cpp quantize tool: ΔPPL per quant type @ Llama-3-8B

How much context fits?

Model quant
KV cache

At 8K context, Q4_K_M needs ≈454 GB(431 GB weights + 0.6 GB KV cache + 22 GB overhead). Pick a GPU above to see how much context fits.

02004006001K2K4K8K16K32K64K128K256K512K1MGB

Weights + overheadKV cache

Can the Apple M4 (16 GB) run DeepSeek-V4.1-Flash-1017? →

Speed vs quality per quant

Smaller quants run faster and fit in less memory, but lose quality.

Q2_KQ3_K_MQ4_K_MQ5_K_MQ6_KQ8_0F16

Fits in VRAMTight fitCPU offload✕ won't runQuality is typical KL divergence vs FP16, not measured for this model.

Real-world speed of DeepSeek-V4.1-Flash-1017

Tokens per second measured by people running it at home. A GPU shows a median once 3 reports agree on the same setup. Reports far from our estimate wait for a review. Measure yours with llama-bench →

No medians yet. Be one of the first 3 to report a setup.

All reports

Run DeepSeek-V4.1-Flash-1017 locally

These commands load the original weights from Hugging Face.

Serve an OpenAI-compatible APIdocs
vllm serve deepseek-ai/DeepSeek-V4.1-Flash-1017
Docker Compose (NVIDIA)docs
yaml
services:
  vllm:
    image: vllm/vllm-openai:latest
    command: deepseek-ai/DeepSeek-V4.1-Flash-1017
    ports:
      - "8000:8000"
    ipc: host
    volumes:
      - ~/.cache/huggingface:/root/.cache/huggingface
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

API on port 8000.

Install vLLM

Ask about an imagedocs
python
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="deepseek-ai/DeepSeek-V4.1-Flash-1017", dtype="auto", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
            {"type": "text", "text": "Describe this image."},
        ],
    }
]
out = pipe(text=messages, max_new_tokens=256)
print(out[0]["generated_text"][-1]["content"])

Install Transformers

Quantised versions and downloads

RepositoryFormatQuantSizeDownloads
Infatoshi/DeepSeek-V4.1-Flash-1017-MXFP4-uncensoredSafetensorsMXFP4—1.9K
nvidia/DeepSeek-V4.1-Flash-1017-NVFP4SafetensorsNVFP4—7.8K
LibertAIDAI/DeepSeek-V4.1-Flash-1017-NVFP4SafetensorsNVFP4—1.4K
unsloth/DeepSeek-V4.1-Flash-1017-GGUFGGUFUD-IQ1_S233 GB957.5K
unsloth/DeepSeek-V4.1-Flash-1017-GGUFGGUFUD-IQ1_M250 GB957.5K
unsloth/DeepSeek-V4.1-Flash-1017-GGUFGGUFUD-IQ2_XXS300 GB957.5K
unsloth/DeepSeek-V4.1-Flash-1017-GGUFGGUFUD-Q2_K_XL335 GB957.5K
unsloth/DeepSeek-V4.1-Flash-1017-GGUFGGUFUD-IQ3_XXS395 GB957.5K
unsloth/DeepSeek-V4.1-Flash-1017-GGUFGGUFUD-IQ3_S424 GB957.5K
unsloth/DeepSeek-V4.1-Flash-1017-GGUFGGUFUD-Q3_K_XL485 GB957.5K

About DeepSeek-V4.1-Flash-1017

DeepSeek-V4.1-Flash-1017 is a minor update to DeepSeek-V4.1-Flash, delivering substantial improvements across reasoning, coding, agentic tasks, and visual benchmarks. Alongside these gains, the model reduces task execution time and output length, enabling users to complete tasks faster and at lower cost and advancing the performance–cost Pareto frontier across multiple agent harnesses. † denotes the text-only subset of HLE. We use the Claude Code harness for Terminal-Bench 4.0 and the Mini-SWE-V2 harness for DeepSWE v1.1. This release does not include a Jinja-format chat template. The encoding folder contains a self-contained Python reference implementation (encoding.py) with test cases for multi-turn conversations, tool calling, thinking mode, numeric reasoning effort, mid-conversation system messages, and interleaved image content. For production use, we additionally release deepseek-recipe, a set of Rust libraries with Python bindings that provides the same prompt format as a maintained, protocol-aware toolkit. It converts Messages, Chat Completions, and Responses API requests into the Conversation format, encodes them into DeepSeek V4 and V4.1 prompts or token IDs, and parses model output back into complete or streamed responses — covering thinking, tool calls, images, and generation settings. Model inference, tool execution, and HTTP transport are left to the caller.

Full model card on Hugging Face →

Alternatives to DeepSeek-V4.1-Flash-1017

All alternatives →
deepseek-ai logo

DeepSeek-V4.1-Flash

deepseek-ai·Vision

≈454 GB

We introduce DeepSeek-V4.1-Flash, a multimodal Mixture-of-Experts (MoE) model with 552B backbone parameters and support for contexts of up to one million tokens. The model natively processes images and text, and generates text autoregressively.

763BA188B1M ctx MIT
1.8MSept 2026gguf
thinkingmachines logo

Inkling

thinkingmachines·Vision

≈567 GB

Inkling is a general-purpose multimodal model that accepts text, image and audio inputs and generates text outputs. It is intended for use in English and other languages, and across multiple coding languages.

952BA18.1B1M ctx Apache 2.0
1.5MJul 2026gguf
meta-models logo

Muse-Spark-Open-816B-A42B

meta-models·Vision

≈490 GB

Authors: Meta Superintelligence Labs Model Release Date: October 2026 License: Muse Model License

822BA42B1M ctx muse-model-license
14.8KSept 2026gguf
moonshotai logo

Kimi-K2.7-Code

moonshotai·Vision

≈632 GB

Kimi K2.7 Code is a coding-focused agentic model built upon Kimi K2.6. With substantial improvements on real-world long-horizon coding tasks, it strengthens end-to-end task completion across complex software engineering workflows while improving token efficiency, reducing thinking-token usage by…

1.03TA33.3B256K ctx modified-mit
187.5KJun 2026ollama
moonshotai logo

Kimi-K2.6

moonshotai·Vision

≈632 GB

Kimi K2.6 is an open-source, native multimodal agentic model that advances practical capabilities in long-horizon coding, coding-driven design, proactive autonomous execution, and swarm-based task orchestration.

1.03TA33.3B256K ctx modified-mit
214.7KApr 2026ollama
moonshotai logo

Kimi-K2.5

moonshotai·Vision

≈632 GB

Kimi K2.5 is an open-source, native multimodal agentic model built through continual pretraining on approximately 15 trillion mixed visual and text tokens atop Kimi-K2-Base.

1.03TA33.3B256K ctx modified-mit
392.9KJan 2026gguf

DeepSeek-V4.1-Flash-1017 FAQ

How much VRAM does DeepSeek-V4.1-Flash-1017 need?
About 454 GB at Q4_K_M with an 8K context. Q8_0 needs about 794 GB and full precision about 1494 GB. Longer contexts need more memory for the KV cache.
Can DeepSeek-V4.1-Flash-1017 run on the RTX 3060 12GB?
Yes. It fits at FP16 / BF16 (about 9.4 GB), at an estimated 0.5 tokens/s. It fits comfortably on the Apple M4 (16 GB), Radeon RX 6700 XT, Arc B580.
Can I use DeepSeek-V4.1-Flash-1017 commercially?
Yes. It is released under MIT. Permissive: do almost anything as long as you keep the copyright notice.
What is the context length of DeepSeek-V4.1-Flash-1017?
1,048,576 tokens (1M). The full window needs far more memory than an 8K context.
How do I run DeepSeek-V4.1-Flash-1017 locally?
With vLLM: vllm serve deepseek-ai/DeepSeek-V4.1-Flash-1017.

Data from Hugging Face, the model card and public leaderboards. Memory and speed figures are estimates; real numbers depend on the runtime, context length and drivers. Always check the licence yourself before commercial use.