Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
sgugger
/
my-bert-model
like
1
Feature Extraction
Transformers
PyTorch
bert
custom_code
text-embeddings-inference
Model card
Files
Files and versions
xet
Community
1
Train
Deploy
Use this model
1ddc92c
my-bert-model
/
modeling.py
sgugger
Fix syntax error
1ddc92c
almost 4 years ago
raw
Copy download link
history
blame
179 Bytes
from
transformers
import
BertModel
class
MyBertModel
(
BertModel
):
def
forward
(
self, *args, **kwargs
):
print
(
"Success"
)
return
super
().forward(*args, **kwargs)