Instructions to use osanseviero/test_model_bertmesh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use osanseviero/test_model_bertmesh with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("osanseviero/test_model_bertmesh", trust_remote_code=True) model = AutoModel.from_pretrained("osanseviero/test_model_bertmesh", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Nick Sorros commited on
Commit ·
44b4eae
1
Parent(s): 1b85e66
Add _init_weights to model
Browse files
model.py
CHANGED
|
@@ -56,3 +56,6 @@ class BertMesh(PreTrainedModel):
|
|
| 56 |
outs = self.dropout_layer(outs)
|
| 57 |
outs = torch.sigmoid(self.linear_out(outs))
|
| 58 |
return outs
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
outs = self.dropout_layer(outs)
|
| 57 |
outs = torch.sigmoid(self.linear_out(outs))
|
| 58 |
return outs
|
| 59 |
+
|
| 60 |
+
def _init_weights(self, module):
|
| 61 |
+
pass
|