跳到主要内容

Qwen3.5-0.8B-AX650-C256-P6K-CTX8K-HP 部署指南

Qwen3.5-0.8B-AX650-C256-P6K-CTX8K-HP 用于图像与文本理解。本页说明 M.2 算力卡的接入条件、部署步骤与结果检查方法。

已实测,效果仍需评估。查看部署效果。

准备运行环境​

本页效果展示使用 RK3576 + AX8850 16GB M.2;其他容量或平台需重新确认模型能否加载并正确运行。

在连接算力卡的 Linux 主机终端执行,RK3576 使用 ARM64 环境。首次部署先完成驱动与设备检查、编译 AXCL 大模型运行时和下载工具安装。已完成这些步骤可直接下载模型。

后文使用设备 0,运行前用 axcl-smi 确认设备可用。

下载模型与样例​

本页使用 AXERA-TECH/Qwen3.5-0.8B-AX650-C256-P6K-CTX8K-HP 的固定版本。下面下载本页选用的 30 个文件。

MODEL_DIR=~/edgeaccel/models/qwen3-5-0-8b-ax650-c256-p6k-ctx8k-hp/77df2130de56
mkdir -p "$MODEL_DIR"
~/edgeaccel/hf-env/bin/hf download AXERA-TECH/Qwen3.5-0.8B-AX650-C256-P6K-CTX8K-HP \
"config.json" \
"qwen3_5_text_p256_l0_together.axmodel" \
"qwen3_5_text_p256_l1_together.axmodel" \
"qwen3_5_text_p256_l2_together.axmodel" \
"qwen3_5_text_p256_l3_together.axmodel" \
"qwen3_5_text_p256_l4_together.axmodel" \
"qwen3_5_text_p256_l5_together.axmodel" \
"qwen3_5_text_p256_l6_together.axmodel" \
"qwen3_5_text_p256_l7_together.axmodel" \
"qwen3_5_text_p256_l8_together.axmodel" \
"qwen3_5_text_p256_l9_together.axmodel" \
"qwen3_5_text_p256_l10_together.axmodel" \
"qwen3_5_text_p256_l11_together.axmodel" \
"qwen3_5_text_p256_l12_together.axmodel" \
"qwen3_5_text_p256_l13_together.axmodel" \
"qwen3_5_text_p256_l14_together.axmodel" \
"qwen3_5_text_p256_l15_together.axmodel" \
"qwen3_5_text_p256_l16_together.axmodel" \
"qwen3_5_text_p256_l17_together.axmodel" \
"qwen3_5_text_p256_l18_together.axmodel" \
"qwen3_5_text_p256_l19_together.axmodel" \
"qwen3_5_text_p256_l20_together.axmodel" \
"qwen3_5_text_p256_l21_together.axmodel" \
"qwen3_5_text_p256_l22_together.axmodel" \
"qwen3_5_text_p256_l23_together.axmodel" \
"qwen3_5_text_post.axmodel" \
"model.embed_tokens.weight.bfloat16.bin" \
"qwen3_5_tokenizer.txt" \
"qwen3_5_vision.axmodel" \
"post_config.json" \
--revision 77df2130de56c3e18bc78d48c5f4cfd03f7e5aeb \
--local-dir "$MODEL_DIR"
cd "$MODEL_DIR"

保留当前终端中的 MODEL_DIR 变量,后续命令沿用此目录。下载受阻或需要离线复制时,见下载方式与文件校验。

核对运行配置​

配置文件:config.json。

项目当前配置
运行时模型名称AXERA-TECH/Qwen3.5-0.8B
分词器类型(tokenizer_type)Qwen3_5VL
多模态类型(vlm_type)Qwen3VL
Transformer 层数24
分片命名模板qwen3_5_text_p256_l%d_together.axmodel
Embedding 模式否
配置字段文件路径同提交文件表
filename_post_axmodelqwen3_5_text_post.axmodel已找到
filename_tokens_embedmodel.embed_tokens.weight.bfloat16.bin已找到
url_tokenizer_modelqwen3_5_tokenizer.txt已找到
filename_image_encoder_axmodelqwen3_5_vision.axmodel已找到
post_config_pathpost_config.json已找到

逐层核对 24 个分片,不能用同系列其他版本补缺。文件名检查只能证明文件布局一致,实际张量和后端兼容性仍需加载验证。

检查完整模型包​

在模型根目录执行文件检查:

cd "$MODEL_DIR"
python3 - <<'PY'
import json
from pathlib import Path
p = Path(".")
c = json.loads((p / "config.json").read_text())
files = [c["template_filename_axmodel"] % i for i in range(c["axmodel_num"])]
files += [c[k] for k in ["filename_post_axmodel","filename_tokens_embed","url_tokenizer_model","filename_image_encoder_axmodel","post_config_path"] if c.get(k)]
missing = [str(p / f) for f in files if not (p / f).is_file()]
assert not missing, missing
print("模型配套文件齐全")
PY

此包按新 axllm 配置接口核对。使用本站编译的 AXCL 程序,包内 bin/axllm 可能是 AX650 板端程序,不能仅因同为 ARM64 就直接使用。

启动单卡服务​

终端 1 执行,保持服务前台运行:

AXLLM=~/edgeaccel/src/ax-llm/build-axcl/install/bin/axllm
"$AXLLM" version
AXLLM_DEVICES=0 "$AXLLM" serve "$MODEL_DIR" --port 8000

版本输出必须显示 AXCL 后端。保留内存预检;若提示 CMM 不足,先缩小模型或使用较短上下文的独立编译包,不关闭内存预检强制运行。

发送图片问答请求​

在同一主机终端 2 执行。先从 /v1/models 获取实际模型名称。先下载与下方效果展示相同的样例图,再发送请求。

mkdir -p ~/edgeaccel/inputs/three-astronauts
~/edgeaccel/hf-env/bin/hf download AXERA-TECH/FastVLM-1.5B-GPTQ-Int4 image.png \
--revision 0cdae3c2711cc457708b9bb5b4dee77839755d7a \
--local-dir ~/edgeaccel/inputs/three-astronauts
printf '%s %s\n' '622ae2d01ff4467fa69a7888728d776650117a0f4887e96ba0fb9a8a6d77b3c3' ~/edgeaccel/inputs/three-astronauts/image.png | sha256sum -c -

该图是下方问答实际使用的输入;校验输出应为 OK。

python3 - <<'PY'
import json, urllib.request, base64
from pathlib import Path
base = "http://127.0.0.1:8000"
with urllib.request.urlopen(base + "/v1/models", timeout=30) as r:
model = json.load(r)["data"][0]["id"]
image = Path("~/edgeaccel/inputs/three-astronauts/image.png").expanduser()
mime = "image/png" if image.suffix.lower() == ".png" else "image/jpeg"
encoded = base64.b64encode(image.read_bytes()).decode()
payload = {"model": model, "messages": [{"role": "user", "content": [
{"type": "text", "text": "Describe the image in one sentence."},
{"type": "image_url", "image_url": {"url": f"data:{mime};base64,{encoded}"}}
]}], "max_tokens": 128, "temperature": 0}
endpoint = "/v1/chat/completions"
payload.update(enable_thinking=False, stream=False)
request = urllib.request.Request(base + endpoint,
data=json.dumps(payload).encode(), headers={"Content-Type": "application/json"})
with urllib.request.urlopen(request, timeout=300) as r:
result = json.load(r)
print(result["choices"][0]["message"]["content"])
PY

检查 choices 中的回复是否完整且与输入相关。替换 messages 中的提问文字,可复现下方其他问题;保持其余输入和生成参数一致。回复达到 max_tokens 上限时可能被截断,可先要求简短回答。HTTP 请求成功只说明接口可用,仍需按下节核对效果。

运行时依据:固定源码版本、配置接口。

查看部署效果​

已运行,效果仍需评估 · RK3576 + AX8850 16GB M.2。以下输入与输出来自本页固定版本的实际运行。

三次单图请求均返回文本。中文仍推测面带微笑,英文附庆祝或展示的意图;人数正确,表情与部分姿态描述未通过。

