玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
apetersson /

DeepSeek-V4-Flash-Vision-Exp-Abliterated

HF 源站

apetersson/DeepSeek-V4-Flash-Vision-Exp-Abliterated is an uncensored open-source model hosted on Hugging Face.

Image-Text-to-TextsafetensorsGGUFLicense: mittransformersdeepseek-v4multimodalvisionabliterationmodel-surgerymechanistic-interpretabilitypreviewconversational
README.md说明 / 使用方法

license: mit library_name: transformers pipeline_tag: image-text-to-text base_model: deepseek-ai/DeepSeek-V4-Flash-Vision-Exp base_model_relation: finetune tags:

  • deepseek-v4
  • multimodal
  • vision
  • abliteration
  • model-surgery
  • mechanistic-interpretability
  • preview

DeepSeek-V4-Flash-Vision-Exp Abliterated

[!WARNING] Experimental research release. Text and focused image smoke tests pass, but broader quality, safety, and production-runtime evaluation remains pending.

This catalog contains the native abliterated checkpoint and two DS4 GGUF profiles. Both GGUF receivers use tensor types accepted by antirez/ds4 main; neither requires the legacy Python vision sidecar for current native vision.

ProfileReceiverIntended use
Reference-Native-GGUF155,976,505,536 bytesHigher-fidelity reference; requires SSD streaming on a 128 GiB Mac
Basic128-Routed-IQ2_M102,826,285,248 bytesResident 128 GiB profile; fastest local option

Basic128-Routed-IQ2_M uses the closest familiar BPW class for the complete bundle: 2.915 BPW overall, close to llama.cpp's documented 2.9294 BPW for IQ2_M. The routed-expert subset averages 2.715 BPW, close to IQ2_S. This is a custom mixed recipe rather than llama.cpp's exact IQ2_M preset: routed gate/up tensors use IQ2_XXS, routed down tensors use Q2_K, ten routed layers retain MXFP4, and non-routed tensors include F32, F16, and Q8_0. See the llama.cpp quantization table for the reference BPW classes.

Runtime compatibility

The documented upstream baseline is antirez/ds4 main commit 110afdd8886586f18fc9b28bc5533152dd10e728.

Runtime and modeReferenceBasic128
Exact antirez/main, textSSD streaming: passesResident or SSD streaming: passes
Exact antirez/main, native imageSSD mapping bugResident: passes
apetersson/ds4-flash-vision, text + imageSSD streaming: passesResident or SSD streaming: passes

Current upstream main has one Metal caveat: SSD prefill remaps receiver spans by discarding the separately mapped vision encoder. The model is accepted and text works, but native image prefill fails when --vision and --ssd-streaming are combined. The isolated upstream-ready fix is 17799146 on branch metal-vision-ssd-streaming-map; it is also included in ds4-flash-vision as 164bb227.

Portable setup

The commands below assume that the model repository and DS4 checkout are sibling directories. If your layout differs, set MODEL_REPO to the appropriate path relative to the DS4 checkout. No machine-specific paths are required.

For the documented upstream baseline:

git clone https://github.com/antirez/ds4.git
cd ds4
git checkout 110afdd8886586f18fc9b28bc5533152dd10e728
make -j ds4-server
MODEL_REPO="../DeepSeek-V4-Flash-Vision-Exp-Abliterated"

For full reference-profile vision support and the additional server fixes:

git clone --branch ds4-flash-vision --single-branch \
  https://github.com/apetersson/ds4.git ds4-flash-vision
cd ds4-flash-vision
make -j ds4-server
MODEL_REPO="../DeepSeek-V4-Flash-Vision-Exp-Abliterated"

Keep the selected checkout open for the launch commands that follow.

Reference profile

Text with the upstream baseline

The reference receiver does not fit in 128 GiB without SSD streaming. The upstream baseline command is therefore text-only because of the SSD/native- vision mapping issue described above:

./ds4-server \
  --model "${MODEL_REPO}/Reference-Native-GGUF/DeepSeek-V4-Flash-Vision-Exp-Abliterated-Reference-MainCompat-F16-Q8-MXFP4.gguf" \
  --metal \
  --ctx 2048 \
  --tokens 4000 \
  --prefill-chunk 512 \
  --ssd-streaming \
  --ssd-streaming-cache-experts 48GB \
  --host 127.0.0.1 \
  --port 18080

Text and images with ds4-flash-vision

Use the ds4-flash-vision checkout for the complete reference path on a 128 GiB Mac:

./ds4-server \
  --model "${MODEL_REPO}/Reference-Native-GGUF/DeepSeek-V4-Flash-Vision-Exp-Abliterated-Reference-MainCompat-F16-Q8-MXFP4.gguf" \
  --vision "${MODEL_REPO}/Reference-Native-GGUF/mmproj-DeepSeek-V4-Flash-Vision-Exp-F16.gguf" \
  --metal \
  --ctx 2048 \
  --tokens 4000 \
  --prefill-chunk 512 \
  --ssd-streaming \
  --ssd-streaming-cache-experts 48GB \
  --host 127.0.0.1 \
  --port 18080

Validation at 164bb227 returned OK for the text smoke test and correctly identified an Earth image. The server planned 52.39 GiB at --ctx 2048 with a 512-token prefill chunk. SSD-streamed decoding is expected to be slow because uncached experts must be read from storage.

Basic128 resident profile

The 95.76 GiB receiver fits in memory on the tested 128 GiB M1 Ultra, avoids SSD expert misses, and supports native images with the upstream baseline:

./ds4-server \
  --model "${MODEL_REPO}/Basic128-Routed-IQ2_M/DeepSeek-V4-Flash-Vision-Exp-Abliterated-Basic128-Routed-IQ2_M.gguf" \
  --vision "${MODEL_REPO}/Basic128-Routed-IQ2_M/mmproj-DeepSeek-V4-Flash-Vision-Exp-F16.gguf" \
  --metal \
  --ctx 32000 \
  --tokens 4000 \
  --prefill-chunk 1024 \
  --host 127.0.0.1 \
  --port 18080

At 32K context, this configuration planned 96.17 GiB on the tested M1 Ultra. Text generation reached about 23.4 tok/s, and the native image smoke test correctly identified an Earth image. If Metal reports insufficient memory, close other GPU-heavy applications, reduce --ctx, or reduce --prefill-chunk.

The same command works with ds4-flash-vision, which additionally provides conditional /v1/models image metadata, incremental tool-enabled answer streaming, M1 prefill optimizations, and the vision/SSD mapping fix. The Basic128 profile should normally remain resident; add the following options only when memory is constrained:

--ssd-streaming --ssd-streaming-cache-experts 48GB

Sending an image

IMAGE_B64="$(base64 < image.png | tr -d '\n')"
curl http://127.0.0.1:18080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d "{\"messages\":[{\"role\":\"user\",\"content\":[
        {\"type\":\"text\",\"text\":\"Describe this image.\"},
        {\"type\":\"image_url\",\"image_url\":{
          \"url\":\"data:image/png;base64,$IMAGE_B64\"}}
      ]}],\"max_tokens\":128}"

Conversion and provenance

The reference receiver was minimally adapted for stock main rather than fully requantized: 129 routed-expert and 559 other compatible tensors were copied byte-for-byte, 338 F32 plain/control tensors became F16, and 345 F16 dense projections became Q8_0. The original incompatible 164.7 GB source-preserving receiver is no longer published in this catalog.

The Basic128 receiver similarly preserves every routed-expert payload from its source quant. Its expert layout is 66 IQ2_XXS gate/up tensors, 33 Q2_K down tensors, and 30 MXFP4 tensors. See each variant folder for checksums and its machine-readable build manifest.

This is a rank-1 abliterated derivative of deepseek-ai/DeepSeek-V4-Flash-Vision-Exp. It was produced by targeted projection edits, not gradient fine-tuning. Hugging Face uses the finetune parent relation because it has no generic model-surgery relation.

.
├── Reference-Native-FP8/          native mixed-precision checkpoint
├── Reference-Native-GGUF/         higher-fidelity main-compatible GGUF
├── Basic128-Routed-IQ2_M/         resident 128 GiB GGUF
├── README.md                      catalog and launch instructions
├── NOTICE                         source and direction provenance
└── variants.json                  machine-readable variant registry
HUGGING FACE

上游数据

HF 下载量1.1万
HF 点赞量14

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
apetersson
最近更新
2026/09/01
最新创建
2026/08/31
HF 趋势
未知
数据快照
2026/09/16
版本
未知
许可证
mit