mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 18:51:14 +06:00
Update custom_models.mdx (#16964)
BertModelForSequenceClassification -> BertForSequenceClassification
This commit is contained in:
parent
5896b3ecce
commit
cf8a7c2490
@ -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
|
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
|
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
|
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
|
thing we need to do before writing this class is a map between the block types and actual block classes. Then the
|
||||||
|
Loading…
Reference in New Issue
Block a user