Instructions to use xshubhamx/bart-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xshubhamx/bart-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="xshubhamx/bart-base")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("xshubhamx/bart-base") model = AutoModelForSequenceClassification.from_pretrained("xshubhamx/bart-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,436 Bytes
02ee8f0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | {
"best_metric": 0.6063644681337579,
"best_model_checkpoint": "bart-base/checkpoint-643",
"epoch": 1.0,
"eval_steps": 500,
"global_step": 643,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.78,
"learning_rate": 4.871176775531364e-05,
"loss": 1.2028,
"step": 500
},
{
"epoch": 1.0,
"eval_accuracy": 0.7598760650658405,
"eval_f1_macro": 0.6063644681337579,
"eval_f1_micro": 0.7598760650658405,
"eval_f1_weighted": 0.7489266744747745,
"eval_loss": 0.8429557681083679,
"eval_macro_fpr": 0.023226157303183535,
"eval_macro_sensitivity": 0.6366904609623596,
"eval_macro_specificity": 0.981694425945952,
"eval_precision": 0.7600880594489849,
"eval_precision_macro": 0.6003620126022547,
"eval_recall": 0.7598760650658405,
"eval_recall_macro": 0.6366904609623596,
"eval_runtime": 43.5934,
"eval_samples_per_second": 29.615,
"eval_steps_per_second": 3.716,
"eval_weighted_fpr": 0.02207348333808032,
"eval_weighted_sensitivity": 0.7598760650658405,
"eval_weighted_specificity": 0.9655403241234398,
"step": 643
}
],
"logging_steps": 500,
"max_steps": 19290,
"num_train_epochs": 30,
"save_steps": 500,
"total_flos": 1575916895250432.0,
"trial_name": null,
"trial_params": null
}
|