Connor Finley
commited on
Commit
•
a4c9469
1
Parent(s):
0a7e185
add model
Browse files- .gitignore +1 -0
- README.md +69 -0
- all_results.json +25 -0
- config.json +36 -0
- eval_results.json +12 -0
- predict_results.json +10 -0
- predictions.txt +100 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- train_results.json +8 -0
- trainer_state.json +25 -0
- training_args.bin +3 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
checkpoint-*/
|
README.md
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- precision
|
7 |
+
- recall
|
8 |
+
- f1
|
9 |
+
- accuracy
|
10 |
+
model_index:
|
11 |
+
- name: punct_restore_fr
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: Token Classification
|
15 |
+
type: token-classification
|
16 |
+
metric:
|
17 |
+
name: Accuracy
|
18 |
+
type: accuracy
|
19 |
+
value: 1.0
|
20 |
+
---
|
21 |
+
|
22 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
23 |
+
should probably proofread and complete it, then remove this comment. -->
|
24 |
+
|
25 |
+
# punct_restore_fr
|
26 |
+
|
27 |
+
This model is a fine-tuned version of [camembert-base](https://huggingface.co/camembert-base) on an unkown dataset.
|
28 |
+
It achieves the following results on the evaluation set:
|
29 |
+
- Loss: 0.0346
|
30 |
+
- Precision: 1.0
|
31 |
+
- Recall: 1.0
|
32 |
+
- F1: 1.0
|
33 |
+
- Accuracy: 1.0
|
34 |
+
|
35 |
+
## Model description
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Intended uses & limitations
|
40 |
+
|
41 |
+
More information needed
|
42 |
+
|
43 |
+
## Training and evaluation data
|
44 |
+
|
45 |
+
More information needed
|
46 |
+
|
47 |
+
## Training procedure
|
48 |
+
|
49 |
+
### Training hyperparameters
|
50 |
+
|
51 |
+
The following hyperparameters were used during training:
|
52 |
+
- learning_rate: 5e-05
|
53 |
+
- train_batch_size: 16
|
54 |
+
- eval_batch_size: 8
|
55 |
+
- seed: 1
|
56 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
57 |
+
- lr_scheduler_type: linear
|
58 |
+
- num_epochs: 3
|
59 |
+
|
60 |
+
### Training results
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
### Framework versions
|
65 |
+
|
66 |
+
- Transformers 4.8.1
|
67 |
+
- Pytorch 1.9.0+cu102
|
68 |
+
- Datasets 1.8.0
|
69 |
+
- Tokenizers 0.10.3
|
all_results.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_accuracy": 1.0,
|
4 |
+
"eval_f1": 1.0,
|
5 |
+
"eval_loss": 0.03462713584303856,
|
6 |
+
"eval_precision": 1.0,
|
7 |
+
"eval_recall": 1.0,
|
8 |
+
"eval_runtime": 0.1879,
|
9 |
+
"eval_samples": 100,
|
10 |
+
"eval_samples_per_second": 532.184,
|
11 |
+
"eval_steps_per_second": 69.184,
|
12 |
+
"predict_accuracy": 1.0,
|
13 |
+
"predict_f1": 1.0,
|
14 |
+
"predict_loss": 0.034570880234241486,
|
15 |
+
"predict_precision": 1.0,
|
16 |
+
"predict_recall": 1.0,
|
17 |
+
"predict_runtime": 0.2013,
|
18 |
+
"predict_samples_per_second": 496.83,
|
19 |
+
"predict_steps_per_second": 64.588,
|
20 |
+
"train_loss": 0.1188449223836263,
|
21 |
+
"train_runtime": 17.2449,
|
22 |
+
"train_samples": 800,
|
23 |
+
"train_samples_per_second": 139.172,
|
24 |
+
"train_steps_per_second": 8.698
|
25 |
+
}
|
config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "camembert-base",
|
3 |
+
"architectures": [
|
4 |
+
"CamembertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 5,
|
8 |
+
"eos_token_id": 6,
|
9 |
+
"finetuning_task": "ner",
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": "B-SENT",
|
16 |
+
"1": "O"
|
17 |
+
},
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 3072,
|
20 |
+
"label2id": {
|
21 |
+
"B-SENT": 0,
|
22 |
+
"O": 1
|
23 |
+
},
|
24 |
+
"layer_norm_eps": 1e-05,
|
25 |
+
"max_position_embeddings": 514,
|
26 |
+
"model_type": "camembert",
|
27 |
+
"num_attention_heads": 12,
|
28 |
+
"num_hidden_layers": 12,
|
29 |
+
"output_past": true,
|
30 |
+
"pad_token_id": 1,
|
31 |
+
"position_embedding_type": "absolute",
|
32 |
+
"transformers_version": "4.8.1",
|
33 |
+
"type_vocab_size": 1,
|
34 |
+
"use_cache": true,
|
35 |
+
"vocab_size": 32005
|
36 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_accuracy": 1.0,
|
4 |
+
"eval_f1": 1.0,
|
5 |
+
"eval_loss": 0.03462713584303856,
|
6 |
+
"eval_precision": 1.0,
|
7 |
+
"eval_recall": 1.0,
|
8 |
+
"eval_runtime": 0.1879,
|
9 |
+
"eval_samples": 100,
|
10 |
+
"eval_samples_per_second": 532.184,
|
11 |
+
"eval_steps_per_second": 69.184
|
12 |
+
}
|
predict_results.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"predict_accuracy": 1.0,
|
3 |
+
"predict_f1": 1.0,
|
4 |
+
"predict_loss": 0.034570880234241486,
|
5 |
+
"predict_precision": 1.0,
|
6 |
+
"predict_recall": 1.0,
|
7 |
+
"predict_runtime": 0.2013,
|
8 |
+
"predict_samples_per_second": 496.83,
|
9 |
+
"predict_steps_per_second": 64.588
|
10 |
+
}
|
predictions.txt
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
B-SENT O
|
2 |
+
B-SENT O
|
3 |
+
B-SENT O O O O
|
4 |
+
B-SENT O O O O O
|
5 |
+
B-SENT O O
|
6 |
+
B-SENT O O
|
7 |
+
B-SENT O O O O
|
8 |
+
B-SENT O
|
9 |
+
B-SENT
|
10 |
+
B-SENT O O O O O
|
11 |
+
B-SENT O O O
|
12 |
+
B-SENT O O O O O O O O O O
|
13 |
+
B-SENT O O O O O O
|
14 |
+
B-SENT O O O O
|
15 |
+
B-SENT O O O O
|
16 |
+
B-SENT O O
|
17 |
+
B-SENT
|
18 |
+
B-SENT
|
19 |
+
B-SENT O O O O O
|
20 |
+
B-SENT O O O O O O O O O
|
21 |
+
B-SENT O O
|
22 |
+
B-SENT O
|
23 |
+
B-SENT
|
24 |
+
B-SENT
|
25 |
+
B-SENT O O O O
|
26 |
+
B-SENT O O O
|
27 |
+
B-SENT O O O O
|
28 |
+
B-SENT O O O O O O O
|
29 |
+
B-SENT O O
|
30 |
+
B-SENT O O O O O O O O
|
31 |
+
B-SENT
|
32 |
+
B-SENT O O O O O O
|
33 |
+
B-SENT O
|
34 |
+
B-SENT
|
35 |
+
B-SENT O O O
|
36 |
+
B-SENT O O O
|
37 |
+
B-SENT O O O O O O
|
38 |
+
B-SENT O O
|
39 |
+
B-SENT
|
40 |
+
B-SENT O O O O O
|
41 |
+
B-SENT O O O O O O O O O
|
42 |
+
B-SENT O O O O O
|
43 |
+
B-SENT O O O O O O
|
44 |
+
B-SENT O O O O O
|
45 |
+
B-SENT O O O
|
46 |
+
B-SENT O O O O O O
|
47 |
+
B-SENT O O
|
48 |
+
B-SENT O O O
|
49 |
+
B-SENT O O O
|
50 |
+
B-SENT O O O
|
51 |
+
B-SENT O O O O
|
52 |
+
B-SENT O O O
|
53 |
+
B-SENT O O O O O O O O O
|
54 |
+
B-SENT O O O O O O O
|
55 |
+
B-SENT O O O O O
|
56 |
+
B-SENT O O
|
57 |
+
B-SENT O O O O O O
|
58 |
+
B-SENT O O O O O O O O
|
59 |
+
B-SENT O O O O O O
|
60 |
+
B-SENT O O O O O
|
61 |
+
B-SENT O O O O O O O O O
|
62 |
+
B-SENT O O
|
63 |
+
B-SENT O
|
64 |
+
B-SENT O O
|
65 |
+
B-SENT O
|
66 |
+
B-SENT O O O O
|
67 |
+
B-SENT O O O O O O O O
|
68 |
+
B-SENT
|
69 |
+
B-SENT O O O O O O
|
70 |
+
B-SENT O O O O
|
71 |
+
B-SENT O O
|
72 |
+
B-SENT O O O O O O
|
73 |
+
B-SENT O O O O O O O
|
74 |
+
B-SENT
|
75 |
+
B-SENT O O
|
76 |
+
B-SENT
|
77 |
+
B-SENT O O
|
78 |
+
B-SENT O O O O O O
|
79 |
+
B-SENT
|
80 |
+
B-SENT O O
|
81 |
+
B-SENT O O O O O
|
82 |
+
B-SENT O O
|
83 |
+
B-SENT O O O O O
|
84 |
+
B-SENT O
|
85 |
+
B-SENT O O O O
|
86 |
+
B-SENT O O O O O
|
87 |
+
B-SENT O O O O O
|
88 |
+
B-SENT O O O O
|
89 |
+
B-SENT O O O
|
90 |
+
B-SENT O O O
|
91 |
+
B-SENT O
|
92 |
+
B-SENT O O O O O
|
93 |
+
B-SENT O O O O O O
|
94 |
+
B-SENT O O
|
95 |
+
B-SENT O O
|
96 |
+
B-SENT
|
97 |
+
B-SENT O O
|
98 |
+
B-SENT O O O O O
|
99 |
+
B-SENT O O O O
|
100 |
+
B-SENT O O
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca6e0d137cd124000abead061cb122109bdb2a2005544d719f6223091860599e
|
3 |
+
size 440216305
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}, "additional_special_tokens": ["<s>NOTUSED", "</s>NOTUSED"]}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": "<s>", "eos_token": "</s>", "sep_token": "</s>", "cls_token": "<s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "additional_special_tokens": ["<s>NOTUSED", "</s>NOTUSED"], "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "camembert-base", "tokenizer_class": "CamembertTokenizer"}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"train_loss": 0.1188449223836263,
|
4 |
+
"train_runtime": 17.2449,
|
5 |
+
"train_samples": 800,
|
6 |
+
"train_samples_per_second": 139.172,
|
7 |
+
"train_steps_per_second": 8.698
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.0,
|
5 |
+
"global_step": 150,
|
6 |
+
"is_hyper_param_search": false,
|
7 |
+
"is_local_process_zero": true,
|
8 |
+
"is_world_process_zero": true,
|
9 |
+
"log_history": [
|
10 |
+
{
|
11 |
+
"epoch": 3.0,
|
12 |
+
"step": 150,
|
13 |
+
"total_flos": 50259506753664.0,
|
14 |
+
"train_loss": 0.1188449223836263,
|
15 |
+
"train_runtime": 17.2449,
|
16 |
+
"train_samples_per_second": 139.172,
|
17 |
+
"train_steps_per_second": 8.698
|
18 |
+
}
|
19 |
+
],
|
20 |
+
"max_steps": 150,
|
21 |
+
"num_train_epochs": 3,
|
22 |
+
"total_flos": 50259506753664.0,
|
23 |
+
"trial_name": null,
|
24 |
+
"trial_params": null
|
25 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:82e501ebaafb54fa08b9cc6a6a337a7ed61a65191081ddd5bda8581472f0a7c2
|
3 |
+
size 2607
|