Instructions to use dtorber/bert-base-spanish-wwm-cased_K2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dtorber/bert-base-spanish-wwm-cased_K2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dtorber/bert-base-spanish-wwm-cased_K2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dtorber/bert-base-spanish-wwm-cased_K2") model = AutoModelForSequenceClassification.from_pretrained("dtorber/bert-base-spanish-wwm-cased_K2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| base_model: dccuchile/bert-base-spanish-wwm-cased | |
| tags: | |
| - generated_from_trainer | |
| metrics: | |
| - f1 | |
| - recall | |
| model-index: | |
| - name: bert-base-spanish-wwm-cased_K2 | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # bert-base-spanish-wwm-cased_K2 | |
| This model is a fine-tuned version of [dccuchile/bert-base-spanish-wwm-cased](https://huggingface.co/dccuchile/bert-base-spanish-wwm-cased) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 1.3666 | |
| - F1 Macro: 0.8380 | |
| - F1: 0.8844 | |
| - F1 Neg: 0.7916 | |
| - Acc: 0.8512 | |
| - Prec: 0.8733 | |
| - Recall: 0.8957 | |
| - Mcc: 0.6765 | |
| ## 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 | |
| - distributed_type: multi-GPU | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 15 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| ### Framework versions | |
| - Transformers 4.37.2 | |
| - Pytorch 2.2.0+cu121 | |
| - Datasets 2.16.1 | |
| - Tokenizers 0.15.2 | |