# Could not load model with following classes

**URL:** <https://discuss.huggingface.co/t/could-not-load-model-with-following-classes/15050>\
**Category:** Beginners\
**Created:** [February 22, 2022, 11:06pm UTC](https://discuss.huggingface.co/t/could-not-load-model-with-following-classes/15050 "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](https://discuss.huggingface.co/u/wexnertan)\
**Post date:** [February 22, 2022, 11:06pm UTC](https://discuss.huggingface.co/t/could-not-load-model-with-following-classes/15050/1 "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.
