You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
fix(core)!: move rerank code to sentence_transformers (#5882)
# What does this PR do?
* Moves `rerank` implementation from `transformers` to
`sentence_transformers` - following up on @mattf's
[comment](#5733 (comment)).
* Removes `transformers` module from inline providers, as it was simply
empty after the move.
* Updates benchmarking k8s scripts.
* Updates distrubutions.
* Updates unit tests and integration tests accordingly. Also search &
replace pre-recorded responses to match `sentence-transformers`
provider. Simply updated:
```
provider_id="transformers",
model_id="Qwen/Qwen3-Reranker-0.6B",
```
to
```
provider_id="sentence-transformers",
model_id="Qwen/Qwen3-Reranker-0.6B",
```
across all files.
Closes#5732.
**Notes**
* This PR does not address other issues raised by @mattf in this
[comment](#5733 (review)),
I can pick them up, once small step at a time.
* I noticed that the `integration-tests.sh` has the models hardcoded:
```
# Run Python tests unless typescript-only mode
if [[ "$TYPESCRIPT_ONLY" == "false" ]]; then
pytest -s -v $PYTEST_TARGET \
$STACK_CONFIG_ARG \
--inference-mode="$INFERENCE_MODE" \
-k "$PYTEST_PATTERN" \
$EXTRA_PARAMS \
--color=yes \
--embedding-model=sentence-transformers/nomic-ai/nomic-embed-text-v1.5 \
--rerank-model=sentence-transformers/Qwen/Qwen3-Reranker-0.6B \
--capture=tee-sys
exit_code=$?
else
echo "Skipping Python tests (--typescript-only mode)"
exit_code=0
fi
```
and I think that is should be:
```
--embedding-model="${OGX_TEST_EMBEDDING_MODEL:-sentence-transformers/nomic-ai/nomic-embed-text-v1.5}"
\
--rerank-model="${OGX_TEST_RERANK_MODEL:-sentence-transformers/Qwen/Qwen3-Reranker-0.6B}"
\
```
## Test Plan
```
./scripts/integration-tests.sh --stack-config server:ci-tests \
--inference-mode replay --setup vllm --suite base-vllm-subset
```
---------
Signed-off-by: Charlie Doern <cdoern@redhat.com>
Co-authored-by: Derek Higgins <derekh@redhat.com>
Co-authored-by: Francisco Javier Arceo <arceofrancisco@gmail.com>
Co-authored-by: Charlie Doern <cdoern@redhat.com>
Co-authored-by: Matthew Farrellee <matt@cs.wisc.edu>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments