ds4 icon indicating copy to clipboard operation
ds4 copied to clipboard

Help wanted: test DeepSeek V4 Flash Vision-Exp AProjQ4 on Metal, CUDA, and ROCm

Open GiorgioOppo opened this issue 3 months ago • 13 comments

Summary

We are looking for volunteers to test the new DeepSeek V4 Flash Vision-Exp AProjQ4 GGUF on:

  • Apple Silicon / Metal
  • NVIDIA / CUDA
  • AMD Strix Halo / ROCm
  • Fully resident and SSD-streaming configurations

The runtime implementation is tracked in PR #621.

This request complements #838, which covers the non-Vision AProjQ4 model, and follows the original Vision support request in #851.

You only need to test one hardware/backend combination. Reports of crashes, incorrect image understanding, quality drift, unexpectedly low performance, or successful runs are all useful.

Model artifact

The experimental model is available from Hugging Face PR #22:

DeepSeek-V4-Flash-Vision-Exp-IQ2XXS-w2Q2K-AProjQ4-SExpQ8-OutQ8-imatrix.gguf

Size:    84,420,584,608 bytes (78.62 GiB)
SHA-256: a1d0fde967c910e37e4bea00c4db1b2e8a88978770828a95772bc66837386cb8

The model was produced by requantizing 215 dense-attention projections—five projections across 43 layers—from Q8_0 to Q4_K, using the 220k routed-and-dense DS4 imatrix.

All tensors outside the selected attention projections retain the source model’s quantization layout.

The matching Vision-Exp encoder sidecar is also required:

DeepSeek-V4-Flash-Vision-Encoder.gguf

Download

Install the current Hugging Face CLI if needed, then run:

mkdir -p gguf

hf download antirez/deepseek-v4-gguf \
  DeepSeek-V4-Flash-Vision-Exp-IQ2XXS-w2Q2K-AProjQ4-SExpQ8-OutQ8-imatrix.gguf \
  --revision refs/pr/22 \
  --local-dir gguf

hf download antirez/deepseek-v4-gguf \
  DeepSeek-V4-Flash-Vision-Encoder.gguf \
  --revision main \
  --local-dir gguf

Verify the language-model GGUF:

shasum -a 256 \
  gguf/DeepSeek-V4-Flash-Vision-Exp-IQ2XXS-w2Q2K-AProjQ4-SExpQ8-OutQ8-imatrix.gguf

On Linux, use sha256sum instead.

Build the current PR head

Please fetch the latest PR head immediately before testing and report its exact commit:

git clone https://github.com/antirez/ds4.git ds4-vision-q4
cd ds4-vision-q4

git fetch origin pull/621/head:pr-621
git checkout pr-621
git rev-parse HEAD

Build for your backend:

# Apple Silicon / Metal
make clean
make

# DGX Spark / GB10
make clean
make cuda-spark

# Other NVIDIA CUDA systems
make clean
make cuda-generic

# AMD Strix Halo / ROCm
make clean
make strix-halo -j"$(nproc)"

Inspect the model first

MODEL=gguf/DeepSeek-V4-Flash-Vision-Exp-IQ2XXS-w2Q2K-AProjQ4-SExpQ8-OutQ8-imatrix.gguf
VISION=gguf/DeepSeek-V4-Flash-Vision-Encoder.gguf

./ds4 --cpu --inspect -m "$MODEL"

Expected high-level metadata:

GGUF v3
1328 tensors
43 layers
q4_k: 215 tensors
q8_0: 130 tensors
file size: 78.62 GiB

Run the model

Metal with SSD streaming

./ds4 --metal --ssd-streaming \
  --ctx 4096 --temp 0 \
  -m "$MODEL" \
  --vision "$VISION"

CUDA with SSD streaming

./ds4 --cuda --ssd-streaming \
  --ctx 4096 --temp 0 \
  -m "$MODEL" \
  --vision "$VISION"

ROCm with SSD streaming

./ds4 --rocm --ssd-streaming \
  --ctx 4096 --temp 0 \
  -m "$MODEL" \
  --vision "$VISION"

For fully resident testing, remove --ssd-streaming. The model, vision encoder, KV cache, and runtime buffers must all fit in available memory.

Inside the interactive CLI, submit a PNG or JPEG with:

/read /path/to/test-image.png

Please use public or non-sensitive images.

Minimum useful test

Please try at least:

  1. One ordinary photograph with several recognizable objects.
  2. One screenshot or image containing readable text.
  3. One diagram, chart, or spatial-reasoning image.
  4. A follow-up question referring to details from the same image.
  5. A text-only prompt in the same session, to detect general language-quality regressions.

Check for:

  • crashes or backend errors;
  • NaNs or non-finite logits;
  • repeated BOS tokens or looping output;
  • incorrect image-token handling;
  • severe hallucinations or loss of image grounding;
  • unexpected quality differences from the AProjQ8 model;
  • unusually slow vision encoding, prefill, or generation;
  • excessive memory usage or SSD-cache churn.

Optional AProjQ8 comparison

If storage and memory permit, compare against the matching Vision-Exp AProjQ8 language model:

DeepSeek-V4-Flash-Vision-Exp-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8.gguf

Please use the same:

  • DS4 commit;
  • backend and execution mode;
  • context size;
  • vision encoder;
  • image;
  • prompt;
  • temperature.

A matched AProjQ8/AProjQ4 comparison is especially valuable for detecting quantization-related quality drift.

Reporting template

Please post results using this template:

Hardware:
RAM / VRAM:
OS:
Backend:
Build command:
DS4 commit:
Resident or SSD streaming:
Context size:

Q4 SHA-256:
Vision encoder filename:

Exact command:
Image format and dimensions:
Image or public source link:

Result:
Response excerpt:
Vision grounding issues:
Crash/error output:

Vision/prefill timing:
Generation speed:
Peak or reported memory:

AProjQ8 comparison, if available:
Additional environment variables:
Other notes:

Please include complete error messages where possible, but redact private paths, tokens, credentials, and sensitive image content.

Current validation status

The GGUF has already passed:

  • structural GGUF inspection;
  • tensor-count and tensor-type validation;
  • strict imatrix compatibility checks;
  • a text-only Metal SSD-streaming smoke test covering all 43 layers.

Full multimodal validation across different GPUs and operating systems is still needed. No broad Vision quality-equivalence claim is being made yet.

GiorgioOppo avatar Sep 01 '26 12:09 GiorgioOppo

FYI - I am running MacOS 27 beta on my M3 max with 128gb. When I compiled the code with vision support this morning I got lots of warnings like this when the compiler hit ds4_metal.m:

ds4_metal.m:13191:12: warning: 'didModifyRange:' is deprecated: first deprecated in macOS 27.0 - Managed storage has no effect on Apple Silicon, use Shared storage instead [-Wdeprecated-declarations] 13191 | [b didModifyRange:NSMakeRange(0, bytes)]; | ^

Currently running the latest public beta...

kstjohn1 avatar Sep 01 '26 16:09 kstjohn1

FYI - I am running MacOS 27 beta on my M3 max with 128gb. When I compiled the code with vision support this morning I got lots of warnings like this when the compiler hit ds4_metal.m:

ds4_metal.m:13191:12: warning: 'didModifyRange:' is deprecated: first deprecated in macOS 27.0 - Managed storage has no effect on Apple Silicon, use Shared storage instead [-Wdeprecated-declarations] 13191 | [b didModifyRange:NSMakeRange(0, bytes)]; | ^

Currently running the latest public beta...

Thanks for the heads-up; I'll keep it in mind for the next release.

GiorgioOppo avatar Sep 01 '26 16:09 GiorgioOppo

Ran it on M5Max macOS 26, works as expected from the CLI in interactive mode ... analyzed the image (screenshot Xcode) asked if the camera use description was there ... it found it and answered correctly. Ran the server and let it code an iOS app, first to run under one hour and ran all tests in simulator ...

This is how I ran the server after env set MODEL=gguf/DeepSeek-V4-Flash-Vision-Exp-IQ2XXS-w2Q2K-AProjQ4-SExpQ8-OutQ8-imatrix.gguf VISION=gguf/DeepSeek-V4-Flash-Vision-Encoder.gguf

./ds4-server --model "$MODEL" --vision "$VISION" --metal --ctx 250000

Really cool decoding held steady even as context was 160 000 tokens and memory usage was pinned at 90GB the whole time.

Question does the server already has vision support because when it took screenshots of the simulator to replied the image came back empty ...

