请求加入做种队列,或现在用 pf download AXERA-TECH/Qwen3-VL-4B-Instruct-LoRA-AX650 获取(CLI 指南)。
Ready-to-run package for Qwen/Qwen3-VL-4B-Instruct on AX650 / NPU3. It includes an AX650 aarch64 axllm server, 36 compiled text layers, a fixed-shape image encoder, and two runtime-selectable LoRA adapters. This release supports text chat and single-image requests through the OpenAI-compatible chat API.
max_token_len: 2047. Leave room for the generated response.The image encoder contributes 144 visual soft tokens per image: (384 / 16 / 2)² = 144, using the packaged 16-pixel patch size and spatial merge size of 2. The total input-token count also includes the text prompt and chat-format tokens. Keep the full request, including visual tokens, within the prefill and context limits.
These are single-request measurements on AX650 / NPU3 with requests sent serially. TTFT means time to first token; the image row includes image preparation and encoding.
| Request | Input tokens | Prefill chunks | TTFT |
|---|---|---|---|
| Short text, ChartQA adapter | 34 | 1 | 1,031 ms |
| Medium text, ChartQA adapter | 575 | 5 | 6,918 ms |
| Long text, ChartQA adapter | 995 | 8 | 14,246 ms |
| First text request after switching to Design | 32 | 1 | 2,189 ms |
| Packaged chart image, ChartQA adapter | 173 | 2 | 2,828 ms |
The 575- and 995-token prompts used a repeated word list and asked for a one-word response; both returned the requested word. The first request after an adapter change includes adapter loading and rebinding. The image request crosses the 128-token first prefill chunk because its 144 visual soft tokens are added to the prompt.
Measured on AX650 / NPU3 with this package.
| Item | Value |
|---|---|
| Package size, excluding Git history | 6.44 GiB |
| CMM used by the server (incremental) | approximately 5.93 GiB |
The package includes 39 AXModels, embedding weights, both LoRA adapters, and runtime files. CMM use may vary with the runtime environment.
Qwen3-VL-4B-Instruct_vision.axmodel is the image encoder selected by config.json. The package also contains Qwen3-VL-4B-Instruct_vision_u8.axmodel; the startup script does not select that file. The fixed 384 × 384 profile limits fine-detail chart reading.
At this fixed resolution, chart reading is unreliable: this build answered 2 of 24 questions correctly in a ChartQA check. Check image-based answers before relying on them.
Set task_id on each chat request:
task_id |
Intended task |
|---|---|
qwen3-vl-lora-chartqa |
Chart questions |
qwen3-vl-lora-design |
Design assistance |
The package stores both adapters as BF16 matrix-input payloads. Adapter selection is process-global, so send requests serially when switching tasks.
These examples demonstrate dynamic LoRA loading and switching; their task accuracy may be insufficient for practical use.
.
├── README.md
├── bin/axllm
├── start_axllm.sh
├── axllm.version.json
├── config.json
├── post_config.json
├── qwen3_tokenizer.txt
├── model.embed_tokens.weight.bfloat16.bin
├── qwen3_vl_text_p128_l0_together.axmodel ... qwen3_vl_text_p128_l35_together.axmodel
├── qwen3_vl_text_post.axmodel
├── Qwen3-VL-4B-Instruct_vision.axmodel
├── Qwen3-VL-4B-Instruct_vision_u8.axmodel
├── lora/
│ ├── qwen3-vl-lora-chartqa/ (layer_00.bf16.bin ... layer_35.bf16.bin, manifest)
│ └── qwen3-vl-lora-design/ (layer_00.bf16.bin ... layer_35.bf16.bin, manifest)
├── assets/chartqa_00.png
└── runtime/lib/libax_engine.so
The original Hugging Face weights are not included. The startup script resolves all runtime files relative to this package.
Download the package with the Hugging Face CLI on a network-connected machine:
mkdir -p Qwen3-VL-4B-Instruct-LoRA-AX650
cd Qwen3-VL-4B-Instruct-LoRA-AX650
hf download AXERA-TECH/Qwen3-VL-4B-Instruct-LoRA-AX650 --local-dir .
Transfer this directory to an AX650 board if it was downloaded elsewhere. From the package directory on the board, start the bundled server:
chmod +x ./bin/axllm ./start_axllm.sh
./start_axllm.sh 8000
start_axllm.sh sets the bundled runtime library path and runs bin/axllm serve. In another terminal on the board, check the server:
curl -fsS http://127.0.0.1:8000/health
curl -fsS http://127.0.0.1:8000/v1/models
A healthy server reports "status": "healthy" and "max_concurrency": 1. The model list reported this ID:
AXERA-TECH/Qwen3-VL-4B-Instruct-LoRA-VLM-AX650-P1536-C2048-Chunk128
Use that exact ID in the model field of every request.
This request selects the Design adapter:
curl -sS http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"AXERA-TECH/Qwen3-VL-4B-Instruct-LoRA-VLM-AX650-P1536-C2048-Chunk128","task_id":"qwen3-vl-lora-design","messages":[{"role":"user","content":"Name three colors that work well with navy blue. Be brief."}],"max_tokens":64,"temperature":0}'
Example response content (choices[0].message.content): "White, beige, gold".
The packaged sample is a bar chart at assets/chartqa_00.png:
From the package directory on the board, send it as a base64 data URL. The base64 -w 0 option is available on the board's GNU coreutils.
IMAGE_DATA=$(base64 -w 0 assets/chartqa_00.png)
curl -sS http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
--data-binary @- <<JSON
{"model":"AXERA-TECH/Qwen3-VL-4B-Instruct-LoRA-VLM-AX650-P1536-C2048-Chunk128","task_id":"qwen3-vl-lora-chartqa","messages":[{"role":"user","content":[{"type":"text","text":"What is the index value of Coffee?"},{"type":"image_url","image_url":{"url":"data:image/png;base64,$IMAGE_DATA"}}]}],"max_tokens":32,"temperature":0}
JSON
For this sample, the package returned "1" in choices[0].message.content, although the chart shows 82.2 for Coffee. This illustrates the image accuracy limitation above.
If you need the original model files or want to rebuild the deployment artifacts, start with:
139953715有文件?提交种子。
发布种子model.embed_tokens.weight.bfloat16.bin 742 MiBlora/qwen3-vl-lora-chartqa/layer_00.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_01.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_02.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_03.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_04.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_05.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_06.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_07.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_08.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_09.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_10.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_11.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_12.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_13.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_14.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_15.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_16.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_17.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_18.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_19.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_20.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_21.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_22.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_23.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_24.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_25.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_26.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_27.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_28.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_29.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_30.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_31.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_32.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_33.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_34.bf16.bin 2 MiBlora/qwen3-vl-lora-chartqa/layer_35.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_00.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_01.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_02.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_03.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_04.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_05.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_06.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_07.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_08.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_09.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_10.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_11.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_12.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_13.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_14.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_15.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_16.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_17.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_18.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_19.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_20.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_21.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_22.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_23.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_24.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_25.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_26.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_27.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_28.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_29.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_30.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_31.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_32.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_33.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_34.bf16.bin 2 MiBlora/qwen3-vl-lora-design/layer_35.bf16.bin 2 MiBQwen/Qwen3-VL-4B-Instruct