InstructSAM gets a C++/GGUF port for local multimodal segmentation with Qwen3-VL-2B

remyxai · reddit · 2026-07-25

InstructSAM is being ported to C++/GGUF for faster local multimodal inference

The author describes a multimodal synthesis pipeline that uses VLMs for captioning and segmentation models for localization, then found InstructSAM — a repo that augments Qwen3-VL-2B with a SAM3-based segmentation head.

By using that architecture, they can collapse a two-stage pipeline into two passes through a single smaller model. The catch is practical: their current setup runs on 4-bit quantized weights in llama.cpp, and adding a segmentation head means the model must emit images, which is a substantial change to the project.

To make it work, they forked a related SAM3-compatible repo, added llama.cpp dependencies, and ported InstructSAM to C++ with GGUF conversion. They also included a Dockerfile to simplify build and conversion while respecting licensing constraints.

Repo: smellslikeml/instructSAM.cpp

Original post →

More from coding & agent

coding & agent channel →