点击图片可查看原尺寸。

示例 1:输入

Describe the image in one sentence.

实际回复

Three astronauts in white spacesuits stand in a forest, with one raising their hands as if celebrating or presenting.

示例 2:输入

How many people are in the image?

实际回复

There are **three people** in the image.

They are all wearing white spacesuits and appear to be astronauts or spacewalkers in a forest-like environment. The central figure is standing upright, while the two flanking them are crouched or leaning forward, suggesting movement or preparation for an action.

✅ Final Answer: **3**

示例 3:输入

请用一句简短的中文描述图片,不要推测人物的意图或表情。

实际回复

三名宇航员在茂密的竹林中,身穿白色太空服,面带微笑,姿态轻松。

使用时注意:

  • 英文回复包含“庆祝、展示、准备动作”等推测;中文回复出现“面带微笑”,未满足不推测表情的要求。
  • HP 与其他版本是不同编译模型包;本页短请求不能作为统一性能或精度排名。

这些结果用于对照部署后的输出,未覆盖完整数据集精度或长期连续运行。

查看样例环境与运行耗时

环境:RK3576 + AX8850 16GB M.2。模型版本:77df2130de56c3e18bc78d48c5f4cfd03f7e5aeb。

组件版本或配置
主机系统Ubuntu 24.04 / Armbian 25.11.0-trunk,aarch64,主机内存约 4GB
内核6.1.115-vendor-rk35xx
AXCL / 驱动V3.16.0_20260729180218
固件 / CMMV3.16.0;CMM 总量 15232MiB
AX-LLM 提交8501c22b940f8c5804cb35044c5ffc136918b8f1;原版 Release / AXCL / Linux aarch64
指标实测值计时或统计范围
完成的生成请求3本页三个短请求;接口完成与回答质量分别判断
三次请求耗时7.848 / 15.297 / 7.336 s按展示顺序;HTTP 请求至完整响应的墙钟耗时,不含模型加载
服务就绪等待52.09 s启动进程至健康检查成功,包含模型加载和轮询等待
三次首 token 延迟3396.42 / 3897.35 / 3873.23 ms运行程序返回的 usage.ttft_ms,不是客户端流式到达时间

适用范围:

  • 本页结果来自 16GB 卡,不作为 8GB 卡的容量验证。temperature=0、enable_thinking=false、stream=false、max_tokens=128。
  • 仅测试本页固定样例,未覆盖完整数据集、多图、视频、最大上下文或长期连续运行。

遇到加载、内存或后端错误时,按常见问题处理。需要更换输入或接入业务时,按检查输出与记录结果保留自己的结果。

查看文件用途与版本信息
文件 / 目录内路径用途
config.json运行配置
qwen3_5_text_post.axmodel编译模型;按目录区分芯片和规格
model.embed_tokens.weight.bfloat16.binEmbedding 权重
qwen3_5_tokenizer.txt分词器 / 字典,必须配套
qwen3_5_vision.axmodel编译模型;按目录区分芯片和规格
post_config.json运行配置
qwen3_5_text_p256_l0_together.axmodel编译模型;按目录区分芯片和规格
qwen3_5_text_p256_l10_together.axmodel编译模型;按目录区分芯片和规格
qwen3_5_text_p256_l11_together.axmodel编译模型;按目录区分芯片和规格
qwen3_5_text_p256_l12_together.axmodel编译模型;按目录区分芯片和规格
qwen3_5_text_p256_l13_together.axmodel编译模型;按目录区分芯片和规格

仓库提交:77df2130de56c3e18bc78d48c5f4cfd03f7e5aeb。仓库中的 26 个 .axmodel 文件可能包括多个芯片、规格和分片。运行时使用本页指定的配套文件,完整列表见固定版本目录。

补充说明与版本差异
  • 名称中的编译规格用于区分上下文与分块版本;不要仅修改 config.json 就视为扩大模型支持的上下文。
  • 较大模型或长上下文需要单独评估峰值 CMM;不承诺8GB 单卡可以加载。

参考资料​

返回完整模型目录。