parhamabedazad
commited on
Commit
•
d95ef28
1
Parent(s):
012e9e4
add model
Browse files- config.json +65 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bolbolzaban/gpt2-persian",
|
3 |
+
"activation_function": "gelu_new",
|
4 |
+
"architectures": [
|
5 |
+
"GPT2LMHeadModel"
|
6 |
+
],
|
7 |
+
"attn_dropout": 0.1,
|
8 |
+
"attn_pdrop": 0.1,
|
9 |
+
"beta1": 0.9,
|
10 |
+
"beta2": 0.98,
|
11 |
+
"bos_token_id": 8,
|
12 |
+
"data_path": "",
|
13 |
+
"embd_pdrop": 0.1,
|
14 |
+
"embed_dropout": 0.1,
|
15 |
+
"eos_token_id": 9,
|
16 |
+
"epsilon": 1e-09,
|
17 |
+
"eval_batch_size": 128,
|
18 |
+
"eval_steps": 10,
|
19 |
+
"gradient_checkpointing": false,
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"iterations": 1000,
|
22 |
+
"layer_norm_epsilon": 1e-05,
|
23 |
+
"line_count": 1,
|
24 |
+
"lr": 0.00025,
|
25 |
+
"max_steps": 3600000,
|
26 |
+
"model": "GPT2",
|
27 |
+
"model_type": "gpt2",
|
28 |
+
"n_ctx": 256,
|
29 |
+
"n_embd": 1024,
|
30 |
+
"n_head": 16,
|
31 |
+
"n_inner": null,
|
32 |
+
"n_layer": 24,
|
33 |
+
"n_positions": 256,
|
34 |
+
"n_vocab": 25000,
|
35 |
+
"opt_name": "adam",
|
36 |
+
"precision": "float32",
|
37 |
+
"predict_batch_size": 8,
|
38 |
+
"reorder_and_upcast_attn": false,
|
39 |
+
"res_dropout": 0.1,
|
40 |
+
"resid_pdrop": 0.1,
|
41 |
+
"scale_attn_by_inverse_layer_idx": false,
|
42 |
+
"scale_attn_weights": true,
|
43 |
+
"scale_by_depth": true,
|
44 |
+
"scale_by_in": true,
|
45 |
+
"summary_activation": null,
|
46 |
+
"summary_first_dropout": 0.1,
|
47 |
+
"summary_proj_to_labels": true,
|
48 |
+
"summary_type": "cls_index",
|
49 |
+
"summary_use_proj": true,
|
50 |
+
"task_specific_params": {
|
51 |
+
"text-generation": {
|
52 |
+
"do_sample": true,
|
53 |
+
"max_length": 50
|
54 |
+
}
|
55 |
+
},
|
56 |
+
"tokenizer_class": "AlbertTokenizer",
|
57 |
+
"torch_dtype": "float32",
|
58 |
+
"train_batch_size": 320,
|
59 |
+
"train_steps": 10000,
|
60 |
+
"transformers_version": "4.15.0",
|
61 |
+
"use_cache": true,
|
62 |
+
"vocab_size": 25000,
|
63 |
+
"warmup_steps": 2000,
|
64 |
+
"weight_decay": 0.01
|
65 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d7651f40c84ce96a60932e87835e2d3bc5ac3faebb060d84b33ac2f829485ba
|
3 |
+
size 1314389977
|