nadellaroshni
commited on
Commit
•
c793b3a
1
Parent(s):
1e59894
Training in progress, epoch 1
Browse files- README.md +61 -0
- added_tokens.json +3 -0
- config.json +71 -0
- model.safetensors +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +11 -0
- spiece.model +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +35 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: bert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: test_model2
|
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_model2
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the None dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.3250
|
21 |
+
- Accuracy: 0.863
|
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: 2e-05
|
41 |
+
- train_batch_size: 16
|
42 |
+
- eval_batch_size: 16
|
43 |
+
- seed: 42
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- num_epochs: 2
|
47 |
+
|
48 |
+
### Training results
|
49 |
+
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
51 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
52 |
+
| 0.5093 | 1.0 | 625 | 0.3441 | 0.852 |
|
53 |
+
| 0.3595 | 2.0 | 1250 | 0.3250 | 0.863 |
|
54 |
+
|
55 |
+
|
56 |
+
### Framework versions
|
57 |
+
|
58 |
+
- Transformers 4.35.2
|
59 |
+
- Pytorch 2.1.1+cpu
|
60 |
+
- Datasets 2.18.0
|
61 |
+
- Tokenizers 0.15.0
|
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"[PAD]": 320
|
3 |
+
}
|
config.json
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/reformer-crime-and-punishment",
|
3 |
+
"architectures": [
|
4 |
+
"ReformerForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_head_size": 64,
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"attn_layers": [
|
9 |
+
"local",
|
10 |
+
"lsh",
|
11 |
+
"local",
|
12 |
+
"lsh",
|
13 |
+
"local",
|
14 |
+
"lsh"
|
15 |
+
],
|
16 |
+
"axial_norm_std": 1.0,
|
17 |
+
"axial_pos_embds": true,
|
18 |
+
"axial_pos_embds_dim": [
|
19 |
+
128,
|
20 |
+
128
|
21 |
+
],
|
22 |
+
"axial_pos_shape": [
|
23 |
+
12,
|
24 |
+
16
|
25 |
+
],
|
26 |
+
"chunk_size_lm_head": 0,
|
27 |
+
"classifier_dropout": null,
|
28 |
+
"eos_token_id": 2,
|
29 |
+
"feed_forward_size": 512,
|
30 |
+
"hash_seed": null,
|
31 |
+
"hidden_act": "relu",
|
32 |
+
"hidden_dropout_prob": 0.05,
|
33 |
+
"hidden_size": 256,
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"intermediate_size": 3072,
|
36 |
+
"is_decoder": true,
|
37 |
+
"layer_norm_eps": 1e-12,
|
38 |
+
"local_attention_probs_dropout_prob": 0.05,
|
39 |
+
"local_attn_chunk_length": 64,
|
40 |
+
"local_num_chunks_after": 0,
|
41 |
+
"local_num_chunks_before": 1,
|
42 |
+
"lsh_attention_probs_dropout_prob": 0.0,
|
43 |
+
"lsh_attn_chunk_length": 64,
|
44 |
+
"lsh_num_chunks_after": 0,
|
45 |
+
"lsh_num_chunks_before": 1,
|
46 |
+
"max_position_embeddings": 524288,
|
47 |
+
"model_type": "reformer",
|
48 |
+
"num_attention_heads": 2,
|
49 |
+
"num_buckets": [
|
50 |
+
64,
|
51 |
+
128
|
52 |
+
],
|
53 |
+
"num_chunks_after": 0,
|
54 |
+
"num_chunks_before": 1,
|
55 |
+
"num_hashes": 1,
|
56 |
+
"num_hidden_layers": 6,
|
57 |
+
"output_past": true,
|
58 |
+
"pad_token_id": 0,
|
59 |
+
"problem_type": "single_label_classification",
|
60 |
+
"task_specific_params": {
|
61 |
+
"text-generation": {
|
62 |
+
"do_sample": true,
|
63 |
+
"max_length": 100
|
64 |
+
}
|
65 |
+
},
|
66 |
+
"tie_word_embeddings": false,
|
67 |
+
"torch_dtype": "float32",
|
68 |
+
"transformers_version": "4.40.2",
|
69 |
+
"use_cache": true,
|
70 |
+
"vocab_size": 321
|
71 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0c8230de5998d7dcd00225fefd1301896d0808b2eb8aa596f6fc6a7220bd0d4d
|
3 |
+
size 9971008
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
3 |
+
size 5069051
|
special_tokens_map.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"eos_token": "</s>",
|
3 |
+
"pad_token": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false
|
9 |
+
},
|
10 |
+
"unk_token": "<unk>"
|
11 |
+
}
|
spiece.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:14478412faa9cfe39a1a77ddf447f2466ae5eabc3d389d73e2444cf47001e260
|
3 |
+
size 241801
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"2": {
|
12 |
+
"content": "</s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"320": {
|
20 |
+
"content": "[PAD]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"additional_special_tokens": [],
|
29 |
+
"clean_up_tokenization_spaces": true,
|
30 |
+
"eos_token": "</s>",
|
31 |
+
"model_max_length": 524288,
|
32 |
+
"pad_token": "[PAD]",
|
33 |
+
"tokenizer_class": "ReformerTokenizer",
|
34 |
+
"unk_token": "<unk>"
|
35 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:082838a5d99337078207c8fd512568dcb6c7b4621a2ead586140668c3947a3e9
|
3 |
+
size 5048
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|