Text Classification
Transformers
TensorBoard
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run Ahmed235/roberta-base-topic_classification_simple2 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/Ahmed235/roberta-base-topic_classification_simple2. 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/Ahmed235/roberta-base-topic_classification_simple2 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 Ahmed235/roberta-base-topic_classification_simple2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ahmed235/roberta-base-topic_classification_simple2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Ahmed235/roberta-base-topic_classification_simple2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Ahmed235/roberta-base-topic_classification_simple2") model = AutoModelForSequenceClassification.from_pretrained("Ahmed235/roberta-base-topic_classification_simple2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (3)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081---license: mitbase_model: roberta-basetags:- generated_from_trainermetrics:- accuracy- f1model-index:- name: roberta-base-topic_classification_simple2 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. -->
# roberta-base-topic_classification_simple2
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on the None dataset.It achieves the following results on the evaluation set:- Loss: 1.1250- Accuracy: {'accuracy': 0.866996699669967}- F1: {'f1': 0.8657113367537151}
## 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: 32- eval_batch_size: 32- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 20
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 ||:-------------:|:-----:|:----:|:---------------:|:--------------------------------:|:--------------------------:|| No log | 1.0 | 313 | 0.5920 | {'accuracy': 0.8158415841584158} | {'f1': 0.8063426391052376} || 0.7507 | 2.0 | 626 | 0.5183 | {'accuracy': 0.8419141914191419} | {'f1': 0.8450438669495921} || 0.7507 | 3.0 | 939 | 0.5089 | {'accuracy': 0.8514851485148515} | {'f1': 0.8522994355907825} || 0.3199 | 4.0 | 1252 | 0.6030 | {'accuracy': 0.8508250825082508} | {'f1': 0.8484331857141633} || 0.1504 | 5.0 | 1565 | 0.6894 | {'accuracy': 0.8617161716171617} | {'f1': 0.8599694556754336} || 0.1504 | 6.0 | 1878 | 0.8381 | {'accuracy': 0.8448844884488449} | {'f1': 0.8461993387843019} || 0.0822 | 7.0 | 2191 | 0.8515 | {'accuracy': 0.8554455445544554} | {'f1': 0.8542784950089077} || 0.0551 | 8.0 | 2504 | 0.9319 | {'accuracy': 0.8531353135313532} | {'f1': 0.853451943641699} || 0.0551 | 9.0 | 2817 | 0.9478 | {'accuracy': 0.8577557755775578} | {'f1': 0.8565849659994866} || 0.0377 | 10.0 | 3130 | 0.9998 | {'accuracy': 0.8554455445544554} | {'f1': 0.8550659197552203} || 0.0377 | 11.0 | 3443 | 1.0025 | {'accuracy': 0.8554455445544554} | {'f1': 0.8550137537621838} || 0.0279 | 12.0 | 3756 | 1.0728 | {'accuracy': 0.8574257425742574} | {'f1': 0.8566278925949554} || 0.0132 | 13.0 | 4069 | 1.0873 | {'accuracy': 0.8623762376237624} | {'f1': 0.8610125122049608} || 0.0132 | 14.0 | 4382 | 1.0989 | {'accuracy': 0.8653465346534653} | {'f1': 0.863969705278768} || 0.0124 | 15.0 | 4695 | 1.1379 | {'accuracy': 0.8643564356435643} | {'f1': 0.8630599594036119} || 0.0095 | 16.0 | 5008 | 1.1207 | {'accuracy': 0.8653465346534653} | {'f1': 0.8639194427774014} || 0.0095 | 17.0 | 5321 | 1.1053 | {'accuracy': 0.866006600660066} | {'f1': 0.8652013668499585} || 0.0074 | 18.0 | 5634 | 1.1296 | {'accuracy': 0.863036303630363} | {'f1': 0.8615189712315606} || 0.0074 | 19.0 | 5947 | 1.1099 | {'accuracy': 0.8689768976897689} | {'f1': 0.867663744149239} || 0.0046 | 20.0 | 6260 | 1.1250 | {'accuracy': 0.866996699669967} | {'f1': 0.8657113367537151} |
### Framework versions
- Transformers 4.35.2- Pytorch 2.1.0+cu121- Datasets 2.16.1- Tokenizers 0.15.1123version https://git-lfs.github.com/spec/v1oid sha256:70151f67aff7bd67a73e7c65bbdec88f4215c871128096cfd15e8b4097349953size 725458760123version https://git-lfs.github.com/spec/v1oid sha256:cfb3b6355e0cfc7944d43a8bc6ce6f2adb100259ea0686785b97aa1b584d1f27size 725458760
123version https://git-lfs.github.com/spec/v1oid sha256:b16f48e4dc61fdc07a76e5c456d7d6ec12fcf5e556248d84753da02f01e2efa1size 12034123version https://git-lfs.github.com/spec/v1oid sha256:20242a63bfb22e78f456ba24392b0d04cb85e0763192a5a62ca740a790ae6f98size 12388
README.mdAdded+81
model.safetensors+1-1
runs/Jan27_19-44-39_f88a4aa5a720/events.out.tfevents.1706384680.f88a4aa5a720.1702.0+2-2