Charlie-Louis avatar Sep 01 '26 18:09 Charlie-Louis

Ran it on M5Max macOS 26, works as expected from the CLI in interactive mode ... analyzed the image (screenshot Xcode) asked if the camera use description was there ... it found it and answered correctly. Ran the server and let it code an iOS app, first to run under one hour and ran all tests in simulator ...

This is how I ran the server after env set MODEL=gguf/DeepSeek-V4-Flash-Vision-Exp-IQ2XXS-w2Q2K-AProjQ4-SExpQ8-OutQ8-imatrix.gguf VISION=gguf/DeepSeek-V4-Flash-Vision-Encoder.gguf

./ds4-server --model "$MODEL" --vision "$VISION" --metal --ctx 250000

Really cool decoding held steady even as context was 160 000 tokens and memory usage was pinned at 90GB the whole time.

Question does the server already has vision support because when it took screenshots of the simulator to replied the image came back empty ...

How does performance compare between Q4 and Q8?

GiorgioOppo avatar Sep 01 '26 19:09 GiorgioOppo

How does performance compare between Q4 and Q8?

Did Q4 on 2x M5Max 128GB, need to reran the numbers, but it uses MTP if I'm not mistaken.

PS the server and Xcode can now analyze screenshots. PR 937 fixed that.

Charlie-Louis avatar Sep 02 '26 04:09 Charlie-Louis

How does performance compare between Q4 and Q8?

Q4 on 2M5Max over TP runs at 35 t/s with my own MLX based server. Will this vision DS work over TB5 with TP?

Charlie-Louis avatar Sep 02 '26 07:09 Charlie-Louis

How does performance compare between Q4 and Q8?

Q4 on 2M5Max over TP runs at 35 t/s with my own MLX based server. Will this vision DS work over TB5 with TP?

Honestly I don't know, I don't have the hardware to do the tests. However if ds supports it then q4 should also run

GiorgioOppo avatar Sep 02 '26 07:09 GiorgioOppo

OK so TB5 TP RDMA works with ds4 vision. did not try MTP yet

Simple prose question hi / why is the sky blue:

Using ds4 Q2 one machine: 45 t/s

./ds4 -m "$MODEL" --vision "$VISION" --tensor-parallel --role coordinator --listen 192.168.0.1 9911 --transport rdma -c 28192 ./ds4 -m "$MODEL" --vision "$VISION" --tensor-parallel --role worker --coordinator 192.168.0.1 9911 --transport rdma Q2 two machines: 39 t/s

Using ds4-server + Xcode Q2 one machine: 41 t/s

./ds4-server --model "$MODEL" --vision "$VISION" --tensor-parallel --role coordinator --listen 192.168.0.1 9911 --transport rdma ./ds4 -m "$MODEL" --vision "$VISION" --tensor-parallel --role worker --coordinator 192.168.0.1 9911 --transport rdma Q2 two machines: unstable but if it works slow, like 15 t/s

When ds4-server quits on worker:

