Instructions to use KevinGeertjens/bert-classification-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KevinGeertjens/bert-classification-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="KevinGeertjens/bert-classification-model", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("KevinGeertjens/bert-classification-model", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
dcb4bf1
1
Parent(s): 91c61bf
Update bert_classification_model.py
Browse files
bert_classification_model.py
CHANGED
|
@@ -4,8 +4,6 @@ from typing import Tuple
|
|
| 4 |
from transformers import PreTrainedModel, BertModel
|
| 5 |
from torch import nn
|
| 6 |
|
| 7 |
-
from bert_classification_config import BertClassificationConfig
|
| 8 |
-
|
| 9 |
|
| 10 |
class BertClassificationModel(PreTrainedModel):
|
| 11 |
config_class = BertClassificationConfig
|
|
|
|
| 4 |
from transformers import PreTrainedModel, BertModel
|
| 5 |
from torch import nn
|
| 6 |
|
|
|
|
|
|
|
| 7 |
|
| 8 |
class BertClassificationModel(PreTrainedModel):
|
| 9 |
config_class = BertClassificationConfig
|