Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use heavyhelium/roberta-large-touche-base-binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use heavyhelium/roberta-large-touche-base-binary with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="heavyhelium/roberta-large-touche-base-binary")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("heavyhelium/roberta-large-touche-base-binary") model = AutoModelForSequenceClassification.from_pretrained("heavyhelium/roberta-large-touche-base-binary", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1, checkpoint
Browse files- checkpoint-93/config.json +37 -0
- checkpoint-93/model.safetensors +3 -0
- checkpoint-93/optimizer.pt +3 -0
- checkpoint-93/rng_state.pth +3 -0
- checkpoint-93/scaler.pt +3 -0
- checkpoint-93/scheduler.pt +3 -0
- checkpoint-93/tokenizer.json +0 -0
- checkpoint-93/tokenizer_config.json +17 -0
- checkpoint-93/trainer_state.json +108 -0
- checkpoint-93/training_args.bin +3 -0
checkpoint-93/config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"RobertaForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"eos_token_id": 2,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 1024,
|
| 14 |
+
"id2label": {
|
| 15 |
+
"0": "valid",
|
| 16 |
+
"1": "fallacy"
|
| 17 |
+
},
|
| 18 |
+
"initializer_range": 0.02,
|
| 19 |
+
"intermediate_size": 4096,
|
| 20 |
+
"is_decoder": false,
|
| 21 |
+
"label2id": {
|
| 22 |
+
"fallacy": 1,
|
| 23 |
+
"valid": 0
|
| 24 |
+
},
|
| 25 |
+
"layer_norm_eps": 1e-05,
|
| 26 |
+
"max_position_embeddings": 514,
|
| 27 |
+
"model_type": "roberta",
|
| 28 |
+
"num_attention_heads": 16,
|
| 29 |
+
"num_hidden_layers": 24,
|
| 30 |
+
"pad_token_id": 1,
|
| 31 |
+
"problem_type": "single_label_classification",
|
| 32 |
+
"tie_word_embeddings": true,
|
| 33 |
+
"transformers_version": "5.9.0",
|
| 34 |
+
"type_vocab_size": 1,
|
| 35 |
+
"use_cache": false,
|
| 36 |
+
"vocab_size": 50265
|
| 37 |
+
}
|
checkpoint-93/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57c680f46703b1b760bac86e759260c30c13da3203537d00048ba5069a710e12
|
| 3 |
+
size 1421495416
|
checkpoint-93/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fb8160e60ea05a078da8ba2406b422d84afdf3e3cf2de64b1710ad8a4186d2b9
|
| 3 |
+
size 2843229182
|
checkpoint-93/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b19a3a795ea789391937a37a13c0ab0caee35c328c90ba93f63a9e68ff15eb9
|
| 3 |
+
size 14645
|
checkpoint-93/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b96b6ceb21b7e54a63d7b02c78f6360111c4cef38c9e1118025fdc14bb0b79e3
|
| 3 |
+
size 1383
|
checkpoint-93/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1509f821eeec3d1883e4c8feb1c9a82904e7b01ad278fdb204cbc4aebc86cbb0
|
| 3 |
+
size 1465
|
checkpoint-93/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-93/tokenizer_config.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"cls_token": "<s>",
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"is_local": false,
|
| 9 |
+
"local_files_only": false,
|
| 10 |
+
"mask_token": "<mask>",
|
| 11 |
+
"model_max_length": 512,
|
| 12 |
+
"pad_token": "<pad>",
|
| 13 |
+
"sep_token": "</s>",
|
| 14 |
+
"tokenizer_class": "RobertaTokenizer",
|
| 15 |
+
"trim_offsets": true,
|
| 16 |
+
"unk_token": "<unk>"
|
| 17 |
+
}
|
checkpoint-93/trainer_state.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 93,
|
| 3 |
+
"best_metric": 0.44147644487615345,
|
| 4 |
+
"best_model_checkpoint": "models/roberta-large-touche-base-binary/trainer/checkpoint-93",
|
| 5 |
+
"epoch": 1.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 93,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.10810810810810811,
|
| 14 |
+
"grad_norm": 12.057156562805176,
|
| 15 |
+
"learning_rate": 6.4285714285714295e-06,
|
| 16 |
+
"loss": 1.51865234375,
|
| 17 |
+
"step": 10
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.21621621621621623,
|
| 21 |
+
"grad_norm": 10.9874906539917,
|
| 22 |
+
"learning_rate": 1.3571428571428574e-05,
|
| 23 |
+
"loss": 1.37591552734375,
|
| 24 |
+
"step": 20
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.32432432432432434,
|
| 28 |
+
"grad_norm": 10.673126220703125,
|
| 29 |
+
"learning_rate": 1.9920318725099602e-05,
|
| 30 |
+
"loss": 1.4565673828125,
|
| 31 |
+
"step": 30
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.43243243243243246,
|
| 35 |
+
"grad_norm": 17.499927520751953,
|
| 36 |
+
"learning_rate": 1.912350597609562e-05,
|
| 37 |
+
"loss": 1.4800537109375,
|
| 38 |
+
"step": 40
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.5405405405405406,
|
| 42 |
+
"grad_norm": 15.72847843170166,
|
| 43 |
+
"learning_rate": 1.8326693227091633e-05,
|
| 44 |
+
"loss": 1.447882080078125,
|
| 45 |
+
"step": 50
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.6486486486486487,
|
| 49 |
+
"grad_norm": 11.706809997558594,
|
| 50 |
+
"learning_rate": 1.752988047808765e-05,
|
| 51 |
+
"loss": 1.3295562744140625,
|
| 52 |
+
"step": 60
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.7567567567567568,
|
| 56 |
+
"grad_norm": 8.710282325744629,
|
| 57 |
+
"learning_rate": 1.6733067729083667e-05,
|
| 58 |
+
"loss": 1.4055770874023437,
|
| 59 |
+
"step": 70
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 0.8648648648648649,
|
| 63 |
+
"grad_norm": 25.93303871154785,
|
| 64 |
+
"learning_rate": 1.593625498007968e-05,
|
| 65 |
+
"loss": 1.348858642578125,
|
| 66 |
+
"step": 80
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 0.972972972972973,
|
| 70 |
+
"grad_norm": 21.619033813476562,
|
| 71 |
+
"learning_rate": 1.5139442231075698e-05,
|
| 72 |
+
"loss": 1.3660049438476562,
|
| 73 |
+
"step": 90
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"epoch": 1.0,
|
| 77 |
+
"eval_accuracy": 0.54,
|
| 78 |
+
"eval_fallacy_f1": 0.676056338028169,
|
| 79 |
+
"eval_loss": 0.6844885349273682,
|
| 80 |
+
"eval_macro_f1": 0.44147644487615345,
|
| 81 |
+
"eval_runtime": 1.3356,
|
| 82 |
+
"eval_samples_per_second": 149.747,
|
| 83 |
+
"eval_steps_per_second": 9.734,
|
| 84 |
+
"step": 93
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"logging_steps": 10,
|
| 88 |
+
"max_steps": 279,
|
| 89 |
+
"num_input_tokens_seen": 0,
|
| 90 |
+
"num_train_epochs": 3,
|
| 91 |
+
"save_steps": 500,
|
| 92 |
+
"stateful_callbacks": {
|
| 93 |
+
"TrainerControl": {
|
| 94 |
+
"args": {
|
| 95 |
+
"should_epoch_stop": false,
|
| 96 |
+
"should_evaluate": false,
|
| 97 |
+
"should_log": false,
|
| 98 |
+
"should_save": true,
|
| 99 |
+
"should_training_stop": false
|
| 100 |
+
},
|
| 101 |
+
"attributes": {}
|
| 102 |
+
}
|
| 103 |
+
},
|
| 104 |
+
"total_flos": 167434574706672.0,
|
| 105 |
+
"train_batch_size": 4,
|
| 106 |
+
"trial_name": null,
|
| 107 |
+
"trial_params": null
|
| 108 |
+
}
|
checkpoint-93/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60f971fc8774df1933b8a79b44365200d70bf8c947215295450c3dd984620ca6
|
| 3 |
+
size 5393
|