nathanReitinger
commited on
Commit
•
7cc2d06
1
Parent(s):
aa51407
Training in progress epoch 0
Browse files- README.md +7 -8
- config.json +9 -9
- tf_model.h5 +2 -2
- tokenizer.json +0 -0
- tokenizer_config.json +1 -3
- vocab.txt +0 -0
README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
---
|
|
|
2 |
tags:
|
3 |
- generated_from_keras_callback
|
4 |
model-index:
|
@@ -11,12 +12,12 @@ probably proofread and complete it, then remove this comment. -->
|
|
11 |
|
12 |
# nathanReitinger/scotusPRED
|
13 |
|
14 |
-
This model is a fine-tuned version of [
|
15 |
It achieves the following results on the evaluation set:
|
16 |
-
- Train Loss: 0.
|
17 |
-
- Validation Loss: 0.
|
18 |
- Train Accuracy: 0.6689
|
19 |
-
- Epoch:
|
20 |
|
21 |
## Model description
|
22 |
|
@@ -35,16 +36,14 @@ More information needed
|
|
35 |
### Training hyperparameters
|
36 |
|
37 |
The following hyperparameters were used during training:
|
38 |
-
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': False, 'is_legacy_optimizer': False, 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps':
|
39 |
- training_precision: float32
|
40 |
|
41 |
### Training results
|
42 |
|
43 |
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|
44 |
|:----------:|:---------------:|:--------------:|:-----:|
|
45 |
-
| 0.
|
46 |
-
| 0.6438 | 0.6386 | 0.6689 | 1 |
|
47 |
-
| 0.6470 | 0.6364 | 0.6689 | 2 |
|
48 |
|
49 |
|
50 |
### Framework versions
|
|
|
1 |
---
|
2 |
+
license: cc-by-sa-4.0
|
3 |
tags:
|
4 |
- generated_from_keras_callback
|
5 |
model-index:
|
|
|
12 |
|
13 |
# nathanReitinger/scotusPRED
|
14 |
|
15 |
+
This model is a fine-tuned version of [nlpaueb/legal-bert-base-uncased](https://huggingface.co/nlpaueb/legal-bert-base-uncased) on an unknown dataset.
|
16 |
It achieves the following results on the evaluation set:
|
17 |
+
- Train Loss: 0.6497
|
18 |
+
- Validation Loss: 0.6357
|
19 |
- Train Accuracy: 0.6689
|
20 |
+
- Epoch: 0
|
21 |
|
22 |
## Model description
|
23 |
|
|
|
36 |
### Training hyperparameters
|
37 |
|
38 |
The following hyperparameters were used during training:
|
39 |
+
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': False, 'is_legacy_optimizer': False, 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 42, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
|
40 |
- training_precision: float32
|
41 |
|
42 |
### Training results
|
43 |
|
44 |
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|
45 |
|:----------:|:---------------:|:--------------:|:-----:|
|
46 |
+
| 0.6497 | 0.6357 | 0.6689 | 0 |
|
|
|
|
|
47 |
|
48 |
|
49 |
### Framework versions
|
config.json
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"BertForSequenceClassification"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
|
|
7 |
"classifier_dropout": null,
|
8 |
-
"
|
9 |
-
"gradient_checkpointing": false,
|
10 |
"hidden_act": "gelu",
|
11 |
"hidden_dropout_prob": 0.1,
|
12 |
-
"hidden_size":
|
13 |
"id2label": {
|
14 |
"0": "Reversing",
|
15 |
"1": "Affirming"
|
16 |
},
|
17 |
"initializer_range": 0.02,
|
18 |
-
"intermediate_size":
|
19 |
"label2id": {
|
20 |
"Affirming": 1,
|
21 |
"Reversing": 0
|
@@ -23,13 +23,13 @@
|
|
23 |
"layer_norm_eps": 1e-12,
|
24 |
"max_position_embeddings": 512,
|
25 |
"model_type": "bert",
|
26 |
-
"num_attention_heads":
|
27 |
-
"num_hidden_layers":
|
|
|
28 |
"pad_token_id": 0,
|
29 |
"position_embedding_type": "absolute",
|
30 |
-
"tokenizer_class": "BertTokenizer",
|
31 |
"transformers_version": "4.30.2",
|
32 |
"type_vocab_size": 2,
|
33 |
"use_cache": true,
|
34 |
-
"vocab_size":
|
35 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "nlpaueb/legal-bert-base-uncased",
|
3 |
"architectures": [
|
4 |
"BertForSequenceClassification"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
"classifier_dropout": null,
|
9 |
+
"eos_token_ids": 0,
|
|
|
10 |
"hidden_act": "gelu",
|
11 |
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
"id2label": {
|
14 |
"0": "Reversing",
|
15 |
"1": "Affirming"
|
16 |
},
|
17 |
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
"label2id": {
|
20 |
"Affirming": 1,
|
21 |
"Reversing": 0
|
|
|
23 |
"layer_norm_eps": 1e-12,
|
24 |
"max_position_embeddings": 512,
|
25 |
"model_type": "bert",
|
26 |
+
"num_attention_heads": 12,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"output_past": true,
|
29 |
"pad_token_id": 0,
|
30 |
"position_embedding_type": "absolute",
|
|
|
31 |
"transformers_version": "4.30.2",
|
32 |
"type_vocab_size": 2,
|
33 |
"use_cache": true,
|
34 |
+
"vocab_size": 30522
|
35 |
}
|
tf_model.h5
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e54f777aa9904e98bdf7e8f19231deec9a5f5d5875685a72826f0c99eb560065
|
3 |
+
size 438223128
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -3,14 +3,12 @@
|
|
3 |
"cls_token": "[CLS]",
|
4 |
"do_basic_tokenize": true,
|
5 |
"do_lower_case": true,
|
6 |
-
"handle_chinese_chars": true,
|
7 |
"mask_token": "[MASK]",
|
8 |
-
"model_max_len": 512,
|
9 |
"model_max_length": 512,
|
10 |
"never_split": null,
|
11 |
"pad_token": "[PAD]",
|
12 |
"sep_token": "[SEP]",
|
13 |
-
"strip_accents":
|
14 |
"tokenize_chinese_chars": true,
|
15 |
"tokenizer_class": "BertTokenizer",
|
16 |
"unk_token": "[UNK]"
|
|
|
3 |
"cls_token": "[CLS]",
|
4 |
"do_basic_tokenize": true,
|
5 |
"do_lower_case": true,
|
|
|
6 |
"mask_token": "[MASK]",
|
|
|
7 |
"model_max_length": 512,
|
8 |
"never_split": null,
|
9 |
"pad_token": "[PAD]",
|
10 |
"sep_token": "[SEP]",
|
11 |
+
"strip_accents": null,
|
12 |
"tokenize_chinese_chars": true,
|
13 |
"tokenizer_class": "BertTokenizer",
|
14 |
"unk_token": "[UNK]"
|
vocab.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|