@BramVanroy is this expected? It confused me as well. I trained a model by adapting  run_mlm.py and then fine-tuned using another script I adapted from run_glue.py (these scripts are generic, they use Auto*)
If I load the fine-tuned model using AutoModel.from_pretrained() it returns the model as a RobertaModel which produces the warning, Using AutoModelForSequenceClassification.from_pretrained() returns the same model as a RobertaModelForSequenceClassification
Since my model config contains
“architectures”: [
“RobertaForSequenceClassification”
],
I originally expected that AutoModel would return this class but I guess not.