Update custom_models.mdx (#16964)

BertModelForSequenceClassification -> BertForSequenceClassification
This commit is contained in:
Mishig Davaadorj 2022-04-27 16:46:55 +02:00 committed by GitHub
parent 5896b3ecce
commit cf8a7c2490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ directly upload your config to the Hub.
Now that we have our ResNet configuration, we can go on writing the model. We will actually write two: one that
extracts the hidden features from a batch of images (like [`BertModel`]) and one that is suitable for image
classification (like [`BertModelForSequenceClassification`]).
classification (like [`BertForSequenceClassification`]).
As we mentioned before, we'll only write a loose wrapper of the model to keep it simple for this example. The only
thing we need to do before writing this class is a map between the block types and actual block classes. Then the