Text Classification
Transformers
PyTorch
TensorBoard
Safetensors
roberta
stress
classification
glassdoor
Eval Results (legacy)
text-embeddings-inference
Instructions to use dstefa/roberta-base_stress_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dstefa/roberta-base_stress_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dstefa/roberta-base_stress_classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dstefa/roberta-base_stress_classification") model = AutoModelForSequenceClassification.from_pretrained("dstefa/roberta-base_stress_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (9)
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071---license: mitbase_model: roberta-basetags:- generated_from_trainermetrics:- accuracy- f1- precision- recallmodel-index:- name: roberta-base_stress_classification 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. -->
# roberta-base_stress_classification
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.0642- Accuracy: 0.9844- F1: 0.9844- Precision: 0.9848- Recall: 0.9844
## 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: 5e-05- train_batch_size: 8- eval_batch_size: 8- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- lr_scheduler_warmup_steps: 500- num_epochs: 5
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall ||:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|| 0.3508 | 1.0 | 160 | 0.2642 | 0.9031 | 0.9027 | 0.9102 | 0.9031 || 0.4855 | 2.0 | 320 | 0.1365 | 0.975 | 0.9750 | 0.9751 | 0.975 || 0.0655 | 3.0 | 480 | 0.0642 | 0.9844 | 0.9844 | 0.9848 | 0.9844 || 0.0884 | 4.0 | 640 | 0.0699 | 0.9875 | 0.9875 | 0.9878 | 0.9875 || 0.0006 | 5.0 | 800 | 0.0741 | 0.9844 | 0.9844 | 0.9845 | 0.9844 |
### Framework versions
- Transformers 4.35.2- Pytorch 2.1.0+cu121- Datasets 2.16.1- Tokenizers 0.15.012323version https://git-lfs.github.com/spec/v1oid sha256:70eeb61c4cf0608c6beb01256ec40d7e54f8e29cfa7038c3b9dd133156b6eaa5size 19131oid sha256:32d28df65598b55a7a86469a032ec58c79c56485c2c6eb4b67dcf076a4c66119size 19485123version https://git-lfs.github.com/spec/v1oid sha256:fb6d23b4e07ab512d863510cf2bb98557c25cce2dc3b305f5a4c122354c6e304size 5121223version https://git-lfs.github.com/spec/v1oid sha256:8e433f8681969408939bf5be3dc2773e3273702faa24891dedd02427e71711dfoid sha256:05e6cd0ba9e99ba46122a2947778d57b0ca1de31f5c7beb7f66f9cd8b51a38basize 498612824123456789101112131415{ "bos_token": "<s>", "cls_token": "<s>", "eos_token": "</s>", "mask_token": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<pad>", "sep_token": "</s>", "unk_token": "<unk>"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ "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": true, "cls_token": "<s>", "eos_token": "</s>", "errors": "replace", "mask_token": "<mask>", "model_max_length": 512, "pad_token": "<pad>", "sep_token": "</s>", "tokenizer_class": "RobertaTokenizer", "trim_offsets": true, "unk_token": "<unk>"}README.md+68
logs/events.out.tfevents.1706087801.3ba10b00d69f.392.0+2-2
logs/events.out.tfevents.1706088547.3ba10b00d69f.392.1Added+3
merges.txtAdded
model.safetensors+1-1
special_tokens_map.jsonAdded+15
tokenizer.jsonAdded
tokenizer_config.jsonAdded+57
vocab.jsonAdded