Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run Yuvrajg2107/roberta-base-cpp 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/Yuvrajg2107/roberta-base-cpp. 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/Yuvrajg2107/roberta-base-cpp 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 Yuvrajg2107/roberta-base-cpp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yuvrajg2107/roberta-base-cpp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Yuvrajg2107/roberta-base-cpp")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Yuvrajg2107/roberta-base-cpp") model = AutoModelForSequenceClassification.from_pretrained("Yuvrajg2107/roberta-base-cpp", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (4)
- README.mdAdded+71
- config.json+1-1
- model.safetensors+1-1
- training_args.bin+1-1
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071---library_name: transformerslicense: mitbase_model: FacebookAI/roberta-basetags:- generated_from_trainermetrics:- accuracymodel-index:- name: roberta-base-cpp 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-cpp
This model is a fine-tuned version of [FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.1043- Accuracy: 0.9419
## 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: 2- eval_batch_size: 16- seed: 42- gradient_accumulation_steps: 2- total_train_batch_size: 4- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 1- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| 0.1244 | 0.125 | 1000 | 0.0842 | 0.931 || 0.0851 | 0.25 | 2000 | 0.2041 | 0.7715 || 0.0632 | 0.375 | 3000 | 0.1610 | 0.9123 || 0.0521 | 0.5 | 4000 | 0.0907 | 0.9224 || 0.0426 | 0.625 | 5000 | 0.2447 | 0.8784 || 0.0341 | 0.75 | 6000 | 0.0667 | 0.9641 || 0.0252 | 0.875 | 7000 | 0.0872 | 0.957 || 0.0184 | 1.0 | 8000 | 0.1043 | 0.9419 |
### Framework versions
- Transformers 4.57.1- Pytorch 2.8.0+cu126- Datasets 4.4.1- Tokenizers 0.22.118 unmodified lines1920212223242518 unmodified lines"num_hidden_layers": 12,"pad_token_id": 1,"position_embedding_type": "absolute","transformers_version": "4.57.3","type_vocab_size": 1,"use_cache": true,"vocab_size": 5026518 unmodified lines1920212223242518 unmodified lines"num_hidden_layers": 12,"pad_token_id": 1,"position_embedding_type": "absolute","transformers_version": "4.57.1","type_vocab_size": 1,"use_cache": true,"vocab_size": 50265
123version https://git-lfs.github.com/spec/v1oid sha256:6b0075e6716b391b423ea614a7409f90848b1fdf865d2dd524d7a1704b32111csize 498612824123version https://git-lfs.github.com/spec/v1oid sha256:cfbea2d700ccc89e7267e56fb4ae1450990637a55422a1e044b82b935b1d6a38size 498612824
123version https://git-lfs.github.com/spec/v1oid sha256:4672bef08597eaac4166af409003080f023f24990f8f58c185b2b990119dc93esize 5841123version https://git-lfs.github.com/spec/v1oid sha256:5d1dcf0aa731896a45dc92ce645a0147a079fc2db258f2967bafe27b497eba6bsize 5841
README.mdAdded+71
config.json+1-1
model.safetensors+1-1
training_args.bin+1-1