# AutoModel vs PreTrainedModel difference/relationship

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautomodel-vs-pretrainedmodel-difference-relationship%2F98618%3E%5C
**Category:** 🤗Transformers\
**Created:** [July 21, 2024, 5:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautomodel-vs-pretrainedmodel-difference-relationship%2F98618 "2024-07-21T17:17:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SnailTheSnail](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@SnailTheSnail](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSnailTheSnail)%5C
**Post date:** [July 21, 2024, 5:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautomodel-vs-pretrainedmodel-difference-relationship%2F98618%2F1 "2024-07-21T17:17:32Z")

</div>

The AutoModel description is:  
“This is a generic model class that will be instantiated as one of the base model classes of the library when created with the [from\_pretrained()](https://huggingface.co/docs/transformers/v4.42.0/en/model_doc/auto#transformers.AutoModel.from_pretrained) class method or the [from\_config()](https://huggingface.co/docs/transformers/v4.42.0/en/model_doc/auto#transformers.AutoModel.from_config) class method.”

The PreTrainedModel description is:  
“Base class for all models.”

Does that mean that AutoModel is a type/subclass of PreTrainedModel? What is the relationship/difference between those two classes exactly?
