Text Classification
Transformers
TensorBoard
Safetensors
bert
Trained with AutoTrain
text-embeddings-inference
Instructions to use Defensa2025/C2BERT4060 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Defensa2025/C2BERT4060 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Defensa2025/C2BERT4060")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Defensa2025/C2BERT4060") model = AutoModelForSequenceClassification.from_pretrained("Defensa2025/C2BERT4060", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download checkpoint-52/trainer_state.json from Defensa2025/C2BERT4060: direct link, hf CLI and curl.
- Browser
- Download file 3.65 kB
-
https://huggingface.co/Defensa2025/C2BERT4060/resolve/main/checkpoint-52/trainer_state.json
- Command line
-
hf download hf://Defensa2025/C2BERT4060/checkpoint-52/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/Defensa2025/C2BERT4060/resolve/main/checkpoint-52/trainer_state.json
3.65 kB
| { | |
| "best_metric": 0.3054405748844147, | |
| "best_model_checkpoint": "C2BERT4060/checkpoint-52", | |
| "epoch": 3.7407407407407405, | |
| "eval_steps": 500, | |
| "global_step": 52, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.5925925925925926, | |
| "grad_norm": 2.815744161605835, | |
| "learning_rate": 4.782608695652174e-05, | |
| "loss": 0.7114, | |
| "step": 8 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "eval_accuracy": 0.6439628482972136, | |
| "eval_auc": 0.9106428066870732, | |
| "eval_f1": 0.7628865979381443, | |
| "eval_loss": 0.6342869400978088, | |
| "eval_precision": 0.6187290969899666, | |
| "eval_recall": 0.9946236559139785, | |
| "eval_runtime": 110.0481, | |
| "eval_samples_per_second": 2.935, | |
| "eval_steps_per_second": 0.191, | |
| "step": 14 | |
| }, | |
| { | |
| "epoch": 1.1481481481481481, | |
| "grad_norm": 1.750702977180481, | |
| "learning_rate": 3.91304347826087e-05, | |
| "loss": 0.6434, | |
| "step": 16 | |
| }, | |
| { | |
| "epoch": 1.7407407407407407, | |
| "grad_norm": 9.112739562988281, | |
| "learning_rate": 3.0434782608695656e-05, | |
| "loss": 0.5604, | |
| "step": 24 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "eval_accuracy": 0.8452012383900929, | |
| "eval_auc": 0.9182952672474688, | |
| "eval_f1": 0.8737373737373737, | |
| "eval_loss": 0.39941880106925964, | |
| "eval_precision": 0.8238095238095238, | |
| "eval_recall": 0.9301075268817204, | |
| "eval_runtime": 100.8605, | |
| "eval_samples_per_second": 3.202, | |
| "eval_steps_per_second": 0.208, | |
| "step": 28 | |
| }, | |
| { | |
| "epoch": 2.2962962962962963, | |
| "grad_norm": 31.374483108520508, | |
| "learning_rate": 2.173913043478261e-05, | |
| "loss": 0.3713, | |
| "step": 32 | |
| }, | |
| { | |
| "epoch": 2.888888888888889, | |
| "grad_norm": 19.5701904296875, | |
| "learning_rate": 1.3043478260869566e-05, | |
| "loss": 0.3132, | |
| "step": 40 | |
| }, | |
| { | |
| "epoch": 3.0, | |
| "eval_accuracy": 0.8606811145510835, | |
| "eval_auc": 0.9316380189937996, | |
| "eval_f1": 0.8739495798319328, | |
| "eval_loss": 0.332185298204422, | |
| "eval_precision": 0.9122807017543859, | |
| "eval_recall": 0.8387096774193549, | |
| "eval_runtime": 112.2689, | |
| "eval_samples_per_second": 2.877, | |
| "eval_steps_per_second": 0.187, | |
| "step": 42 | |
| }, | |
| { | |
| "epoch": 3.4444444444444446, | |
| "grad_norm": 2.8432674407958984, | |
| "learning_rate": 4.347826086956522e-06, | |
| "loss": 0.1937, | |
| "step": 48 | |
| }, | |
| { | |
| "epoch": 3.7407407407407405, | |
| "eval_accuracy": 0.8885448916408669, | |
| "eval_auc": 0.9365041990424614, | |
| "eval_f1": 0.9032258064516129, | |
| "eval_loss": 0.3054405748844147, | |
| "eval_precision": 0.9032258064516129, | |
| "eval_recall": 0.9032258064516129, | |
| "eval_runtime": 97.484, | |
| "eval_samples_per_second": 3.313, | |
| "eval_steps_per_second": 0.215, | |
| "step": 52 | |
| } | |
| ], | |
| "logging_steps": 8, | |
| "max_steps": 52, | |
| "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": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 158853299673600.0, | |
| "train_batch_size": 8, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |