Run this model with HF Jobs
Run AIWizards/MultiPRIDE-DualEncoder-MainStage-es 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/AIWizards/MultiPRIDE-DualEncoder-MainStage-es. 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/AIWizards/MultiPRIDE-DualEncoder-MainStage-es 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 AIWizards/MultiPRIDE-DualEncoder-MainStage-es with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AIWizards/MultiPRIDE-DualEncoder-MainStage-es with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AIWizards/MultiPRIDE-DualEncoder-MainStage-es")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AIWizards/MultiPRIDE-DualEncoder-MainStage-es") model = AutoModelForSequenceClassification.from_pretrained("AIWizards/MultiPRIDE-DualEncoder-MainStage-es", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Luca Tedeschini commited on
MultiPRIDE-DualEncoder-MainStage-es
Browse filesFiles changed (4)
- README.mdAdded+71
- config.jsonAdded+41
- model.safetensorsAdded+3
- training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071---library_name: transformersbase_model: cardiffnlp/twitter-xlm-roberta-base-hate-spanishtags:- generated_from_trainermetrics:- accuracy- f1- precision- recallmodel-index:- name: MultiPRIDE-DualEncoder-MainStage-es 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. -->
# MultiPRIDE-DualEncoder-MainStage-es
This model is a fine-tuned version of [cardiffnlp/twitter-xlm-roberta-base-hate-spanish](https://huggingface.co/cardiffnlp/twitter-xlm-roberta-base-hate-spanish) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.3704- Accuracy: 0.8333- F1: 0.56- Precision: 0.4667- Recall: 0.7
## 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: 2e-05- train_batch_size: 8- eval_batch_size: 8- seed: 42- optimizer: Use adamw_torch_fused with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 10
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall ||:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|| 0.6609 | 1.0 | 77 | 0.5098 | 0.8636 | 0.5714 | 0.5455 | 0.6 || 0.5878 | 2.0 | 154 | 0.4235 | 0.8258 | 0.5818 | 0.4571 | 0.8 || 0.5223 | 3.0 | 231 | 0.3988 | 0.8561 | 0.5957 | 0.5185 | 0.7 || 0.4915 | 4.0 | 308 | 0.3783 | 0.8409 | 0.5714 | 0.4828 | 0.7 || 0.4787 | 5.0 | 385 | 0.3764 | 0.8333 | 0.5926 | 0.4706 | 0.8 || 0.4287 | 6.0 | 462 | 0.3704 | 0.8333 | 0.56 | 0.4667 | 0.7 |
### Framework versions
- Transformers 4.57.3- Pytorch 2.9.1+cu128- Datasets 4.4.1- Tokenizers 0.22.11234567891011121314151617181920212223242526272829303132333435363738394041{ "architectures": [ "DualEncoderForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "class_weights": [ 1.179190754890442, 6.5806450843811035 ], "classifier_dropout": null, "dtype": "bfloat16", "eos_token_id": 2, "gradient_checkpointing": false, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "NOT-HATE", "1": "HATE" }, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "HATE": 1, "NOT-HATE": 0 }, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "xlm-roberta", "num_attention_heads": 12, "num_hidden_layers": 12, "output_past": true, "pad_token_id": 1, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "transformers_version": "4.57.3", "type_vocab_size": 1, "use_cache": true, "vocab_size": 250002}123version https://git-lfs.github.com/spec/v1oid sha256:7bc18304ab297fc349423cc6112aa48b6fd6644026403b42c019539ad4e50292size 1115770572123version https://git-lfs.github.com/spec/v1oid sha256:9c92072f74663a9427f16d32e7d568fb8fa0f79676330af7ff644fd0d98c5831size 5969README.mdAdded+71
config.jsonAdded+41
model.safetensorsAdded+3
training_args.binAdded+3