vision 段(主因)查 /health:
{"status":"ok","max_context":262144,"model":"qwen3.8-flash-next-iq2_xs",
"images": false, ...}
images 来自 server.py 的 self.vision is not None,而 self.vision 只由配置里的 vision 段构造。 当前 strata-iq2_xs.json 没有 vision 键 —— 因为 2026-10-22 那版是本地编译的 engine 0.1.47,BUILD.json 写着 "vision": "none",setup 当时就没写视觉配置。
直接发图会被拒:
HTTP 400 {"error":{"message":"this server was started without the vision encoder
(run setup again and choose 'vision'), so it cannot read images"}}
strata-vision 是 llama.cpp mtmd + mmproj 的独立进程,需要 mmproj-Qwen3.8-Flash-Next-BF16.gguf(907 MB)。 find /home/zyw/Strata-data -iname '*mmproj*' → 空。当初视觉是关的,这个文件从没下过。 所以就算把配置打开,也起不来编码器。
~/.dsh/profiles/web/cordis.patch.yml:
- id: qwen3.8-flash-next
input:
- text # ← 只有 text,前端不给附图
mmproj-Qwen3.8-Flash-Next-BF16.gguf(907,543,008 B),迅雷 25–30 MB/s 约 35 秒
b1a82259702816a5330d7bd7607cd9676b11780e79ff7348c21103ff3ce49bd0 与 HF 公布值一致/home/zyw/Strata-data/models/IQ2_XS/enable_vision.py,同目录留档):
args 追加 --vision--vram-reserve-mib 1024 → 2048(给编码器留位)vision 段:
"vision": {
"exe": "/home/zyw/Strata/engine/strata-vision",
"mmproj": ".../models/IQ2_XS/mmproj-Qwen3.8-Flash-Next-BF16.gguf",
"model": ".../IQ2_XS-00001-of-00002.gguf",
"gpu": true,
"max_tokens": 1024
}strata-iq2_xs.json.bak-visionbash ~/strata-model.sh stop && bash ~/strata-model.sh iq2_xs,约 2 分钟)启动日志新增:
[strata] images: the image encoder starts with the first picture and stops after 120 s without one
ready: http://127.0.0.1:8090/v1 (... images on, API key required)
/health → "images": true ✅
cordis.patch.yml 里该模型:
input:
- text
- image
YAML 已用 js-yaml 验证可正常解析。
⚠️ DSH 的 profile 配置在启动时挂载,没有热重载(
profile-boot注释:mount the profile… at boot)。 而当前 DSH 进程(pid 338588,192.168.31.114:3080)正是本会话的宿主,我不能重启它。 → 需要你重启一次 DSH,之后该模型的附图按钮才会出现。
| 项 | 结果 |
|---|---|
/health | images: true ✅ |
真图推理(face1_front.jpg,1024 图 token) | 17.2 s,prompt_tokens=735(其中图像约 670)、completion=105 |
| 回答质量 | 「这是一张年轻女性的面部特写自拍照。」(正确) |
| 文本稳态(开视觉后) | 63.5–64.5 tok/s(第 3/4 次请求) |
| 文本稳态(开视觉前) | 70.5 tok/s |
| 代价 | 约 -7~10% 文本解码速度(显存预留 1024→2048,专家缓存 6578→5825 槽) |
重启后第一次请求实测 2.0 tok/s(455 token 跑了 225 秒),第二次就回到 45.5,第三/四次 64 左右。 原因不是视觉,是 PLE 查表(28.8 GB)的页缓存全冷 —— 每个 token 都要从 SATA SSD 随机读行。 判断方法:换一条新提示词再发一次,若明显变快就是冷缓存,别以为模型坏了。
| 需求 | 改法 |
|---|---|
| 图片更快 / 更省显存 | vision.max_tokens 1024 → 300(细节变少) |
| 彻底不占显存 | vision.gpu 改 false(编码器走 CPU,单图约 3–13 s) |
| 文本速度回满 | --vram-reserve-mib 改回 1024(编码器与专家缓存抢显存,可能触发抖动) |
| 编码器常驻 | 默认首图启动、120 s 空闲回收;频繁用图可连续请求保持热态 |
bash ~/strata-model.sh stop
cp ~/Strata/strata-iq2_xs.json.bak-vision ~/Strata/strata-iq2_xs.json
bash ~/strata-model.sh iq2_xs
DSH 侧把 input 里的 - image 删掉即可(同样需重启生效)。
http://192.168.31.31:8090/v1,IQ2_XS,images on,262144 上下文