PER), organization (ORG), location (LOC), and miscellaneous (MISC). NER models use the ForTokenClassification architecture and the /predict_tokens endpoint. NER requires BEI-Bert (base_model: encoder_bert), which produces token-level outputs.
Recommended models
dslim/bert-base-NER-uncased: fast, compact NER for English. (Truss example)tanaos/tanaos-NER-v1: general-purpose NER.
Configuration
Add toconfig.yaml:
Request format
Response format
Withaggregation_strategy: "max" (recommended for production):
aggregation_strategy: "none" and raw_scores: true (token-level with BIO labels):
B- marks the beginning of an entity, I- marks a continuation, and O means outside any entity.
Python example
Using the Baseten Performance Client:/predict_tokens directly. The route also supports async inference.
Related
- BEI-Bert overview: Bidirectional encoder engine that hosts NER deployments.
- BEI configuration reference: Full
trt_llmschema for build and runtime fields.