Skip to main content

Setup

Sign in to Baseten with Truss, then install the OpenAI SDK.
Sign in to Baseten
Install the OpenAI SDK
Pick the model you want to deploy. Each tab is a self-contained recipe.
Qwen/Qwen3-Embedding-0.6B is a 0.6B-parameter dense model.This preset serves Qwen3 Embedding 0.6B on a single L4 through Baseten Embeddings Inference (BEI) with FP8 weights, optimized for embedding 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 Embedding 0.6B on a single L4, drawing FP8 weights from michaelfeil/Qwen3-Embedding-0.6B-auto, a mirror of the official checkpoint with an architecture string compatible with BEI’s encoder build path. FP8 quantization on an L4 keeps per-embedding cost low while dynamic batching sustains high throughput.

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 serves an OpenAI-compatible embeddings API at /v1/embeddings.Now call your deployment to generate embeddings:
main.py
For higher throughput, use the Baseten Performance Client, which batches and pipelines requests automatically.

Next steps

Call your model

Endpoint anatomy, authentication, and sync versus async inference

Autoscaling

Scale replicas with traffic, including scale to zero