ds4: Metal model views created in 114860034.874 ms, residency requested in 0.008 ms, warmup 0.000 ms (mapped 889.64 MiB from offset 0.02 MiB) ds4: metal backend initialized for graph diagnostics ds4: memory: KV 0.61 GiB (raw 0.36 + compressed 0.25) + buffers 0.25 GiB + resident model 42.34 GiB = 43.20 GiB planned ds4: memory detail: ctx=32768 prefill_cap=4096 raw_kv_rows=4352 compressed_kv_rows=8194 backend=metal ds4-tp: connecting to 192.168.0.1:9911 ... (Connection refused) ds4-tp: rdma device rdma_en6 (port state 4) ds4-tp: leader connected, transport=rdma gate-timeout=750ms tensor parallelism bound: rank 1, 50/50 expert split, rdma transporttp worker ready for mirrored sessionsds4-tp: timeout waiting gate seq 1 (recv_done 0) ds4: TP gate exchange failed (layer 0 gate 0 seq 1) tp worker eval: tp: gate transport failed% john@MBP14-M5Max ds4-vision-q4 % ./ds4 -m "$MODEL" --vision "$VISION" --tensor-parallel --role worker
--coordinator 192.168.0.1 9911 --transport rdma ds4: iogpu.wired_limit_mb is 0 -- TP expert shard will page lazily; raise it (e.g. sudo sysctl iogpu.wired_limit_mb=120000) for full residency ds4: Metal device Apple M5 Max, 128.00 GiB RAM ds4: Metal 4 tensor API enabled for Tensor kernels ds4: drift-patch flags hc_stable=on norm_unify=on kv_raw_f32=off rope_exp2_log2=off math_safe=off tensor_matmul=on ds4: TP expert shard (rank 1): mapping 219 spans, 42.34 GiB of 78.62 GiB ds4: requesting Metal residency (may take tens of seconds)... done ds4: Metal model views created in 2.164 ms, residency requested in 0.010 ms, warmup 0.000 ms (mapped 43356.08 MiB from offset 5.09 MiB) ds4: Metal mapped mmaped model as 219 disjoint shared buffers across 219 tensor spans ds4: warming sharded tensor pages (rank 1): 42.34 of 78.62 GiB ds4: sharded warm done in 2.4s (checksum=340398298) ds4: requesting Metal residency (may take tens of seconds)... done ds4: Metal model views created in 114996711.102 ms, residency requested in 0.008 ms, warmup 0.000 ms (mapped 889.64 MiB from offset 0.02 MiB) ds4: metal backend initialized for graph diagnostics ds4: memory: KV 0.61 GiB (raw 0.36 + compressed 0.25) + buffers 0.25 GiB + resident model 42.34 GiB = 43.20 GiB planned ds4: memory detail: ctx=32768 prefill_cap=4096 raw_kv_rows=4352 compressed_kv_rows=8194 backend=metal ds4-tp: connecting to 192.168.0.1:9911 ... (Connection refused) ds4-tp: connecting to 192.168.0.1:9911 ... (Connection refused) ds4-tp: connecting to 192.168.0.1:9911 ... (Connection refused) ds4-tp: rdma device rdma_en6 (port state 4) ds4-tp: leader connected, transport=rdma gate-timeout=750ms tensor parallelism bound: rank 1, 50/50 expert split, rdma transporttp worker ready for mirrored sessionsds4: TP gate exchange failed (layer 0 gate 1 seq 173) ^C

Charlie-Louis avatar Sep 02 '26 11:09 Charlie-Louis

Spook to soon about the standalone server, I do not know what happened but the tool calls are broken ... I had it successfully running after PR 937 now Xcode will struggle and the tool calls fails and are broken ... even without the vision enabled. Bumped, will try to figure out what is going on and open an issue if I have more

Charlie-Louis avatar Sep 02 '26 17:09 Charlie-Louis

Picking up the Metal QA request from this machine — I cannot complete a live run here, so posting a blocked status + concrete QA plan for the next Metal tester.

Blockers on this host

  • No Vision-Exp AProjQ4 GGUF present locally (and instructions say not to download ~79 GiB unless required).
  • Disk: only ~114 GiB free under /Users/paride — too tight for the 78.62 GiB LM + encoder + working room.
  • RAM: Apple M5 with 24 GiB unified memory — fully resident Vision+LM is not realistic; SSD-streaming is the only plausible mode, and even then quality/perf numbers would not represent a typical 128 GiB+ Metal box.
  • PR #621 is currently CLOSED (not merged). Testers should confirm whether Vision AProjQ4 support is already on main or still needs that PR head before reporting.

Metal QA plan (for a suitable machine)

