mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
GPU OOM using Xinferences Qwen2.5-VL-32B via Difys xinference plugin with fewer images than direct Xinference API
#249
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @moshilangzi on GitHub (Apr 30, 2025).
Self Checks
Dify version
1.3.1
Plugin version
0.0.3
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
When using Dify to interact with a qwen2.5-vl-32B-instruct model deployed on Xinference for multi-modal tasks, uploading and processing 5 images results in a GPU Out-of-Memory (OOM) error on the Xinference side.
However, directly calling the Xinference API for the same model and task with 10 images works correctly and returns the results quickly without any memory issues. This suggests there might be a difference in how Dify handles multi-modal data or interacts with Xinference compared to a direct API call that leads to higher memory consumption for fewer images.
`
✔️ Error log
GPU OOM
@Yeuoly commented on GitHub (May 6, 2025):
GPU OOM should not be a issue related to Dify side, as for the bad performance, maybe resolved in next release
@moshilangzi commented on GitHub (May 7, 2025):
Is this the problem with dify-plugin-daemon?
@Yeuoly commented on GitHub (May 7, 2025):
Absolutely not.
@moshilangzi commented on GitHub (May 7, 2025):
The VLLM plugin and Xinference plugin exhibit the same problem. Directly calling the VLLM and Xinference APIs to upload multiple images and perform multi-image question answering works correctly. However, when uploading multiple images using the VLLM and Xinference plugins on the Dify platform, it results in GPU memory overflow.