Instructions to use Zlovoblachko/roberta-base_binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zlovoblachko/roberta-base_binary with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Zlovoblachko/roberta-base_binary")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Zlovoblachko/roberta-base_binary") model = AutoModelForTokenClassification.from_pretrained("Zlovoblachko/roberta-base_binary", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Zlovoblachko/roberta-base_binary: direct link, hf CLI and curl.
- Browser
- Download file 2.1 kB
-
https://huggingface.co/Zlovoblachko/roberta-base_binary/resolve/main/README.md
- Command line
-
hf download hf://Zlovoblachko/roberta-base_binary/README.md
-
curl -L -o README.md https://huggingface.co/Zlovoblachko/roberta-base_binary/resolve/main/README.md
2.1 kB
| library_name: transformers | |
| license: mit | |
| base_model: roberta-base | |
| tags: | |
| - generated_from_trainer | |
| metrics: | |
| - precision | |
| - recall | |
| - f1 | |
| model-index: | |
| - name: roberta-base_binary | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # roberta-base_binary | |
| This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.1729 | |
| - Precision: 0.8178 | |
| - Recall: 0.6136 | |
| - F1: 0.7012 | |
| - F0.5: 0.7668 | |
| - Macro Precision: 0.8824 | |
| - Macro Recall: 0.7971 | |
| - Macro F1: 0.8323 | |
| - Macro F0.5: 0.8602 | |
| ## 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: 3e-05 | |
| - train_batch_size: 16 | |
| - eval_batch_size: 16 | |
| - seed: 42 | |
| - gradient_accumulation_steps: 2 | |
| - total_train_batch_size: 32 | |
| - 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: 2 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | F0.5 | Macro Precision | Macro Recall | Macro F1 | Macro F0.5 | | |
| |:-------------:|:------:|:----:|:---------------:|:---------:|:------:|:------:|:------:|:---------------:|:------------:|:--------:|:----------:| | |
| | 0.1963 | 1.0 | 1926 | 0.1702 | 0.8148 | 0.6179 | 0.7028 | 0.7660 | 0.8814 | 0.7991 | 0.8333 | 0.8601 | | |
| | 0.1621 | 1.9992 | 3850 | 0.1698 | 0.8027 | 0.6472 | 0.7166 | 0.7659 | 0.8772 | 0.8124 | 0.8405 | 0.8613 | | |
| ### Framework versions | |
| - Transformers 4.50.3 | |
| - Pytorch 2.6.0+cu124 | |
| - Datasets 3.5.0 | |
| - Tokenizers 0.21.1 | |