/v1/embeddings. Each input can contain up to 8,192 tokens, including special tokens.
Answer.AI
ModernBERT-base
Serve ModernBERT-base on one NVIDIA GPU and get a normalized vector for each input text.
ModernBERT-base is a 149M-parameter bidirectional encoder trained on English text and code. SGLang serves the base checkpoint through
Expect indices 0 and 1, each with 768 dimensions and a norm close to 1. SGLang takes the last token’s hidden state for each input and L2-normalizes it. Use the same pooling and normalization when comparing against a Transformers reference.
The base checkpoint was pretrained with masked language modeling. For semantic search, evaluate retrieval quality on your own queries and documents. A retrieval-tuned checkpoint can use a different pooling rule.
