Text Classification
Transformers
PyTorch
TensorBoard
Safetensors
roberta
Generated from Trainer
custom_code
Eval Results (legacy)
Instructions to use versae/gzipbert_imdb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use versae/gzipbert_imdb with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="versae/gzipbert_imdb", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("versae/gzipbert_imdb", trust_remote_code=True) model = AutoModelForSequenceClassification.from_pretrained("versae/gzipbert_imdb", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -0
config.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
| 6 |
"auto_map": {
|
| 7 |
"AutoTokenizer": "tokenization_gzip_bert.GzipBertTokenizer"
|
| 8 |
},
|
|
|
|
| 9 |
"attention_probs_dropout_prob": 0.1,
|
| 10 |
"bos_token_id": 0,
|
| 11 |
"classifier_dropout": null,
|
|
|
|
| 6 |
"auto_map": {
|
| 7 |
"AutoTokenizer": "tokenization_gzip_bert.GzipBertTokenizer"
|
| 8 |
},
|
| 9 |
+
"tokenizer_class": "tokenization_gzip_bert.GzipBertTokenizer",
|
| 10 |
"attention_probs_dropout_prob": 0.1,
|
| 11 |
"bos_token_id": 0,
|
| 12 |
"classifier_dropout": null,
|