Image-Text-to-Text
Basalt
English
Chinese
deepseek-v4
deepseek4
mxfp4
Mixture of Experts
vision
multimodal
speculative-decoding
dspark
blackwell
Instructions to use jabbatheduck/DeepSeek-v4-Vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Basalt
How to use jabbatheduck/DeepSeek-v4-Vision with Basalt:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
DeepSeek-v4-Vision (Basalt)
Unofficial community .basalt v2 conversion of deepseek-ai/DeepSeek-V4-Flash-Vision-Exp (snapshot 6821d6ad3681a4b137b066b76094fa82ebd0a380) for Basalt, a local inference engine for NVIDIA Blackwell GPUs (sm_120).
File & Bundled Sections
| Section | Size | Contents |
|---|---|---|
Total (DeepSeek-v4-Vision.basalt) |
171.2 GB (159.43 GiB) | Self-contained .basalt v2 pack |
experts |
137.06 GiB | 43 MoE layers Γ 256 routed experts (top-6 active + 1 shared), native MXFP4 (type 39) |
gguf + dense |
8.57 GiB + 2.77 GiB | Source FP8 linear projections converted to Q8_0; embeddings, norms & other tensors in source precision |
dspark |
10.12 GiB | Bundled 3-stage MXFP4 DSpark speculative drafter (windows up to 6 tokens by default; --spec 0 disables) |
vision/mmproj |
0.87 GiB (934.5 MB) | deepseek4v vision encoder & projector (--vision dynamic) |
deepseek4/head |
266 KiB | Checkpoint-sourced hc_head_* weights from model-00045-of-00048.safetensors |
tokenizer/* & meta |
~11 MiB | JoyAI-LLM BPE tokenizer, chat template, <think> reasoning, and DSML tool-call metadata |
Model Highlights
- Architecture:
deepseek4, 43 layers, 256 routed experts (6 active per token) + 1 shared expert, 4096 hidden dimension, 64 attention heads, 128-token sliding window + compressed sparse attention (indexer top-k 512). - Context: Up to 1,048,576 tokens (native YaRN, 16Γ from 65,536). KV cache reserve with
--kv fp8(default) is0.13 GiBat 64K /1.88 GiBat 1M (vs0.44 GiB/6.74 GiBfor--kv fp16). - Vision: Multimodal image understanding via
--vision dynamic(encoded inside the engine using the bundledvision/mmprojprojector).
Benchmarks & Quality
Measured on a single RTX 5090 (32 GiB VRAM, 475 W power limit) + DDR5 RAM (--resident-budget-gib 145, --kv fp8, default DSpark drafting, auto expert cache ~27/256 experts/layer):
| Benchmark | Rate (tok/s) | Notes |
|---|---|---|
pp16384 |
2,290β2,300 | Engine |
tg conv / struct / prose (default lossless) |
36β38 / 42β44 / 38 | 70% VRAM, 11% PCIe, 19% CPU |
tg conv / struct / prose (--route-tail-skip 3) |
55β60 / 70β76 / 57 | Opt-in lossy preset |
Wikitext-2 100-chunk KLD gate (25,500 rows, --kv fp8, vs llama.cpp source-precision MXFP4/Q8_0 reference base PPL 4.3379):
| Mode | PPL | Mean KLD | Median KLD | Top-1 Agreement |
|---|---|---|---|---|
| Default lossless | 3.9807 Β± 0.0595 | 0.15465 | 0.03152 | 88.04% |
--route-tail-skip 3 (opt-in lossy) |
4.6074 Β± 0.0719 | 0.29460 | β | 82.11% |
Download & Run
hf download jabbatheduck/DeepSeek-v4-Vision DeepSeek-v4-Vision.basalt --local-dir models/DeepSeek-v4-Vision
bin/basalt serve models/DeepSeek-v4-Vision/DeepSeek-v4-Vision.basalt --vision dynamic
Note: Running
deepseek4packs requires a Basalt build with DeepSeek-V4 (deepseek4) support.
Sources & License
- Base Model:
deepseek-ai/DeepSeek-V4-Flash-Vision-Exp(MIT License, see LICENSE). - Inference Engine: Basalt (MIT License).
- Downloads last month
- 8
Model tree for jabbatheduck/DeepSeek-v4-Vision
Base model
deepseek-ai/DeepSeek-V4-Flash-Vision-Exp