Instructions to use xshubhamx/test_trainer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xshubhamx/test_trainer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="xshubhamx/test_trainer")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("xshubhamx/test_trainer") model = AutoModelForSequenceClassification.from_pretrained("xshubhamx/test_trainer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +62 -0
- config.json +61 -0
- model.safetensors +3 -0
- runs/Apr06_23-13-20_a091c797a07b/events.out.tfevents.1712445217.a091c797a07b.34.0 +3 -0
- runs/Apr06_23-13-20_a091c797a07b/events.out.tfevents.1712445431.a091c797a07b.34.1 +3 -0
- runs/Apr06_23-17-49_a091c797a07b/events.out.tfevents.1712445471.a091c797a07b.34.2 +3 -0
- runs/Apr06_23-34-31_a091c797a07b/events.out.tfevents.1712446479.a091c797a07b.34.3 +3 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: bert-base-cased
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
model-index:
|
| 9 |
+
- name: test_trainer
|
| 10 |
+
results: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
+
|
| 16 |
+
# test_trainer
|
| 17 |
+
|
| 18 |
+
This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.
|
| 19 |
+
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.7608
|
| 21 |
+
- Accuracy: 0.8172
|
| 22 |
+
|
| 23 |
+
## Model description
|
| 24 |
+
|
| 25 |
+
More information needed
|
| 26 |
+
|
| 27 |
+
## Intended uses & limitations
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Training and evaluation data
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Training procedure
|
| 36 |
+
|
| 37 |
+
### Training hyperparameters
|
| 38 |
+
|
| 39 |
+
The following hyperparameters were used during training:
|
| 40 |
+
- learning_rate: 5e-05
|
| 41 |
+
- train_batch_size: 8
|
| 42 |
+
- eval_batch_size: 8
|
| 43 |
+
- seed: 42
|
| 44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 45 |
+
- lr_scheduler_type: linear
|
| 46 |
+
- num_epochs: 3.0
|
| 47 |
+
|
| 48 |
+
### Training results
|
| 49 |
+
|
| 50 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 51 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 52 |
+
| 1.2825 | 1.0 | 643 | 0.8366 | 0.7359 |
|
| 53 |
+
| 0.7153 | 2.0 | 1286 | 0.6792 | 0.8002 |
|
| 54 |
+
| 0.4921 | 3.0 | 1929 | 0.7608 | 0.8172 |
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
### Framework versions
|
| 58 |
+
|
| 59 |
+
- Transformers 4.38.2
|
| 60 |
+
- Pytorch 2.1.2
|
| 61 |
+
- Datasets 2.1.0
|
| 62 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "bert-base-cased",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"gradient_checkpointing": false,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "LABEL_0",
|
| 14 |
+
"1": "LABEL_1",
|
| 15 |
+
"2": "LABEL_2",
|
| 16 |
+
"3": "LABEL_3",
|
| 17 |
+
"4": "LABEL_4",
|
| 18 |
+
"5": "LABEL_5",
|
| 19 |
+
"6": "LABEL_6",
|
| 20 |
+
"7": "LABEL_7",
|
| 21 |
+
"8": "LABEL_8",
|
| 22 |
+
"9": "LABEL_9",
|
| 23 |
+
"10": "LABEL_10",
|
| 24 |
+
"11": "LABEL_11",
|
| 25 |
+
"12": "LABEL_12",
|
| 26 |
+
"13": "LABEL_13",
|
| 27 |
+
"14": "LABEL_14"
|
| 28 |
+
},
|
| 29 |
+
"initializer_range": 0.02,
|
| 30 |
+
"intermediate_size": 3072,
|
| 31 |
+
"label2id": {
|
| 32 |
+
"LABEL_0": 0,
|
| 33 |
+
"LABEL_1": 1,
|
| 34 |
+
"LABEL_10": 10,
|
| 35 |
+
"LABEL_11": 11,
|
| 36 |
+
"LABEL_12": 12,
|
| 37 |
+
"LABEL_13": 13,
|
| 38 |
+
"LABEL_14": 14,
|
| 39 |
+
"LABEL_2": 2,
|
| 40 |
+
"LABEL_3": 3,
|
| 41 |
+
"LABEL_4": 4,
|
| 42 |
+
"LABEL_5": 5,
|
| 43 |
+
"LABEL_6": 6,
|
| 44 |
+
"LABEL_7": 7,
|
| 45 |
+
"LABEL_8": 8,
|
| 46 |
+
"LABEL_9": 9
|
| 47 |
+
},
|
| 48 |
+
"layer_norm_eps": 1e-12,
|
| 49 |
+
"max_position_embeddings": 512,
|
| 50 |
+
"model_type": "bert",
|
| 51 |
+
"num_attention_heads": 12,
|
| 52 |
+
"num_hidden_layers": 12,
|
| 53 |
+
"pad_token_id": 0,
|
| 54 |
+
"position_embedding_type": "absolute",
|
| 55 |
+
"problem_type": "single_label_classification",
|
| 56 |
+
"torch_dtype": "float32",
|
| 57 |
+
"transformers_version": "4.38.2",
|
| 58 |
+
"type_vocab_size": 2,
|
| 59 |
+
"use_cache": true,
|
| 60 |
+
"vocab_size": 28996
|
| 61 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:840274142c758dc86f69c8be842a99d15d0205ba49e40d3a267f0bd66369b9f4
|
| 3 |
+
size 433310756
|
runs/Apr06_23-13-20_a091c797a07b/events.out.tfevents.1712445217.a091c797a07b.34.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9aa7adbfad5a973869888eaca82f0f1671d4ffe0c4ebe85fc478fdc4f9c31cf
|
| 3 |
+
size 5184
|
runs/Apr06_23-13-20_a091c797a07b/events.out.tfevents.1712445431.a091c797a07b.34.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f28d260d3250d3a2b3fd826857a270525313a2055b66448eb617c2974df3d638
|
| 3 |
+
size 5184
|
runs/Apr06_23-17-49_a091c797a07b/events.out.tfevents.1712445471.a091c797a07b.34.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc7189935e302b38c3fa76fae00fd6c2358173682a4863dedc9df28463f431c7
|
| 3 |
+
size 5184
|
runs/Apr06_23-34-31_a091c797a07b/events.out.tfevents.1712446479.a091c797a07b.34.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f59648e30968616b52845340e3fb3e5a7277bad908385fd860c69b1e77e1612
|
| 3 |
+
size 7140
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8dc61e39a96655f71ceb72ce09d1ef63dea43efacf66848ad588289147f3b3e
|
| 3 |
+
size 4920
|