Target: Apple Silicon Metal, preferably ≥64–128 GiB RAM.

  1. Fetch exact test tip and record git rev-parse HEAD (PR #621 head if still required, else current main).
  2. make clean && make
  3. Download + SHA-256 verify:
    • DeepSeek-V4-Flash-Vision-Exp-IQ2XXS-w2Q2K-AProjQ4-SExpQ8-OutQ8-imatrix.gguf (a1d0fde9…386cb8)
    • DeepSeek-V4-Flash-Vision-Encoder.gguf
  4. ./ds4 --cpu --inspect -m "$MODEL" — expect 1328 tensors / 43 layers / q4_k: 215.
  5. Primary run (this host class):
    ./ds4 --metal --ssd-streaming --ctx 4096 --temp 0 -m "$MODEL" --vision "$VISION"
  6. Minimum prompts from the issue body: photo, text screenshot, diagram, follow-up about the same image, then a text-only turn.
  7. Fill the issue reporting template (grounding, crashes, t/s, memory). Optional: same prompts on AProjQ8 for drift.

Happy to re-run if someone stages the GGUFs on a machine with enough RAM/disk, or if maintainers confirm Vision AProjQ4 is on main and a smaller smoke artifact exists.

paride-cmd avatar Sep 03 '26 02:09 paride-cmd

Vision-Exp AProjQ4 — ROCm / Strix Halo test report (issue #929)

Hardware:           Framework Desktop — AMD Ryzen AI Max+ 395, Radeon 8060S (gfx1151)
RAM / VRAM:         128 GB unified (125 GiB; ~124 GB GPU-visible via amdgpu.gttsize)
OS:                 Fedora 44, kernel 7.1.8-200.fc44.x86_64
Backend:            ROCm 7.1.1 (HIP 7.1.52802, clang 20.0.0.rocm)
Build command:      make strix-halo -j32 (see "Other notes" for the two overrides)
DS4 commit:         6cae5b8  (PR #952 head, branch aprojq4-dense-attention)
Resident or SSD:    Fully resident (no --ssd-streaming)
Context size:       --ctx 4096, --temp 0

Q4 SHA-256:         a1d0fde967c910e37e4bea00c4db1b2e8a88978770828a95772bc66837386cb8
Vision encoder:     DeepSeek-V4-Flash-Vision-Encoder.gguf (sha 00cd4d81a435364967400a95c42703343e11da6b6f18c5143fe76e1d94d5035f)

Exact command:
  ./ds4 --rocm --ctx 4096 --temp 0 \
        -m DeepSeek-V4-Flash-Vision-Exp-IQ2XXS-w2Q2K-AProjQ4-SExpQ8-OutQ8-imatrix.gguf \
        --vision DeepSeek-V4-Flash-Vision-Encoder.gguf

Image format/dims:  synthetic PNGs (PIL-generated; no real/private content)
  - text_screenshot.png  900x520 — meeting-notes text (OCR target)
  - diagram.png          900x480 — INPUT -> ENCODER -> DECODER block diagram
  - objects.png          900x480 — red circle / blue square / green triangle / yellow star

Result

PASS — no crashes, no NaNs/non-finite logits, no repeated-BOS or looping output, no image-token handling errors.

--cpu --inspect matched the expected metadata exactly: GGUF v3, 1328 tensors, 43 layers, q4_k: 215, q8_0: 130, 78.62 GiB.

Response excerpts (temp 0):

  • Text screenshot (/read text_screenshot.png then "According to the meeting notes, what is the code for the lab door?"):

    "Based on the meeting notes, the code for the lab door is 4821." The model also read the other fields correctly (attendees, decision, budget, sign-off).

  • Diagram ("In the diagram, which box is in the middle?"):

    "the box in the middle is the ENCODER (the orange/brown box)." Correctly read all three labels and the left-to-right arrow flow.

  • Objects ("What color is the shape in the top-right corner?"):

    "The shape in the top-right corner is blue (the blue square)." Correctly identified red circle / green triangle / blue square; the yellow star (which overlaps the square vertically) was described as inside the square — a minor spatial ambiguity from the synthetic image, not a grounding failure.

  • Follow-up on the same image (text screenshot): answered "4821" from the prior image.

  • Text-only ("Without looking at any image, what is 2 plus 2?"): 4 — no general language-quality regression.

Vision grounding issues: none observed (the only imperfection was the overlapping-star description above, attributable to the synthetic image layout).

Crash/error output: none.

Vision/prefill timing: image turns ~122–132 t/s, follow-up text turns ~39–45 t/s. Generation speed: ~17.5–17.8 t/s across all turns. Peak / reported mem: 79.04 GiB planned (78.62 GiB resident model + 0.42 GiB KV/buffers); model tensor mapping prepared in ~19.3 s.

AProjQ8 comparison: not run (would need the ~80 GiB Vision-Exp AProjQ8 GGUF).

Additional env vars: none.

Other notes:

  • Fully resident (not SSD streaming) — the 78.62 GiB model fits the 124 GiB GPU aperture.
  • This build needed the two Fedora/ROCm 7.1.1 overrides documented in STRIXHALO.md (-no-pie in ROCM_CFLAGS, -lamdhip64 appended to ROCM_LDLIBS).
  • This branch (and current main) does not build on ROCm as submitted: three Metal-only TP / deferred-kv-norm symbols (ds4_gpu_add_tensor_tp_flag, ds4_gpu_dsv4_qkv_norm_defer_kv_next, g_tp_block_ctx) are used from code every backend compiles. Same class as open PR #967 (the CUDA fix). To build and test I applied the ROCm fix on the branch: (1) declare g_tp_block_ctx on all GPU backends, (2) move the TP-flag / deferred-kv-norm declarations out of the #ifdef __APPLE__ block in ds4_gpu.h, (3) add no-op / plain-add fallback stubs in ds4_rocm.cu. Those stubs are inert for this single-machine (non-TP) run — TP is Metal-only in this tree — so they do not affect the reported results. The ROCm fix is proposed in https://github.com/GiorgioOppo/ds4/pull/11.

iammac2 avatar Sep 04 '26 16:09 iammac2

Vision-Exp AProjQ4 — ROCm cat-image test (follow-up to #929)

Hardware:           Framework Desktop — AMD Ryzen AI Max+ 395, Radeon 8060S (gfx1151)
RAM / VRAM:         128 GB unified (125 GiB; ~124 GB GPU-visible via amdgpu.gttsize).
                    Dedicated VRAM is 512 MiB — the model lives in GTT (see Other notes).
OS:                 Fedora 44, kernel 7.1.8-200.fc44.x86_64
Backend:            ROCm 7.1.1 (HIP 7.1.52802, clang 20.0.0.rocm)
Build command:      make strix-halo -j32 (Fedora overrides: -no-pie in ROCM_CFLAGS,
                    -lamdhip64 appended to ROCM_LDLIBS)
DS4 commit:         6cae5b8 (PR #952 head) + ROCm TP/kv-norm build fix
                    (https://github.com/GiorgioOppo/ds4/pull/11)
Resident or SSD:    Fully resident (no --ssd-streaming)
Context size:       --ctx 4096, --temp 0

Q4 SHA-256:         a1d0fde967c910e37e4bea00c4db1b2e8a88978770828a95772bc66837386cb8
Vision encoder:     DeepSeek-V4-Flash-Vision-Encoder.gguf

Exact command:
  ./ds4 --rocm --ctx 4096 --temp 0 \
        -m DeepSeek-V4-Flash-Vision-Exp-IQ2XXS-w2Q2K-AProjQ4-SExpQ8-OutQ8-imatrix.gguf \
        --vision DeepSeek-V4-Flash-Vision-Encoder.gguf
  /read kitten-test.jpg
  What animals are in this photo, and how many do you see?

Image format/dims:  kitten-test.jpg — JPEG 500×333 (real photograph of a kitten).
Image or source:    local test image; not a public URL.

Result:             PASS — no crashes, no NaNs, no looping/BOS repeats.
Response excerpt:
  (empty prompt)  "…a fluffy, long-haired tabby kitten … brown and black tabby coat
   with a distinct white muzzle, a white chest, and a prominent white front paw …
   large, bright blue eyes … lying down on a soft, white surface … soft, blurred
   white background."
  (question)      "There is 1 animal in this photo. It is a kitten (a young cat)."
Vision grounding:   Correct object identity and count; no grounding errors.
Crash/error output: none.

Vision/prefill timing:  image turn 95.52 t/s, follow-up 43.94 t/s (image = 96 vision tokens).
Generation speed:   17.69–17.80 t/s.
Peak / reported mem:  79.04 GiB planned (78.62 GiB model + 0.42 GiB KV/buffers), in GTT.
                      GPU telemetry (rocm-smi, 3 s polling): 100% utilisation,
                      82.3 W peak, 63 °C peak, SCLK held at 1000 MHz — no throttling.

AProjQ8 comparison:    not run.
Additional env vars:   none.
Other notes:           The model is resident in GTT, not the 512 MiB dedicated VRAM —
                       so nvtop lists gnome-shell (not ds4) as the top "GPU MEM"
                       process; ds4's 78.62 GiB appears under "HOST MEM" instead.
                       rocm-smi is the correct tool for gfx1151 memory/compute.

iammac2 avatar Sep 05 '26 08:09 iammac2

Vision-Exp AProjQ4 — CUDA / DGX Spark test report

Hardware:           NVIDIA DGX Spark / GB10
RAM / VRAM:         128 GB unified (121 GiB reported by Linux)
OS:                 Ubuntu 24.04.4 LTS, kernel 6.17.0-1032-nvidia, aarch64
Driver / CUDA:      NVIDIA 580.173.02 / CUDA 13.0
Backend:            CUDA, sm_121a
Build command:      make clean && make -j4 cuda-spark
DS4 commits:        7a5002de (PR #952 head) + PR #967 applied as e9528de
Context / sampling: --ctx 4096 --temp 0, /nothink
Modes tested:       Fully resident and --ssd-streaming

Q4 SHA-256:         a1d0fde967c910e37e4bea00c4db1b2e8a88978770828a95772bc66837386cb8
Vision SHA-256:     00cd4d81a435364967400a95c42703343e11da6b6f18c5143fe76e1d94d5035f

Model inspection

./ds4 --cpu --inspect matched the issue metadata: GGUF v3, 1328 tensors, 43 layers, 215 q4_k tensors, 130 q8_0 tensors, 78.62 GiB.

Fully resident CUDA result

PASS: no crash, NaN/non-finite output, repeated BOS, loop, or image-token error.

Command:

./ds4 --cuda --ctx 4096 --temp 0 \
  -m "$MODEL" --vision "$VISION"

The startup built 259 aligned CUDA artifacts (74.16 GiB) in 14.1 s and reported 79.04 GiB planned. An idle post-test nvidia-smi snapshot reported 92,452 MiB for the process.

Input Result Prefill Generation
Public bus photo, JPEG 810x1080 Correctly described the electric bus and street scene; follow-up counted 3 people and identified the bus 212.18 t/s 25.57 t/s
Photo follow-up Correct: 3 people, blue/white electric city bus 87.29 t/s 25.92 t/s
Build screenshot, PNG 1400x900 Correct OCR: Build 42, missing CUDA_HOME, exit status 2 390.95 t/s 25.83 t/s
Screenshot follow-up Correct: Build 42 and CUDA_HOME 88.18 t/s 25.71 t/s
Pipeline diagram, PNG 1200x700 Correct INPUT -> ENCODER -> SUMMARY flow and colors 394.92 t/s 25.63 t/s
Spatial fixture, PNG 1000x800 Correct blue circle / red triangle / green square positions 390.93 t/s 25.45 t/s
Text-only 17 * 6 Correct: 102 115.65 t/s 24.49 t/s

Public photograph source: https://ultralytics.com/images/bus.jpg

These are single-run functional measurements, not a throughput benchmark.

SSD-streaming smoke result

Functional PASS, but unexpectedly slow on this host.

Command:

./ds4 --cuda --ssd-streaming --ctx 4096 --temp 0 \
  -m "$MODEL" --vision "$VISION"

Startup reported CUDA host registration skipped: operation not supported and 3.18 GiB planned. During the first screenshot turn, the CUDA device cache grew progressively to 78.04 GiB. The answer was correct, but prefill/generation fell to 14.94/1.70 t/s; the short follow-up ran at 1.39/1.35 t/s. A post-turn nvidia-smi snapshot reported 87,239 MiB for the process. This was a cold, single-run smoke test and needs a controlled rerun before drawing a performance conclusion.

Native CUDA checks

  • make cuda-spark: PASS.
  • CUDA Q8 scratch: PASS.
  • DGX Spark MoE parity: PASS, zero exact assignment failures.
  • MXFP4 CUDA parity: PASS.
  • MMQ parity: all cases PASS after adding the same no-fold test stub already present in tests/test_mxfp4_cuda.cu.
  • CUDA Q4 epilogue: all sanitizer, production, and grouped cases PASS with the same local test stub.
  • CUDA long-context regression: OK after manually linking ds4_image.o.

The unmodified test targets have two harness/link failures on this head:

  1. test-mmq-parity-cuda and test-cuda-q4-epilogue fail to link because ds4_cuda_q8_fold_take_q81 is undefined.
  2. cuda-regression fails to link because ds4_deepseek4_attention_bounds is undefined; adding ds4_image.o to the link makes the test pass.

make test also expects a separate ds4flash.gguf fixture not present on this host, so the model-dependent part of that aggregate target was not completed.

A matched AProjQ8 comparison was not run.

Matthley avatar Sep 12 '26 18:09 Matthley