Skip to content

MossInfer 2.2.1 + vision references (pre-release 3)

Pre-release
Pre-release

Choose a tag to compare

@ArchitektSpeer ArchitektSpeer released this 15 Nov 07:02

Pre-release from the feat/vision-references branch. Not an official MossInfer release.

MossInfer 2.2.1 plus vision references: generate takes vision_references (images, max_pixels, weight, start, stop, in_negative), and the text encoder's Qwen3.5 vision tower puts each image into the prompt. No adapter is needed. A front-facing head-and-shoulders portrait on a plain background keeps a character consistent across scenes. A whole scene as the reference tends to be copied. hello reports "vision_references": true and "vision_guidance": true. In the C API: MI_CAP_VISION_REFERENCES, MI_CAP_VISION_GUIDANCE, and mi_gen_params grows to 464 bytes (older sizes are still accepted).

Needs a single-file text encoder that carries the vision tower, e.g. Comfy-Org's qwen3.5_9b_int8_convrot.safetensors as text_encoder_file. See docs/c-api.md (Vision references) and tools/vision_ref/README.md.

Package For
mossinfer-2.2.1-linux-cu13-x86_64-vision.{tar.gz,zip} Linux x86_64, NVIDIA sm_80 / sm_89 / sm_120 (RTX 30, 40, 50), cuBLASLt bundled
…-vision-system-cuda.{tar.gz,zip} The same, using the system's CUDA 13 libraries

Changes since v2.2.1-vision.2

  • weight now works. It used to fade the image toward gray, which barely changed a black-and-white portrait. Now the cond prediction is plain + weight × (with_images − plain), where plain is the prompt without the images: 0 drops them, below 1 they pull less, above 1 more. A weight other than 0 and 1 runs a second cond row: with CFG, a 20-step 1280 × 816 image took 107 s instead of 70 s on an RTX 4070 Laptop. Weight 1 gives the same images as before, bit for bit.
  • New start / stop (0–1 of the steps): the window of steps the images guide. In tests, a window starting at 0.3 or later looked like no reference at all, because the face is set in the early steps.
  • A weight other than 1, or a window, does not work with an SLG row (slg_scale) or the step cache (invalid_params).
  • Measured on a manga portrait at 100 000 pixels: at weight 1, wide shots turned into the portrait's head and shoulders; at weight 0.5, they kept the prompt's framing, pose and scene, along with the face, hair and glasses.

Built with the linux-cuda13 preset (CUDA 13.4, GCC 16) on Arch Linux. Checks:

  • 530 CPU tests pass.
  • check_package.py passes on both installs (including the find_package consumer) and on all four archives.
  • The packaged moss-server was run on an RTX 4070 Laptop (8 GB) with a weight-0.5 vision reference.

The system-CUDA variant was checked but not run. Windows, CUDA 12, sm_75 and sm_70 are not built. The version still reports 2.2.1; the -vision suffix in the file names tells this build apart.