Setup
Sign in to Baseten with Truss, then install the OpenAI SDK.Sign in to Baseten
Install the OpenAI SDK
- 0.6B
- 4B
- 8B
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.Then create a file named 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 You should see output similar to:For higher throughput, use the Baseten Performance Client, which batches and pipelines requests automatically.
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-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 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 serves an OpenAI-compatible embeddings API at/v1/embeddings.Now call your deployment to generate embeddings:- 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