Text Classification
Transformers
TensorBoard
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use adriansanz/FS_25_06 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adriansanz/FS_25_06 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="adriansanz/FS_25_06")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("adriansanz/FS_25_06") model = AutoModelForSequenceClassification.from_pretrained("adriansanz/FS_25_06", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (11)
- README.mdAdded+72
- config.jsonAdded+51
- logs/events.out.tfevents.1716291730.09504e3d368c.191.1Added+3
- logs/events.out.tfevents.1716292183.09504e3d368c.191.2Added+3
- merges.txtAdded
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+51
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+58
- training_args.binAdded+3
- vocab.jsonAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172---license: apache-2.0base_model: projecte-aina/roberta-base-ca-v2tags:- generated_from_trainermetrics:- accuracy- precision- recall- f1model-index:- name: FS_25_06 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. -->
# FS_25_06
This model is a fine-tuned version of [projecte-aina/roberta-base-ca-v2](https://huggingface.co/projecte-aina/roberta-base-ca-v2) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.1755- Accuracy: 0.9647- Precision: 0.9651- Recall: 0.9646- F1: 0.9644- Ratio: 0.0529
## 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 | Precision | Recall | F1 | Ratio ||:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|:------:|| 1.7815 | 1.0 | 362 | 1.6483 | 0.9059 | 0.9166 | 0.9061 | 0.9069 | 0.0569 || 0.364 | 2.0 | 724 | 0.2948 | 0.9451 | 0.9480 | 0.9450 | 0.9447 | 0.0569 || 0.0418 | 3.0 | 1086 | 0.2467 | 0.9510 | 0.9529 | 0.9509 | 0.9509 | 0.0549 || 0.0218 | 4.0 | 1448 | 0.1853 | 0.9647 | 0.9651 | 0.9646 | 0.9644 | 0.0529 || 0.0985 | 5.0 | 1810 | 0.1755 | 0.9647 | 0.9651 | 0.9646 | 0.9644 | 0.0529 |
### Framework versions
- Transformers 4.40.2- Pytorch 2.2.1+cu121- Datasets 2.19.1- Tokenizers 0.19.1123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "_name_or_path": "projecte-aina/roberta-base-ca-v2", "architectures": [ "RobertaForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "eos_token_id": 2, "gradient_checkpointing": false, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "Aigues", "1": "Consum, comer\u00e7 i mercats", "2": "Cultura", "3": "Economia", "4": "Educaci\u00f3", "5": "Enllumenat p\u00fablic", "6": "Esports", "7": "Habitatge", "8": "Horta", "9": "Informaci\u00f3 general", "10": "Inform\u00e0tica", "11": "Joventut", "12": "Medi ambient", "13": "Neteja de la via p\u00fablica", "14": "Salut p\u00fablica i Cementiri", "15": "Seguretat", "16": "Serveis socials", "17": "Tramitacions", "18": "Urbanisme", "19": "Via p\u00fablica i mobilitat" }, "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": 12, "pad_token_id": 1, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.40.2", "type_vocab_size": 1, "use_cache": true, "vocab_size": 50262}123version https://git-lfs.github.com/spec/v1oid sha256:a2782ce1dc696b67bd79a9987625b41d2be247cf6195ffa51f83469573ec6874size 46411123version https://git-lfs.github.com/spec/v1oid sha256:75807ce25ce119508930374e9febbd2102a767fdff02e284837e228178f6f297size 609123version https://git-lfs.github.com/spec/v1oid sha256:184b24aaaf18fd897a35248ec25f58ccdb4aded9aaa89dbf16f84e93ba3b1127size 498658976123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "cls_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "mask_token": { "content": "<mask>", "lstrip": true, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ "add_prefix_space": true, "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 }, "4": { "content": "<mask>", "lstrip": true, "normalized": true, "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>", "max_len": 512, "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:192a1ec33f739b09a9508b6436555377906ef2dd11baf572f74bd6a2985d3c4csize 5048README.mdAdded+72
config.jsonAdded+51
logs/events.out.tfevents.1716291730.09504e3d368c.191.1Added+3
logs/events.out.tfevents.1716292183.09504e3d368c.191.2Added+3
merges.txtAdded
model.safetensorsAdded+3
special_tokens_map.jsonAdded+51
tokenizer.jsonAdded
tokenizer_config.jsonAdded+58
training_args.binAdded+3
vocab.jsonAdded