lmstudio-ai / lmstudio-ai/mlx-engine

MLX Runtime Visual Model Multiple Image bug.

Open
#151 3 comments 0 reactions 1 assignee View on GitHub

@neilmehta24 is already working on this.

Since May 5, 2025.

bug to-investigate
Dominant language
Python
Stars
1.2k
Forks
133
Avg merge
21h 6m
Merged PRs (30d)
1

Description

When using visual models with the MLX backend, an error occurs after sending more than two images, causing the model to incorrectly recognize images. The model used is qwen2.5-vl-32b-instruct-6bit, and this issue also appears on other visual models like mistral-small3.1. The hardware being used is M3 Ultra, and this problem exists in MLX versions 0.14.0 and earlier versions such as 0.13.2.

![Image](https://github.com/user-attachments/assets/7043dc2b-35c3-40c8-a420-0a69b07897bf)

![Image](https://github.com/user-attachments/assets/f8ef5976-a618-40f3-990b-bf3145830df7)

![Image](https://github.com/user-attachments/assets/41ef5128-6ab7-4537-b543-f6f07141fab2)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.