Skip to main content

Setup

Sign in to Baseten with Truss, then install the Python requests library.
Sign in to Baseten
Install requests
Pick the model you want to deploy. Each tab is a self-contained recipe.
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.

Hardware

L4

Engine

TRT-LLM

Write the config

Create and move into the project directory:
Then create a file named config.yaml and paste the following:
config.yaml
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 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 the trt_llm block. Each one shapes how the engine is built and served:

Deploy

Push the config to Baseten:
You should see output similar to:
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:
main.py
For batch scoring at higher throughput, use the Baseten Performance Client.

Next steps

Call your model

Endpoint anatomy, authentication, and sync versus async inference

Autoscaling

Scale replicas with traffic, including scale to zero