Text Classification
Transformers
Safetensors
PyTorch
eurobert
fine-tuned
sequence-classification
binary-classification
geopolitics
multilingual
custom_code
Instructions to use Durrani95/eurobert-geopolitical-binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Durrani95/eurobert-geopolitical-binary with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Durrani95/eurobert-geopolitical-binary", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Durrani95/eurobert-geopolitical-binary", trust_remote_code=True) model = AutoModelForSequenceClassification.from_pretrained("Durrani95/eurobert-geopolitical-binary", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "EuroBertForSequenceClassification" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "auto_map": { | |
| "AutoConfig": "configuration_eurobert.EuroBertConfig", | |
| "AutoModel": "modeling_eurobert.EuroBertModel", | |
| "AutoModelForMaskedLM": "modeling_eurobert.EuroBertForMaskedLM", | |
| "AutoModelForPreTraining": "modeling_eurobert.EuroBertPreTrainedModel", | |
| "AutoModelForSequenceClassification": "modeling_eurobert.EuroBertForSequenceClassification", | |
| "AutoModelForTokenClassification": "modeling_eurobert.EuroBertForTokenClassification" | |
| }, | |
| "bos_token": "<|begin_of_text|>", | |
| "bos_token_id": 128000, | |
| "clf_pooling": "late", | |
| "dtype": "float32", | |
| "eos_token": "<|end_of_text|>", | |
| "eos_token_id": 128001, | |
| "head_dim": 64, | |
| "hidden_act": "silu", | |
| "hidden_dropout": 0.0, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "non_geopolitical", | |
| "1": "geopolitical" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "geopolitical": 1, | |
| "non_geopolitical": 0 | |
| }, | |
| "mask_token": "<|mask|>", | |
| "mask_token_id": 128002, | |
| "max_position_embeddings": 8192, | |
| "mlp_bias": false, | |
| "model_type": "eurobert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "num_key_value_heads": 12, | |
| "pad_token": "<|end_of_text|>", | |
| "pad_token_id": 128001, | |
| "pretraining_tp": 1, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": null, | |
| "rope_theta": 250000, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "4.57.1", | |
| "use_cache": false, | |
| "vocab_size": 128256 | |
| } | |