llama.cpp b11767:从 GGUF 元数据读取 LFM2 分块参数
原标题:b11767
AI 摘要
llama.cpp 发布 b11767 版本,主要改动在 mtmd 模块:转换 LFM2-VL mmproj 时,将 min_tiles、max_tiles、tile_size 和 max_pixels_tolerance 等 tiling 参数写入 GGUF 元数据,clip.cpp 读取这些参数并以原有常量作为默认值;do_image_splitting=false 映射为 min_tiles=max_tiles=1(即不分块)。该实现基于 Michael DM 的原始方案 #25524 重做,并修复了测试。发布同时提供 macOS、Linux、Windows、Android 等多平台预编译包。
正文节选
<details open> mtmd : read LFM2 tiling params from GGUF metadata (#30840) * mtmd : read LFM2 tiling params from GGUF metadata Write min_tiles, max_tiles, tile_size and max_pixels_tolerance from processor_config.json when converting LFM2-VL mmproj, read them in clip.cpp with the previous constants as defaults. do_image_splitting=false maps to min_tiles=max_tiles=1 (no tiling). Rebased version of #25524, original implementation by Michael DM (@michael-dm). Co-authored-by: Michael DM <usable_s