Skip to content

Conversation

iamlemec
Copy link
Collaborator

@iamlemec iamlemec commented Sep 5, 2025

Add support for Qwen3 reranking models. This is largely based on #14029 by @ngxson, with a few tweaks to reflect changes to the codebase in the interim.

This hardcodes the chat template provided by in the README.md, which I'm assuming is the intended usage. If folks want to be able to change that, then we'd need a new CLI option. The template uses string substitution rather than jinja, as it seems like jinja is only used for chat messages.

@iamlemec iamlemec requested a review from ngxson as a code owner September 5, 2025 21:21
@github-actions github-actions bot added examples python python script changes server labels Sep 5, 2025
@ggerganov
Copy link
Member

Great - will take a look tomorrow. Would be useful to add a basic usage example in the OP of this PR.

@ggerganov ggerganov self-requested a review September 7, 2025 18:35
@iamlemec
Copy link
Collaborator Author

iamlemec commented Sep 8, 2025

Yup, will add a usage example up above. Actually encountering some numerical differences comparing the output here to the transformers numbers. Might want to hold off on review/merge until I can sort this out. (Or if you spot something amiss in the code, that would be great too.)

@ggerganov ggerganov marked this pull request as draft September 10, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples python python script changes server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants