Instructions to use AnonymousCS/populism_classifier_bsample_403 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnonymousCS/populism_classifier_bsample_403 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AnonymousCS/populism_classifier_bsample_403")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AnonymousCS/populism_classifier_bsample_403") model = AutoModelForSequenceClassification.from_pretrained("AnonymousCS/populism_classifier_bsample_403", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (8)
- .gitattributes+1
- README.mdAdded+68
- config.jsonAdded+32
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+51
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+57
- training_args.binAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768---library_name: transformerslicense: apache-2.0base_model: google/remberttags:- generated_from_trainermetrics:- accuracymodel-index:- name: populism_classifier_bsample_403 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_bsample_403
This model is a fine-tuned version of [google/rembert](https://huggingface.co/google/rembert) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.5490- Accuracy: 0.9027- 1-f1: 0.4950- 1-recall: 0.8929- 1-precision: 0.3425- Balanced Acc: 0.8980
## 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: 32- eval_batch_size: 32- 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.1189 | 1.0 | 7 | 0.3968 | 0.9141 | 0.5161 | 0.8571 | 0.3692 | 0.8872 || 0.0679 | 2.0 | 14 | 0.6479 | 0.8721 | 0.4274 | 0.8929 | 0.2809 | 0.8819 || 0.0049 | 3.0 | 21 | 0.5490 | 0.9027 | 0.4950 | 0.8929 | 0.3425 | 0.8980 |
### Framework versions
- Transformers 4.46.3- Pytorch 2.4.1+cu121- Datasets 3.1.0- Tokenizers 0.20.31234567891011121314151617181920212223242526272829303132{ "_name_or_path": "google/rembert", "architectures": [ "RemBertForSequenceClassification" ], "attention_probs_dropout_prob": 0, "bos_token_id": 312, "classifier_dropout_prob": 0.1, "embedding_dropout_prob": 0, "embedding_size": 256, "eos_token_id": 313, "hidden_act": "gelu", "hidden_dropout_prob": 0, "hidden_size": 1152, "initializer_range": 0.02, "input_embedding_size": 256, "intermediate_size": 4608, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "rembert", "num_attention_heads": 18, "num_hidden_layers": 32, "output_embedding_size": 1664, "pad_token_id": 0, "problem_type": "single_label_classification", "tie_word_embeddings": false, "torch_dtype": "float32", "transformers_version": "4.46.3", "type_vocab_size": 2, "use_cache": true, "vocab_size": 250300}123version https://git-lfs.github.com/spec/v1oid sha256:1ae2ce31767ec4e5b697ade1dcfd5f833f87f964a7ef4f87468a93ff71027e37size 2303755328123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "bos_token": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "cls_token": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "mask_token": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "sep_token": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:21f2ff9f5aee9a5c4d10d18795ba77a707bf0018e4023bb6b4e70355aa7d7522size 16710168123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "312": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "313": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "314": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "[CLS]", "clean_up_tokenization_spaces": false, "cls_token": "[CLS]", "do_lower_case": false, "eos_token": "[SEP]", "keep_accents": true, "mask_token": "[MASK]", "model_max_length": 1000000000000000019884624838656, "pad_token": "[PAD]", "remove_space": true, "sep_token": "[SEP]", "tokenizer_class": "RemBertTokenizer", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:917cb6052d1b3ffc3a2de35141385375402510ec84b3e04ea445b24ae3e48123size 5432.gitattributes+1
README.mdAdded+68
config.jsonAdded+32
model.safetensorsAdded+3
special_tokens_map.jsonAdded+51
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+57
training_args.binAdded+3