Instructions to use whitedevil0089devil/roberta_base_1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use whitedevil0089devil/roberta_base_1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="whitedevil0089devil/roberta_base_1")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("whitedevil0089devil/roberta_base_1") model = AutoModelForSequenceClassification.from_pretrained("whitedevil0089devil/roberta_base_1") - Notebooks
- Google Colab
- Kaggle
| { | |
| "best_global_step": 200, | |
| "best_metric": 0.9943728018757327, | |
| "best_model_checkpoint": "/content/drive/MyDrive/model/roberta_model/checkpoint-200", | |
| "epoch": 0.04689331770222743, | |
| "eval_steps": 200, | |
| "global_step": 200, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.00023446658851113716, | |
| "grad_norm": 7.900483131408691, | |
| "learning_rate": 0.0, | |
| "loss": 1.2285, | |
| "step": 1 | |
| }, | |
| { | |
| "epoch": 0.023446658851113716, | |
| "grad_norm": 2.4035584926605225, | |
| "learning_rate": 2.9015240328253227e-06, | |
| "loss": 0.9217, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 0.04689331770222743, | |
| "grad_norm": 0.31396016478538513, | |
| "learning_rate": 5.832356389214537e-06, | |
| "loss": 0.073, | |
| "step": 200 | |
| }, | |
| { | |
| "epoch": 0.04689331770222743, | |
| "eval_accuracy": 0.9943728018757327, | |
| "eval_f1_macro": 0.24929461556548319, | |
| "eval_f1_weighted": 0.9915671414895327, | |
| "eval_loss": 0.04064385965466499, | |
| "eval_runtime": 57.486, | |
| "eval_samples_per_second": 148.384, | |
| "eval_steps_per_second": 9.289, | |
| "step": 200 | |
| } | |
| ], | |
| "logging_steps": 100, | |
| "max_steps": 17060, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 4, | |
| "save_steps": 200, | |
| "stateful_callbacks": { | |
| "EarlyStoppingCallback": { | |
| "args": { | |
| "early_stopping_patience": 3, | |
| "early_stopping_threshold": 0.001 | |
| }, | |
| "attributes": { | |
| "early_stopping_patience_counter": 0 | |
| } | |
| }, | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 631483541913600.0, | |
| "train_batch_size": 16, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |