Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use AnonymousCS/populism_classifier_258 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnonymousCS/populism_classifier_258 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AnonymousCS/populism_classifier_258")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AnonymousCS/populism_classifier_258") model = AutoModelForSequenceClassification.from_pretrained("AnonymousCS/populism_classifier_258", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (9)
- README.mdAdded+70
- config.jsonAdded+28
- merges.txtAdded
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+51
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+65
- training_args.binAdded+3
- vocab.jsonAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970---library_name: transformerslicense: mitbase_model: AnonymousCS/populism_multilingual_roberta_basetags:- generated_from_trainermetrics:- accuracymodel-index:- name: populism_classifier_258 results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# populism_classifier_258
This model is a fine-tuned version of [AnonymousCS/populism_multilingual_roberta_base](https://huggingface.co/AnonymousCS/populism_multilingual_roberta_base) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.7785- Accuracy: 0.9467- 1-f1: 0.5357- 1-recall: 0.5172- 1-precision: 0.5556- Balanced Acc: 0.7455
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 1e-05- train_batch_size: 64- eval_batch_size: 64- seed: 42- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 20- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | 1-f1 | 1-recall | 1-precision | Balanced Acc ||:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:--------:|:-----------:|:------------:|| 0.9108 | 1.0 | 31 | 0.4081 | 0.9447 | 0.6087 | 0.7241 | 0.525 | 0.8414 || 0.1323 | 2.0 | 62 | 0.3606 | 0.9406 | 0.6133 | 0.7931 | 0.5 | 0.8715 || 0.0631 | 3.0 | 93 | 0.6827 | 0.9447 | 0.5263 | 0.5172 | 0.5357 | 0.7445 || 0.0314 | 4.0 | 124 | 0.6555 | 0.9467 | 0.5517 | 0.5517 | 0.5517 | 0.7617 || 0.0312 | 5.0 | 155 | 0.7785 | 0.9467 | 0.5357 | 0.5172 | 0.5556 | 0.7455 |
### Framework versions
- Transformers 4.46.3- Pytorch 2.4.1+cu121- Datasets 3.1.0- Tokenizers 0.20.312345678910111213141516171819202122232425262728{ "_name_or_path": "AnonymousCS/populism_multilingual_roberta_base", "architectures": [ "RobertaForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "roberta", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 1, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.46.3", "type_vocab_size": 1, "use_cache": true, "vocab_size": 50265}123version https://git-lfs.github.com/spec/v1oid sha256:0a62aaaad353632cd0aebc0d148a77dffed15a776cd56d6cf370a9509dad8317size 498612824123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "cls_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "mask_token": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ "add_prefix_space": false, "added_tokens_decoder": { "0": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "50264": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<s>", "clean_up_tokenization_spaces": false, "cls_token": "<s>", "eos_token": "</s>", "errors": "replace", "extra_special_tokens": {}, "mask_token": "<mask>", "max_length": 512, "model_max_length": 512, "pad_to_multiple_of": null, "pad_token": "<pad>", "pad_token_type_id": 0, "padding_side": "right", "sep_token": "</s>", "stride": 0, "tokenizer_class": "RobertaTokenizer", "trim_offsets": true, "truncation_side": "right", "truncation_strategy": "longest_first", "unk_token": "<unk>"}123version https://git-lfs.github.com/spec/v1oid sha256:93e79e4af8120fe0272dd2e1ab1148250e2a17bd10f06ba940f64909035aeb3asize 5432README.mdAdded+70
config.jsonAdded+28
merges.txtAdded
model.safetensorsAdded+3
special_tokens_map.jsonAdded+51
tokenizer.jsonAdded
tokenizer_config.jsonAdded+65
training_args.binAdded+3
vocab.jsonAdded