DEV Community

Anguo
Anguo

Posted on

Six Graphs Out of Nine: InternVL3.5-2B on QCS6490, and the FP32 Tensor Hiding in the Vendor's Own Asset

Six Graphs Out of Nine: InternVL3.5-2B on QCS6490, and the FP32 Tensor Hiding in the Vendor's Own Asset

After two LLMs went through the manual export chain on the Qualcomm QCS6490 (Dragonwing RB3 Gen 2) — Qwen3-0.6B at 1,555 tok/s prefill, Llama 3.2 1B at 1,024 — the obvious next step was a vision-language model. InternVL3.5-2B: an InternViT vision encoder feeding a Qwen3-style text backbone, Apache-2.0, and nobody had published a single number for it on this chip.

This time the export script wasn't the problem. The wall was inside the vendor's own pre-quantized asset.

What got measured

The model splits into 9 graphs: one vision encoder (448×448 image in, 256 visual tokens out) and a text backbone in 4 parts × 2 graphs each (a 128-token prompt graph and a 1-token decode graph), context 512, w4a16 — same manual AI Hub chain as the earlier entries, same per-graph profile method on real hardware. All 9 graphs compiled. Six profiled on the device:

Graph Prompt (128 tok) Decode (1 tok)
Part 1 — layers 0–8 compose FAILED compose FAILED
Part 2 — layers 9–17 68,980 µs 20,224 µs
Part 3 — layers 18–26 69,011 µs 20,300 µs
Part 4 — layer 27 + lm_head 36,122 µs 22,291 µs
Vision encoder compose FAILED —

Parts 2–4 subtotal: 174,113 µs per 128 prompt tokens, 62,815 µs per decode token. There is no full-model tok/s in this post, deliberately. Part 1 sits on the critical path of every forward pass; adding up the survivors and presenting a total would fabricate a number the hardware never produced. The bench records the total as UNKNOWN and keeps the per-part figures.

The blocker, precisely

Linking the text graphs fails with the device naming the culprit itself:

Tensor '/model/model/layers.2/mlp/down_proj/Conv_bias' has a floating-point
type which is not supported by the targeted device. Please quantize the
model including its I/O and try again.
Enter fullscreen mode Exit fullscreen mode

Profiling part 1 and the vision encoder dies one step later, at QnnModel_composeGraphsFromDlc: MODEL_GRAPH_ERROR — five-plus attempts on part 1, three on the vision encoder, identical error. One bounded experiment to localize it: recompiling part 1 with -O1 instead of -O0 changed nothing. Compile options are innocent. The defect is in the shipped fp16mix AOT asset: at least one Conv bias in part 1 (the linker names layer 2's down_proj bias) went out unquantized, and the vision encoder carries the same class of problem — while the corresponding tensors in parts 2–4 compose and run fine. The official Genie pipeline presumably massages these tensors somewhere on the local side; the manual chain bypasses that pipeline and drives straight into them. An issue with the job IDs and the exact error strings is going to the vendor, same as the export-script bug before it.

Three side quests, for anyone reproducing this

The template pins transformers 5.7.0. The environments that exported Qwen3 and Llama (transformers 4.45) can't even import this model's template. Each model in this series now gets its own pinned environment; sharing one is a false economy.

aimet-onnx has no aarch64 wheel. On the ARM64 build machine, pip install aimet-onnx==2.37.0 finds no matching distribution at all — and the vision encoder's class eagerly builds an AIMET QuantSim session at collection time, so the split dies with a NameError before doing anything. Reading the code showed that session is only used by forward() for local evaluation; the hub deployment path just moves the pre-built ONNX bundle from the AOT checkpoint. So the split no-ops that one initializer — and then verifies the claim instead of trusting it: the serialized vision encoder ONNX and its encodings file came out byte-identical (sha256) to the vendor's originals. A patch you can't verify is a patch you don't ship.

The 9.39 GB asset download stalls silently at 70%. The built-in downloader froze at 6,611,808,256 bytes — progress bar static, temp file not growing, process alive, connection dead, no timeout anywhere. Fix: kill it, move the partial file into the cache position, and finish with curl -C - (the S3 bucket honors Range requests). Final size matched Content-Length exactly and the archive tested clean. Lesson now applied to the whole series: fetch big assets into the cache with a resumable tool first, then start the pipeline.

Where this leaves the series

Two LLMs measured end to end, one VLM measured in the six graphs the vendor's asset allows, with the blocker root-caused to a specific tensor in a specific layer. That's the honest state of InternVL3.5-2B on QCS6490 today — first public record either way. If the vendor fixes the asset, the remaining three graphs are a re-run away, and this post gets a sequel with the full row filled in.

Method note: figures are per-graph AI Hub profile estimated_inference_time on the RB3 Gen 2 device, not a Genie end-to-end run — the same method as the Qwen3-0.6B and Llama 3.2 1B entries. Full job IDs and the failure record are on the model's Hugging Face card (anguoyang/internvl3.5-2b-qcs6490) and in the qcs-bench leaderboard.

Top comments (0)