mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
issue: Qwen3-Reranker not working with Open WebUI #5870
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 @YetheSamartaka on GitHub (Jul 25, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.18
Ollama Version (if applicable)
No response
Operating System
Debian
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Qwen3-Reranker working as other reranking models
Actual Behavior
Qwen3-Reranker not working and resulting in errors whereas other rerankers (Such as mixedbread-ai/mxbai-rerank-xsmall-v1 do work) and here are probably the most relevant part:
ValueError: Cannot handle batch sizes > 1 if no padding token is defined.
Steps to Reproduce
Logs & Screenshots
Whole log:
Qwen3-Reranker-errors.txt
Additional Information
No response
@rgaricano commented on GitHub (Jul 25, 2025):
the error seem clear:
Cannot handle batch sizes > 1 if no padding token is definedAs I read in https://github.com/babylm/evaluation-pipeline-2023/issues/5 a workaround could be to edit model's config.json and add a
"pad_token_id": 151645,line (that is the same value aseos_token_idhave).@YetheSamartaka commented on GitHub (Jul 25, 2025):
If that model would then appear in Models, then I guess yeah, but how do I edit the config right now in the Open WebUI?
@rgaricano commented on GitHub (Jul 25, 2025):
Copid from same in Discord:
you can clone the HF repo, edit and use yours
probably yes, there are a model cached in backend/data/embedding/models, you can locate the config and edit it, it's inside blobs dir but without names, just a long numberID (smallers one), I never tried & as I saw there are more than one with that config, maybe you can try this way,..., but I think easier clone HF repo (cloned in your HF account, it's not necessary download it)
yea, probably there a reason!