Run this model with HF Jobs
Run MoNafea01/saudi-eou-bert-classifier 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/MoNafea01/saudi-eou-bert-classifier. 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/MoNafea01/saudi-eou-bert-classifier 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 MoNafea01/saudi-eou-bert-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use MoNafea01/saudi-eou-bert-classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("aubmindlab/bert-base-arabertv02") model = PeftModel.from_pretrained(base_model, "MoNafea01/saudi-eou-bert-classifier") - Transformers
How to use MoNafea01/saudi-eou-bert-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="MoNafea01/saudi-eou-bert-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("MoNafea01/saudi-eou-bert-classifier") model = AutoModelForSequenceClassification.from_pretrained("MoNafea01/saudi-eou-bert-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
merged the datasets (original + New)
Browse filesFiles changed (9)
- README.mdAdded+74
- adapter_config.jsonAdded+45
- adapter_model.safetensorsAdded+3
- runs/Dec10_09-30-19_61b5417fdc00/events.out.tfevents.1765359023.61b5417fdc00.586.6Added+3
- special_tokens_map.jsonAdded+37
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+87
- training_args.binAdded+3
- vocab.txtAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374---library_name: peftbase_model: aubmindlab/bert-base-arabertv02tags:- base_model:adapter:aubmindlab/bert-base-arabertv02- lora- transformersmetrics:- accuracymodel-index:- name: saudi-eou-bert-classifier 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. -->
# saudi-eou-bert-classifier
This model is a fine-tuned version of [aubmindlab/bert-base-arabertv02](https://huggingface.co/aubmindlab/bert-base-arabertv02) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.3407- Accuracy: 0.864- Auc: 0.921
## 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: 16- eval_batch_size: 16- seed: 42- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- lr_scheduler_warmup_ratio: 0.1- num_epochs: 10
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Auc ||:-------------:|:-----:|:----:|:---------------:|:--------:|:-----:|| 0.712 | 1.0 | 295 | 0.6541 | 0.619 | 0.685 || 0.5634 | 2.0 | 590 | 0.4838 | 0.781 | 0.845 || 0.4258 | 3.0 | 885 | 0.4189 | 0.819 | 0.883 || 0.3619 | 4.0 | 1180 | 0.3920 | 0.837 | 0.897 || 0.3366 | 5.0 | 1475 | 0.3684 | 0.853 | 0.907 || 0.3309 | 6.0 | 1770 | 0.3650 | 0.854 | 0.912 || 0.3191 | 7.0 | 2065 | 0.3555 | 0.856 | 0.916 || 0.3028 | 8.0 | 2360 | 0.3432 | 0.864 | 0.919 || 0.3018 | 9.0 | 2655 | 0.3437 | 0.859 | 0.92 || 0.2987 | 10.0 | 2950 | 0.3407 | 0.864 | 0.921 |
### Framework versions
- PEFT 0.18.0- Transformers 4.57.3- Pytorch 2.9.0+cu126- Datasets 4.4.1- Tokenizers 0.22.1123456789101112131415161718192021222324252627282930313233343536373839404142434445{ "alora_invocation_tokens": null, "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, "base_model_name_or_path": "aubmindlab/bert-base-arabertv02", "bias": "none", "corda_config": null, "ensure_weight_tying": false, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 16, "lora_bias": false, "lora_dropout": 0.1, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": [ "classifier", "score" ], "peft_type": "LORA", "peft_version": "0.18.0", "qalora_group_size": 16, "r": 64, "rank_pattern": {}, "revision": null, "target_modules": [ "query", "value", "key" ], "target_parameters": null, "task_type": "SEQ_CLS", "trainable_token_indices": null, "use_dora": false, "use_qalora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:bc80637ef5117db13e28cfafced198b85010e2e51fb25fa40109c007d838be96size 14172320123version https://git-lfs.github.com/spec/v1oid sha256:ed691ccb611a89361523be38f991a11b0763fa32554ecc8225abf91121f2b335size 1127512345678910111213141516171819202122232425262728293031323334353637{ "cls_token": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "mask_token": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "sep_token": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "4": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "5": { "content": "[رابط]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": true, "special": true }, "6": { "content": "[بريد]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": true, "special": true }, "7": { "content": "[مستخدم]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": true, "special": true } }, "clean_up_tokenization_spaces": false, "cls_token": "[CLS]", "do_basic_tokenize": true, "do_lower_case": false, "extra_special_tokens": {}, "mask_token": "[MASK]", "max_len": 512, "model_max_length": 512, "never_split": [ "[بريد]", "[مستخدم]", "[رابط]" ], "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:526592a08c76194e142d99f03d1298779303da87b7c5e0903b9b206fbcefe08esize 5841README.mdAdded+74
adapter_config.jsonAdded+45
adapter_model.safetensorsAdded+3
runs/Dec10_09-30-19_61b5417fdc00/events.out.tfevents.1765359023.61b5417fdc00.586.6Added+3
special_tokens_map.jsonAdded+37
tokenizer.jsonAdded
tokenizer_config.jsonAdded+87
training_args.binAdded+3
vocab.txtAdded