Upload CodeGenForCausalLM
Browse files- config.json +43 -0
- generation_config.json +7 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "cridin1/codegen-350M-multi-30-1-powershell-last",
|
3 |
+
"activation_function": "gelu_new",
|
4 |
+
"architectures": [
|
5 |
+
"CodeGenForCausalLM"
|
6 |
+
],
|
7 |
+
"attn_pdrop": 0.0,
|
8 |
+
"bos_token_id": 50295,
|
9 |
+
"embd_pdrop": 0.0,
|
10 |
+
"eos_token_id": 50296,
|
11 |
+
"gradient_checkpointing": false,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"layer_norm_epsilon": 1e-05,
|
14 |
+
"model_type": "codegen",
|
15 |
+
"n_ctx": 2048,
|
16 |
+
"n_embd": 1024,
|
17 |
+
"n_head": 16,
|
18 |
+
"n_inner": null,
|
19 |
+
"n_layer": 20,
|
20 |
+
"n_positions": 2048,
|
21 |
+
"pad_token_id": 50297,
|
22 |
+
"resid_pdrop": 0.0,
|
23 |
+
"rotary_dim": 32,
|
24 |
+
"scale_attn_weights": true,
|
25 |
+
"summary_activation": null,
|
26 |
+
"summary_first_dropout": 0.1,
|
27 |
+
"summary_proj_to_labels": true,
|
28 |
+
"summary_type": "cls_index",
|
29 |
+
"summary_use_proj": true,
|
30 |
+
"task_specific_params": {
|
31 |
+
"text-generation": {
|
32 |
+
"do_sample": true,
|
33 |
+
"max_length": 50,
|
34 |
+
"temperature": 1.0
|
35 |
+
}
|
36 |
+
},
|
37 |
+
"tie_word_embeddings": false,
|
38 |
+
"tokenizer_class": "GPT2Tokenizer",
|
39 |
+
"torch_dtype": "float32",
|
40 |
+
"transformers_version": "4.33.2",
|
41 |
+
"use_cache": true,
|
42 |
+
"vocab_size": 50298
|
43 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 50295,
|
4 |
+
"eos_token_id": 50296,
|
5 |
+
"pad_token_id": 50297,
|
6 |
+
"transformers_version": "4.33.2"
|
7 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c7a6e1b081e5ca9891cb5f7fe4757e9271ed0489a4700214783ba7a13194f89
|
3 |
+
size 1419508958
|