# Could not load model with following classes

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcould-not-load-model-with-following-classes%2F15050%3E%5C
**Category:** Beginners\
**Created:** [February 22, 2022, 11:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcould-not-load-model-with-following-classes%2F15050 "2022-02-22T23:06:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wexnertan](https://avatars.discourse-cdn.com/v4/letter/w/fbc32d/32.png) [@wexnertan](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwexnertan)%5C
**Post date:** [February 22, 2022, 11:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcould-not-load-model-with-following-classes%2F15050%2F1 "2022-02-22T23:06:28Z")

</div>

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.
