Run this model with HF Jobs

Run mofawzy/bert-labr-unbalanced 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/mofawzy/bert-labr-unbalanced. 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/mofawzy/bert-labr-unbalanced 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.

BERT-LABR unbalanced

Arabic version bert model fine tuned on LABR dataset

Data

The model were fine-tuned on ~63000 book reviews in arabic using bert large arabic

Results

class precision recall f1-score Support
0 0.8109 0.6832 0.7416 1670
1 0.9399 0.9689 0.9542 8541
Accuracy 0.9221 10211

How to use

You can use these models by installing torch or tensorflow and Huggingface library transformers. And you can use it directly by initializing it like this:

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model_name="mofawzy/bert-labr-unbalanced"
model = AutoModelForSequenceClassification.from_pretrained(model_name,num_labels=2)
tokenizer = AutoTokenizer.from_pretrained(model_name)
Downloads last month
12
Safetensors
Model size
0.3B params
Tensor type
I64
·
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train mofawzy/bert-labr-unbalanced