Text Classification
Transformers
Safetensors
xlm-roberta
text-embeddings-inference

Add id2label/label2id to config.json

#1

config.json has no id2label, so transformers falls back to LABEL_0/LABEL_1 and text-embeddings-inference refuses to load the model (config.json does not contain id2label).

This adds the mapping documented in the model card: index 0 = neutral, index 1 = toxic. No weights change.

Multilingual Text Detoxification org

great, thank you!!

dardem changed pull request status to merged

Sign up or log in to comment