Text Classification
Transformers
TensorBoard
Safetensors
bert
Trained with AutoTrain
text-embeddings-inference
Instructions to use Defensa2025/C2BERT8020 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Defensa2025/C2BERT8020 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Defensa2025/C2BERT8020")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Defensa2025/C2BERT8020") model = AutoModelForSequenceClassification.from_pretrained("Defensa2025/C2BERT8020", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download checkpoint-54/trainer_state.json from Defensa2025/C2BERT8020: direct link, hf CLI and curl.
- Browser
- Download file 6.41 kB
-
https://huggingface.co/Defensa2025/C2BERT8020/resolve/main/checkpoint-54/trainer_state.json
- Command line
-
hf download hf://Defensa2025/C2BERT8020/checkpoint-54/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/Defensa2025/C2BERT8020/resolve/main/checkpoint-54/trainer_state.json
6.41 kB
| { | |
| "best_metric": 0.3190089464187622, | |
| "best_model_checkpoint": "C2BERT8020/checkpoint-54", | |
| "epoch": 2.0, | |
| "eval_steps": 500, | |
| "global_step": 54, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.07407407407407407, | |
| "grad_norm": 4.380497455596924, | |
| "learning_rate": 9.090909090909091e-06, | |
| "loss": 0.6889, | |
| "step": 2 | |
| }, | |
| { | |
| "epoch": 0.14814814814814814, | |
| "grad_norm": 2.5329318046569824, | |
| "learning_rate": 1.8181818181818182e-05, | |
| "loss": 0.702, | |
| "step": 4 | |
| }, | |
| { | |
| "epoch": 0.2222222222222222, | |
| "grad_norm": 2.8458549976348877, | |
| "learning_rate": 2.7272727272727273e-05, | |
| "loss": 0.671, | |
| "step": 6 | |
| }, | |
| { | |
| "epoch": 0.2962962962962963, | |
| "grad_norm": 2.2392938137054443, | |
| "learning_rate": 3.6363636363636364e-05, | |
| "loss": 0.6919, | |
| "step": 8 | |
| }, | |
| { | |
| "epoch": 0.37037037037037035, | |
| "grad_norm": 4.687833786010742, | |
| "learning_rate": 4.545454545454546e-05, | |
| "loss": 0.6859, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 0.4444444444444444, | |
| "grad_norm": 5.695174217224121, | |
| "learning_rate": 4.948453608247423e-05, | |
| "loss": 0.6657, | |
| "step": 12 | |
| }, | |
| { | |
| "epoch": 0.5185185185185185, | |
| "grad_norm": 8.305770874023438, | |
| "learning_rate": 4.845360824742268e-05, | |
| "loss": 0.7179, | |
| "step": 14 | |
| }, | |
| { | |
| "epoch": 0.5925925925925926, | |
| "grad_norm": 4.219016075134277, | |
| "learning_rate": 4.7422680412371134e-05, | |
| "loss": 0.6081, | |
| "step": 16 | |
| }, | |
| { | |
| "epoch": 0.6666666666666666, | |
| "grad_norm": 2.7648777961730957, | |
| "learning_rate": 4.639175257731959e-05, | |
| "loss": 0.603, | |
| "step": 18 | |
| }, | |
| { | |
| "epoch": 0.7407407407407407, | |
| "grad_norm": 3.07232666015625, | |
| "learning_rate": 4.536082474226804e-05, | |
| "loss": 0.5063, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 0.8148148148148148, | |
| "grad_norm": 9.069519996643066, | |
| "learning_rate": 4.4329896907216494e-05, | |
| "loss": 0.5487, | |
| "step": 22 | |
| }, | |
| { | |
| "epoch": 0.8888888888888888, | |
| "grad_norm": 7.760250568389893, | |
| "learning_rate": 4.329896907216495e-05, | |
| "loss": 0.531, | |
| "step": 24 | |
| }, | |
| { | |
| "epoch": 0.9629629629629629, | |
| "grad_norm": 14.22015380859375, | |
| "learning_rate": 4.2268041237113404e-05, | |
| "loss": 0.5255, | |
| "step": 26 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "eval_accuracy": 0.8333333333333334, | |
| "eval_auc": 0.9489655172413793, | |
| "eval_f1": 0.8615384615384616, | |
| "eval_loss": 0.419935017824173, | |
| "eval_precision": 0.7777777777777778, | |
| "eval_recall": 0.9655172413793104, | |
| "eval_runtime": 38.0281, | |
| "eval_samples_per_second": 2.84, | |
| "eval_steps_per_second": 0.184, | |
| "step": 27 | |
| }, | |
| { | |
| "epoch": 1.037037037037037, | |
| "grad_norm": 4.825671672821045, | |
| "learning_rate": 4.1237113402061855e-05, | |
| "loss": 0.3071, | |
| "step": 28 | |
| }, | |
| { | |
| "epoch": 1.1111111111111112, | |
| "grad_norm": 18.8424015045166, | |
| "learning_rate": 4.020618556701031e-05, | |
| "loss": 0.4476, | |
| "step": 30 | |
| }, | |
| { | |
| "epoch": 1.1851851851851851, | |
| "grad_norm": 4.189688205718994, | |
| "learning_rate": 3.9175257731958764e-05, | |
| "loss": 0.2931, | |
| "step": 32 | |
| }, | |
| { | |
| "epoch": 1.2592592592592593, | |
| "grad_norm": 5.367835998535156, | |
| "learning_rate": 3.8144329896907216e-05, | |
| "loss": 0.3712, | |
| "step": 34 | |
| }, | |
| { | |
| "epoch": 1.3333333333333333, | |
| "grad_norm": 5.7360615730285645, | |
| "learning_rate": 3.7113402061855674e-05, | |
| "loss": 0.215, | |
| "step": 36 | |
| }, | |
| { | |
| "epoch": 1.4074074074074074, | |
| "grad_norm": 11.697545051574707, | |
| "learning_rate": 3.6082474226804125e-05, | |
| "loss": 0.2604, | |
| "step": 38 | |
| }, | |
| { | |
| "epoch": 1.4814814814814814, | |
| "grad_norm": 4.04725456237793, | |
| "learning_rate": 3.5051546391752576e-05, | |
| "loss": 0.2536, | |
| "step": 40 | |
| }, | |
| { | |
| "epoch": 1.5555555555555556, | |
| "grad_norm": 27.141387939453125, | |
| "learning_rate": 3.4020618556701034e-05, | |
| "loss": 0.1966, | |
| "step": 42 | |
| }, | |
| { | |
| "epoch": 1.6296296296296298, | |
| "grad_norm": 3.72564959526062, | |
| "learning_rate": 3.2989690721649485e-05, | |
| "loss": 0.3209, | |
| "step": 44 | |
| }, | |
| { | |
| "epoch": 1.7037037037037037, | |
| "grad_norm": 17.753421783447266, | |
| "learning_rate": 3.1958762886597937e-05, | |
| "loss": 0.329, | |
| "step": 46 | |
| }, | |
| { | |
| "epoch": 1.7777777777777777, | |
| "grad_norm": 35.16399383544922, | |
| "learning_rate": 3.0927835051546395e-05, | |
| "loss": 0.5011, | |
| "step": 48 | |
| }, | |
| { | |
| "epoch": 1.8518518518518519, | |
| "grad_norm": 30.641841888427734, | |
| "learning_rate": 2.9896907216494846e-05, | |
| "loss": 0.3952, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 1.925925925925926, | |
| "grad_norm": 21.280223846435547, | |
| "learning_rate": 2.8865979381443297e-05, | |
| "loss": 0.5307, | |
| "step": 52 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "grad_norm": 27.35190773010254, | |
| "learning_rate": 2.7835051546391755e-05, | |
| "loss": 0.3087, | |
| "step": 54 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "eval_accuracy": 0.8425925925925926, | |
| "eval_auc": 0.9703448275862069, | |
| "eval_f1": 0.8682170542635659, | |
| "eval_loss": 0.3190089464187622, | |
| "eval_precision": 0.7887323943661971, | |
| "eval_recall": 0.9655172413793104, | |
| "eval_runtime": 40.4847, | |
| "eval_samples_per_second": 2.668, | |
| "eval_steps_per_second": 0.173, | |
| "step": 54 | |
| } | |
| ], | |
| "logging_steps": 2, | |
| "max_steps": 108, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 4, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "EarlyStoppingCallback": { | |
| "args": { | |
| "early_stopping_patience": 5, | |
| "early_stopping_threshold": 0.01 | |
| }, | |
| "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": 169706630707200.0, | |
| "train_batch_size": 8, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |