Instructions to use Guihss/TypeBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Guihss/TypeBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Guihss/TypeBERT", trust_remote_code=True)# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("Guihss/TypeBERT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload TypeBERTForSequenceClassification
Browse files- type_bert_model.py +2 -0
type_bert_model.py
CHANGED
|
@@ -26,6 +26,8 @@ class TypeBERTConfig(PretrainedConfig):
|
|
| 26 |
"virtual": 4,
|
| 27 |
"concept": 5
|
| 28 |
}
|
|
|
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
|
|
|
|
| 26 |
"virtual": 4,
|
| 27 |
"concept": 5
|
| 28 |
}
|
| 29 |
+
|
| 30 |
+
self.architectures = ['TypeBERTForSequenceClassification']
|
| 31 |
|
| 32 |
|
| 33 |
|