Text Classification
Transformers
TensorBoard
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use frett/distilroberta-base_task2-2_macrof1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use frett/distilroberta-base_task2-2_macrof1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="frett/distilroberta-base_task2-2_macrof1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("frett/distilroberta-base_task2-2_macrof1") model = AutoModelForSequenceClassification.from_pretrained("frett/distilroberta-base_task2-2_macrof1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (11)
- README.mdAdded+68
- config.jsonAdded+33
- logs/events.out.tfevents.1716966334.567077a2e509.3297.0Added+3
- logs/events.out.tfevents.1716966995.567077a2e509.3297.1Added+3
- merges.txtAdded
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+15
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+57
- training_args.binAdded+3
- vocab.jsonAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768---license: apache-2.0base_model: distilroberta-basetags:- generated_from_trainermodel-index:- name: distilroberta-base_task2-2_macrof1 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. -->
# distilroberta-base_task2-2_macrof1
This model is a fine-tuned version of [distilroberta-base](https://huggingface.co/distilroberta-base) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.6203- Macro F1: 0.3090
## 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-06- train_batch_size: 10- 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: 10
### Training results
| Training Loss | Epoch | Step | Validation Loss | Macro F1 ||:-------------:|:-----:|:----:|:---------------:|:--------:|| 0.6541 | 1.0 | 553 | 0.6474 | 0.2768 || 0.7044 | 2.0 | 1106 | 0.6376 | 0.2768 || 0.6615 | 3.0 | 1659 | 0.6390 | 0.2768 || 0.6289 | 4.0 | 2212 | 0.6355 | 0.2768 || 0.5047 | 5.0 | 2765 | 0.6372 | 0.2841 || 0.5894 | 6.0 | 3318 | 0.6296 | 0.2983 || 0.5401 | 7.0 | 3871 | 0.6203 | 0.3090 || 0.7215 | 8.0 | 4424 | 0.6263 | 0.3080 || 0.6368 | 9.0 | 4977 | 0.6370 | 0.3033 || 0.4872 | 10.0 | 5530 | 0.6349 | 0.3024 |
### Framework versions
- Transformers 4.41.1- Pytorch 2.3.0+cu121- Datasets 2.19.1- Tokenizers 0.19.1123456789101112131415161718192021222324252627282930313233{ "_name_or_path": "distilroberta-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, "id2label": { "0": "None", "1": "Support", "2": "Attack" }, "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": 6, "pad_token_id": 1, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.41.1", "type_vocab_size": 1, "use_cache": true, "vocab_size": 50265}123version https://git-lfs.github.com/spec/v1oid sha256:f2ed576b550decf434e471efd3e3510bcb362639a352c388f1b41f0545f43ba8size 125191123version https://git-lfs.github.com/spec/v1oid sha256:cede185f3d77933a0e92e01fcdd729ba813ae709bb1d294b5390115d1983955asize 411123version https://git-lfs.github.com/spec/v1oid sha256:e52f9d19b7e4e7cd7cfa8b6f75c4c71abf6fb3c1893a1924b2bcb60917c4f2c2size 328495356123456789101112131415{ "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>"}123version https://git-lfs.github.com/spec/v1oid sha256:6112d04e2e794714a605be590c20b22e5f715836e21ab7256b8d59d48983a3c2size 5176README.mdAdded+68
config.jsonAdded+33
logs/events.out.tfevents.1716966334.567077a2e509.3297.0Added+3
logs/events.out.tfevents.1716966995.567077a2e509.3297.1Added+3
merges.txtAdded
model.safetensorsAdded+3
special_tokens_map.jsonAdded+15
tokenizer.jsonAdded
tokenizer_config.jsonAdded+57
training_args.binAdded+3
vocab.jsonAdded