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
Community
1
Train
Deploy
Use this model
0ca266b
my-bert-model
/
modeling.py
sgugger
add model
0ca266b
almost 4 years ago
raw
Copy download link
history
blame
177 Bytes
from
transformers
import
BertModel
class
MyBertModel
(
BertModel
):
def
forward
(
self, *args, **kwargs
):
print
(
"Success"
)
return
super
.forward(*args, **kwargs)