Instructions to use Berketarak/Product-Matching-Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Berketarak/Product-Matching-Classifier with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Berketarak/Product-Matching-Classifier") model = AutoModel.from_pretrained("Berketarak/Product-Matching-Classifier") - Notebooks
- Google Colab
- Kaggle
btarakcioglu commited on
Commit ·
41143b7
1
Parent(s): a3ba203
Fix: Added missing import for BertPreTrainedModel
Browse files
model.py
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
class CustomBertModel(BertPreTrainedModel):
|
| 2 |
def __init__(self, config):
|
| 3 |
super().__init__(config)
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from torch import nn
|
| 3 |
+
from transformers import BertModel, BertPreTrainedModel
|
| 4 |
+
|
| 5 |
+
|
| 6 |
class CustomBertModel(BertPreTrainedModel):
|
| 7 |
def __init__(self, config):
|
| 8 |
super().__init__(config)
|