e-hossam96
commited on
Commit
•
4f490f8
1
Parent(s):
533f7ba
End of training
Browse files- README.md +16 -8
- config.json +7 -7
- generation_config.json +1 -1
- merges.txt +0 -0
- model.safetensors +2 -2
- tokenizer.json +0 -0
- tokenizer_config.json +2 -2
- training_args.bin +1 -1
- vocab.json +0 -0
README.md
CHANGED
@@ -14,7 +14,9 @@ should probably proofread and complete it, then remove this comment. -->
|
|
14 |
|
15 |
# arabic-nano-gpt
|
16 |
|
17 |
-
This model is a fine-tuned version of [openai-community/gpt2](https://huggingface.co/openai-community/gpt2) on
|
|
|
|
|
18 |
|
19 |
## Model description
|
20 |
|
@@ -33,23 +35,29 @@ More information needed
|
|
33 |
### Training hyperparameters
|
34 |
|
35 |
The following hyperparameters were used during training:
|
36 |
-
- learning_rate: 0.
|
37 |
-
- train_batch_size:
|
38 |
-
- eval_batch_size:
|
39 |
- seed: 42
|
40 |
- gradient_accumulation_steps: 32
|
41 |
-
- total_train_batch_size:
|
42 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
43 |
- lr_scheduler_type: linear
|
44 |
- num_epochs: 5
|
45 |
|
46 |
### Training results
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
|
50 |
### Framework versions
|
51 |
|
52 |
-
- Transformers 4.
|
53 |
-
- Pytorch 2.
|
54 |
- Datasets 3.0.1
|
55 |
-
- Tokenizers 0.
|
|
|
14 |
|
15 |
# arabic-nano-gpt
|
16 |
|
17 |
+
This model is a fine-tuned version of [openai-community/gpt2](https://huggingface.co/openai-community/gpt2) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 6.9452
|
20 |
|
21 |
## Model description
|
22 |
|
|
|
35 |
### Training hyperparameters
|
36 |
|
37 |
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 0.0001
|
39 |
+
- train_batch_size: 32
|
40 |
+
- eval_batch_size: 32
|
41 |
- seed: 42
|
42 |
- gradient_accumulation_steps: 32
|
43 |
+
- total_train_batch_size: 1024
|
44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
- lr_scheduler_type: linear
|
46 |
- num_epochs: 5
|
47 |
|
48 |
### Training results
|
49 |
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
51 |
+
|:-------------:|:------:|:----:|:---------------:|
|
52 |
+
| No log | 1.1376 | 100 | 7.6593 |
|
53 |
+
| No log | 2.2752 | 200 | 7.3363 |
|
54 |
+
| No log | 3.4127 | 300 | 7.0512 |
|
55 |
+
| No log | 4.5503 | 400 | 6.9452 |
|
56 |
|
57 |
|
58 |
### Framework versions
|
59 |
|
60 |
+
- Transformers 4.45.2
|
61 |
+
- Pytorch 2.5.0
|
62 |
- Datasets 3.0.1
|
63 |
+
- Tokenizers 0.20.1
|
config.json
CHANGED
@@ -11,12 +11,12 @@
|
|
11 |
"initializer_range": 0.02,
|
12 |
"layer_norm_epsilon": 1e-05,
|
13 |
"model_type": "gpt2",
|
14 |
-
"n_ctx":
|
15 |
-
"n_embd":
|
16 |
-
"n_head":
|
17 |
"n_inner": null,
|
18 |
-
"n_layer":
|
19 |
-
"n_positions":
|
20 |
"reorder_and_upcast_attn": false,
|
21 |
"resid_pdrop": 0.1,
|
22 |
"scale_attn_by_inverse_layer_idx": false,
|
@@ -33,7 +33,7 @@
|
|
33 |
}
|
34 |
},
|
35 |
"torch_dtype": "float32",
|
36 |
-
"transformers_version": "4.
|
37 |
"use_cache": true,
|
38 |
-
"vocab_size":
|
39 |
}
|
|
|
11 |
"initializer_range": 0.02,
|
12 |
"layer_norm_epsilon": 1e-05,
|
13 |
"model_type": "gpt2",
|
14 |
+
"n_ctx": 1024,
|
15 |
+
"n_embd": 256,
|
16 |
+
"n_head": 4,
|
17 |
"n_inner": null,
|
18 |
+
"n_layer": 4,
|
19 |
+
"n_positions": 1024,
|
20 |
"reorder_and_upcast_attn": false,
|
21 |
"resid_pdrop": 0.1,
|
22 |
"scale_attn_by_inverse_layer_idx": false,
|
|
|
33 |
}
|
34 |
},
|
35 |
"torch_dtype": "float32",
|
36 |
+
"transformers_version": "4.45.2",
|
37 |
"use_cache": true,
|
38 |
+
"vocab_size": 8192
|
39 |
}
|
generation_config.json
CHANGED
@@ -2,5 +2,5 @@
|
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 0,
|
4 |
"eos_token_id": 0,
|
5 |
-
"transformers_version": "4.
|
6 |
}
|
|
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 0,
|
4 |
"eos_token_id": 0,
|
5 |
+
"transformers_version": "4.45.2"
|
6 |
}
|
merges.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
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:a787584f52254755b1c755a34770bd19ad6cb33948b047cc0e688a5d3a519851
|
3 |
+
size 22080496
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -11,9 +11,9 @@
|
|
11 |
}
|
12 |
},
|
13 |
"bos_token": "<|endoftext|>",
|
14 |
-
"clean_up_tokenization_spaces":
|
15 |
"eos_token": "<|endoftext|>",
|
16 |
-
"model_max_length":
|
17 |
"pad_token": "<|endoftext|>",
|
18 |
"tokenizer_class": "GPT2Tokenizer",
|
19 |
"unk_token": "<|endoftext|>"
|
|
|
11 |
}
|
12 |
},
|
13 |
"bos_token": "<|endoftext|>",
|
14 |
+
"clean_up_tokenization_spaces": false,
|
15 |
"eos_token": "<|endoftext|>",
|
16 |
+
"model_max_length": 1024,
|
17 |
"pad_token": "<|endoftext|>",
|
18 |
"tokenizer_class": "GPT2Tokenizer",
|
19 |
"unk_token": "<|endoftext|>"
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 5240
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60c2c4caa72b7bf4531d43d3b3f8acd872a5b1fc692746b6fbda3b84afe9437b
|
3 |
size 5240
|
vocab.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|