@lewtun
This is happening with me too. Even when the config file has label2id and id2label defined it still takes the old labels or the auto-defined labels.
https://huggingface.co/aadishhug/distilbert-tweet-analysis/blob/main/config.json
Important thing to know is that this is not happening on my collab notebook. Please note that I have used the pipeline API for output.