Run this model with HF Jobs
Run mateiaassAI/MBERTbase_REDv2 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/mateiaassAI/MBERTbase_REDv2. 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/mateiaassAI/MBERTbase_REDv2 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 mateiaassAI/MBERTbase_REDv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mateiaassAI/MBERTbase_REDv2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mateiaassAI/MBERTbase_REDv2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mateiaassAI/MBERTbase_REDv2") model = AutoModelForSequenceClassification.from_pretrained("mateiaassAI/MBERTbase_REDv2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (8)
- README.mdAdded+78
- config.jsonAdded+50
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+55
- training_args.binAdded+3
- vocab.txtAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778---library_name: transformerslicense: apache-2.0base_model: google-bert/bert-base-multilingual-casedtags:- generated_from_trainermetrics:- f1- accuracymodel-index:- name: MBERTbase_REDv2 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. -->
# MBERTbase_REDv2
This model is a fine-tuned version of [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.3320- F1: 0.5326- Roc Auc: 0.7058- Accuracy: 0.4383
## 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-05- train_batch_size: 64- eval_batch_size: 64- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 15
### Training results
| Training Loss | Epoch | Step | Validation Loss | F1 | Roc Auc | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:------:|:-------:|:--------:|| No log | 1.0 | 64 | 0.4206 | 0.0 | 0.5 | 0.0 || No log | 2.0 | 128 | 0.3876 | 0.0901 | 0.5328 | 0.0589 || No log | 3.0 | 192 | 0.3599 | 0.2983 | 0.5993 | 0.2081 || No log | 4.0 | 256 | 0.3434 | 0.3808 | 0.6365 | 0.2965 || No log | 5.0 | 320 | 0.3360 | 0.4182 | 0.6474 | 0.3204 || No log | 6.0 | 384 | 0.3267 | 0.4638 | 0.6703 | 0.3646 || No log | 7.0 | 448 | 0.3259 | 0.5033 | 0.6945 | 0.3959 || 0.3376 | 8.0 | 512 | 0.3226 | 0.5140 | 0.6978 | 0.4217 || 0.3376 | 9.0 | 576 | 0.3248 | 0.5099 | 0.6959 | 0.4199 || 0.3376 | 10.0 | 640 | 0.3252 | 0.5230 | 0.6988 | 0.4162 || 0.3376 | 11.0 | 704 | 0.3258 | 0.5211 | 0.7027 | 0.4217 || 0.3376 | 12.0 | 768 | 0.3308 | 0.5214 | 0.6998 | 0.4309 || 0.3376 | 13.0 | 832 | 0.3304 | 0.5305 | 0.7052 | 0.4383 || 0.3376 | 14.0 | 896 | 0.3318 | 0.5297 | 0.7054 | 0.4309 || 0.3376 | 15.0 | 960 | 0.3320 | 0.5326 | 0.7058 | 0.4383 |
### Framework versions
- Transformers 4.45.1- Pytorch 2.4.0- Datasets 3.0.1- Tokenizers 0.20.01234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ "_name_or_path": "google-bert/bert-base-multilingual-cased", "architectures": [ "BertForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": 0.1, "directionality": "bidi", "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "Tristete", "1": "Surpriza", "2": "Frica", "3": "Furie", "4": "Neutru", "5": "Incredere", "6": "Bucurie" }, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "Bucurie": 6, "Frica": 2, "Furie": 3, "Incredere": 5, "Neutru": 4, "Surpriza": 1, "Tristete": 0 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "pooler_fc_size": 768, "pooler_num_attention_heads": 12, "pooler_num_fc_layers": 3, "pooler_size_per_head": 128, "pooler_type": "first_token_transform", "position_embedding_type": "absolute", "problem_type": "multi_label_classification", "torch_dtype": "float32", "transformers_version": "4.45.1", "type_vocab_size": 2, "use_cache": true, "vocab_size": 119547}123version https://git-lfs.github.com/spec/v1oid sha256:fd3eeaf45f4101d97d014664aaebe7ea2aa8b2ac04ceb21016ba71c27e1586bfsize 7114588361234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "100": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "101": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "102": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "103": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "clean_up_tokenization_spaces": false, "cls_token": "[CLS]", "do_lower_case": false, "mask_token": "[MASK]", "model_max_length": 512, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "BertTokenizer", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:f3c370178eb8e0120c65e36fee8b05adebf8a218a5a11a85ddf4228f21b9a230size 5176README.mdAdded+78
config.jsonAdded+50
model.safetensorsAdded+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+55
training_args.binAdded+3
vocab.txtAdded