Could not load model with following classes

Hi, I am trying to deploy a testing website using a pipeline from huggingface.
However i have been stuck with this error
Could not load model {model} with the following classes(
<class ‘transformers.models.auto.modeling_tf_auto.TFAutoModelForCausalLM’>, <class ‘transformers.models.gpt2.modeling_tf_gpt2.TFGPT2LMHeadModel’>).

Please help.