Setup
Sign in to Baseten with Truss, then install the Pythonrequests library.
Sign in to Baseten
Install requests
- 0.6B
- 4B
- 8B
Qwen/Qwen3-Reranker-0.6B is a 0.6B-parameter dense model.This preset serves Qwen3 Reranker 0.6B on a single L4 through Baseten Embeddings Inference (BEI) with FP8 weights, optimized for reranking throughput on low-cost hardware.Then create a file named This config tells Baseten to build a BEI (Baseten Embeddings Inference) engine for Qwen3 Reranker 0.6B on a single L4, drawing FP8 weights from You should see output similar to:For batch scoring at higher throughput, use the Baseten Performance Client.
Hardware
L4
Engine
TRT-LLM
Write the config
Create and move into the project directory:config.yaml and paste the following:config.yaml
michaelfeil/Qwen3-Reranker-0.6B-seq, a sequence-classification conversion of the official checkpoint compatible with BEI’s encoder build path. The deployment scores query-passage pairs on the /predict route with dynamic batching keeping throughput high.Key parameters
Baseten Embeddings Inference (BEI) reads these fields from thetrt_llm block. Each one shapes how the engine is built and served:Deploy
Push the config to Baseten:truss push prints your model ID (abc1d2ef in the example). The examples below use it wherever you see {model_id}, and read your API key from the BASETEN_API_KEY environment variable.Call the model
Your deployment exposes a cross-encoder scoring endpoint at/predict.Now call your deployment to score candidates:- Python
- cURL
main.py
Next steps
Call your model
Endpoint anatomy, authentication, and sync versus async inference
Autoscaling
Scale replicas with traffic, including scale to zero