Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run AnonymousCS/populism_classifier_251 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/AnonymousCS/populism_classifier_251. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/AnonymousCS/populism_classifier_251 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use AnonymousCS/populism_classifier_251 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnonymousCS/populism_classifier_251 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AnonymousCS/populism_classifier_251")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AnonymousCS/populism_classifier_251") model = AutoModelForSequenceClassification.from_pretrained("AnonymousCS/populism_classifier_251", 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_251 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_251
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: 1.1528- Accuracy: 0.9424- 1-f1: 0.4815- 1-recall: 0.4643- 1-precision: 0.5- Balanced Acc: 0.7180
## 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.5524 | 1.0 | 31 | 0.5771 | 0.9403 | 0.4082 | 0.3571 | 0.4762 | 0.6666 || 0.2164 | 2.0 | 62 | 0.4473 | 0.9218 | 0.4722 | 0.6071 | 0.3864 | 0.7741 || 0.1863 | 3.0 | 93 | 0.5707 | 0.9198 | 0.4507 | 0.5714 | 0.3721 | 0.7562 || 0.068 | 4.0 | 124 | 0.9231 | 0.9342 | 0.4667 | 0.5 | 0.4375 | 0.7303 || 0.3402 | 5.0 | 155 | 1.1528 | 0.9424 | 0.4815 | 0.4643 | 0.5 | 0.7180 |
### 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:5b74e878543437b1072b5e11ec872718c12ba96abba1fafc0e63707574de4f97size 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:aff0ce3c682e54a2d21cd446b24e60634ddd5de655b9bdf74ab62b86ce8a17fbsize 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