Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run AnonymousCS/populism_classifier_217 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_217. 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_217 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_217 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnonymousCS/populism_classifier_217 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AnonymousCS/populism_classifier_217")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AnonymousCS/populism_classifier_217") model = AutoModelForSequenceClassification.from_pretrained("AnonymousCS/populism_classifier_217", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (4)
- README.md+10-9
- config.json+3-3
- model.safetensors+1-1
- training_args.bin+1-1
17 unmodified lines1819202122232417 unmodified lines4243444546474849504 unmodified lines555657585960616263646517 unmodified linesThis model is a fine-tuned version of [AnonymousCS/populism_xlmr_large](https://huggingface.co/AnonymousCS/populism_xlmr_large) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.6178- Accuracy: 0.9498- 1-f1: 0.0- 1-recall: 0.017 unmodified lines### Training hyperparametersThe 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: linear4 unmodified lines| Training Loss | Epoch | Step | Validation Loss | Accuracy | 1-f1 | 1-recall | 1-precision | Balanced Acc ||:-------------:|:-----:|:----:|:---------------:|:--------:|:----:|:--------:|:-----------:|:------------:|| 0.6511 | 1.0 | 33 | 0.6172 | 0.9498 | 0.0 | 0.0 | 0.0 | 0.5 || 0.5302 | 2.0 | 66 | 0.6189 | 0.9498 | 0.0 | 0.0 | 0.0 | 0.5 || 0.5991 | 3.0 | 99 | 0.6172 | 0.9498 | 0.0 | 0.0 | 0.0 | 0.5 || 0.6421 | 4.0 | 132 | 0.6212 | 0.9498 | 0.0 | 0.0 | 0.0 | 0.5 || 0.5804 | 5.0 | 165 | 0.6178 | 0.9498 | 0.0 | 0.0 | 0.0 | 0.5 |### Framework versions17 unmodified lines1819202122232417 unmodified lines4243444546474849504 unmodified lines55565758596061626364656617 unmodified linesThis model is a fine-tuned version of [AnonymousCS/populism_xlmr_large](https://huggingface.co/AnonymousCS/populism_xlmr_large) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.2231- Accuracy: 0.9498- 1-f1: 0.0- 1-recall: 0.017 unmodified lines### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 3e-05- train_batch_size: 16- eval_batch_size: 16- 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: linear4 unmodified lines| Training Loss | Epoch | Step | Validation Loss | Accuracy | 1-f1 | 1-recall | 1-precision | Balanced Acc ||:-------------:|:-----:|:----:|:---------------:|:--------:|:----:|:--------:|:-----------:|:------------:|| 0.0248 | 1.0 | 130 | 0.2235 | 0.9498 | 0.0 | 0.0 | 0.0 | 0.5 || 0.0294 | 2.0 | 260 | 0.2200 | 0.9498 | 0.0 | 0.0 | 0.0 | 0.5 || 0.5772 | 3.0 | 390 | 0.2092 | 0.9498 | 0.0 | 0.0 | 0.0 | 0.5 || 0.1304 | 4.0 | 520 | 0.2199 | 0.9498 | 0.0 | 0.0 | 0.0 | 0.5 || 1.0891 | 5.0 | 650 | 0.2297 | 0.9498 | 0.0 | 0.0 | 0.0 | 0.5 || 0.0211 | 6.0 | 780 | 0.2231 | 0.9498 | 0.0 | 0.0 | 0.0 | 0.5 |### Framework versions
2 unmodified lines345678910111213142 unmodified lines"architectures": ["XLMRobertaForSequenceClassification"],"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": 1024,"initializer_range": 0.02,"intermediate_size": 4096,2 unmodified lines345678910111213142 unmodified lines"architectures": ["XLMRobertaForSequenceClassification"],"attention_probs_dropout_prob": 0.2,"bos_token_id": 0,"classifier_dropout": 0.2,"eos_token_id": 2,"hidden_act": "gelu","hidden_dropout_prob": 0.2,"hidden_size": 1024,"initializer_range": 0.02,"intermediate_size": 4096,
123version https://git-lfs.github.com/spec/v1oid sha256:7e449f183a4a672ae2fdecba979773ea335ea1f6ef2380cdd0c5a053c872b74esize 2239618672123version https://git-lfs.github.com/spec/v1oid sha256:9de7f1bcf00c22fb813d11028cd31fef9833611e5fd9327969fe479d7c38cab9size 2239618672
123version https://git-lfs.github.com/spec/v1oid sha256:f07a46fb07e0a0690a15988e46ae72b9830a629052babde01cfe46bfa8b832basize 5432123version https://git-lfs.github.com/spec/v1oid sha256:b4e4f513d33aa7fd55ca4c75923f6752c9f6d0c3ce4dfcaca0bf68d9f5c16237size 5432
README.md+10-9
config.json+3-3
model.safetensors+1-1
training_args.bin+1-1