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
More from coding & agent
- img2threejs is being used to give AI coding agents procedural 3D generation — anselm · 2026-07-25
- Codex and Three.js drive an interactive procedural house demo — anselm · 2026-07-25
- Claude Opus 5 prompt tips say old harness habits now waste tokens — tengyanAI · 2026-07-25
- T3 Code ships 76 PRs of updates, including Opus 5 support and auto approvals — TAbrodi · 2026-07-25
- A coding agent runs two commands, then saves a fact to memory — sull · 2026-07-25
- A coding-agent dashboard tracks 1.9B tokens, $2,595.89 in spend, and 417 chats — zeeg · 2026-07-25