Run this model with HF Jobs
Run AnonymousCS/populism_classifier_132 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_132. 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_132 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_132 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnonymousCS/populism_classifier_132 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AnonymousCS/populism_classifier_132")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AnonymousCS/populism_classifier_132") model = AutoModelForSequenceClassification.from_pretrained("AnonymousCS/populism_classifier_132", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (8)
- README.mdAdded+68
- config.jsonAdded+32
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+37
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+55
- training_args.binAdded+3
- vocab.txtAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768---library_name: transformerslicense: apache-2.0base_model: AnonymousCS/populism_multilingual_bert_cased_v2tags:- generated_from_trainermetrics:- accuracymodel-index:- name: populism_classifier_132 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_132
This model is a fine-tuned version of [AnonymousCS/populism_multilingual_bert_cased_v2](https://huggingface.co/AnonymousCS/populism_multilingual_bert_cased_v2) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.4171- Accuracy: 0.9279- 1-f1: 0.4211- 1-recall: 0.6667- 1-precision: 0.3077- Balanced Acc: 0.8026
## 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: 128- eval_batch_size: 128- 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.3347 | 1.0 | 10 | 0.2893 | 0.9082 | 0.3636 | 0.6667 | 0.25 | 0.7924 || 0.2177 | 2.0 | 20 | 0.3316 | 0.8984 | 0.3673 | 0.75 | 0.2432 | 0.8272 || 0.1757 | 3.0 | 30 | 0.4171 | 0.9279 | 0.4211 | 0.6667 | 0.3077 | 0.8026 |
### Framework versions
- Transformers 4.46.3- Pytorch 2.4.1+cu121- Datasets 3.1.0- Tokenizers 0.20.31234567891011121314151617181920212223242526272829303132{ "_name_or_path": "AnonymousCS/populism_multilingual_bert_cased_v2", "architectures": [ "BertForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "directionality": "bidi", "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "pooler_fc_size": 768, "pooler_num_attention_heads": 12, "pooler_num_fc_layers": 3, "pooler_size_per_head": 128, "pooler_type": "first_token_transform", "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.46.3", "type_vocab_size": 2, "use_cache": true, "vocab_size": 119547}123version https://git-lfs.github.com/spec/v1oid sha256:1dfb6ac5ccf283e5cd14bb15903613a5f203f97095232af748502b05e1242555size 71144345612345678910111213141516171819202122232425262728293031323334353637{ "cls_token": { "content": "[CLS]", "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 }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "100": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "101": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "102": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "103": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "clean_up_tokenization_spaces": false, "cls_token": "[CLS]", "do_lower_case": false, "mask_token": "[MASK]", "model_max_length": 512, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "BertTokenizer", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:dd117c220fb10bc441a8ad0c30b9098c247494784b95ae978573e3268f0c6d49size 5432README.mdAdded+68
config.jsonAdded+32
model.safetensorsAdded+3
special_tokens_map.jsonAdded+37
tokenizer.jsonAdded
tokenizer_config.jsonAdded+55
training_args.binAdded+3
vocab.txtAdded