ammarnasr commited on
Commit
dbde757
1 Parent(s): d188110

Upload CodeGenForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +49 -0
  2. generation_config.json +6 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Salesforce/codegen2-1B",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "CodeGenForCausalLM"
6
+ ],
7
+ "attn_pdrop": 0.0,
8
+ "auto_map": {
9
+ "AutoConfig": "Salesforce/codegen2-1B--configuration_codegen.CodeGenConfig",
10
+ "AutoModel": "Salesforce/codegen2-1B--modeling_codegen.CodeGenModel",
11
+ "AutoModelForCausalLM": "Salesforce/codegen2-1B--modeling_codegen.CodeGenForCausalLM"
12
+ },
13
+ "bos_token_id": 1,
14
+ "embd_pdrop": 0.0,
15
+ "eos_token_id": 2,
16
+ "gradient_checkpointing": false,
17
+ "head_dim": 128,
18
+ "initializer_range": 0.02,
19
+ "layer_norm_epsilon": 1e-05,
20
+ "model_type": "codegen",
21
+ "n_ctx": 2048,
22
+ "n_embd": 2048,
23
+ "n_head": 16,
24
+ "n_inner": null,
25
+ "n_layer": 16,
26
+ "n_positions": 2048,
27
+ "resid_pdrop": 0.0,
28
+ "rotary_dim": 64,
29
+ "scale_attn_weights": true,
30
+ "summary_activation": null,
31
+ "summary_first_dropout": 0.1,
32
+ "summary_proj_to_labels": true,
33
+ "summary_type": "cls_index",
34
+ "summary_use_proj": true,
35
+ "task_specific_params": {
36
+ "text-generation": {
37
+ "do_sample": true,
38
+ "max_length": 50,
39
+ "temperature": 1.0
40
+ }
41
+ },
42
+ "tie_word_embeddings": false,
43
+ "tokenizer_class": "GPT2Tokenizer",
44
+ "torch_dtype": "float32",
45
+ "transformers_version": "4.36.2",
46
+ "trust_remote_code": true,
47
+ "use_cache": true,
48
+ "vocab_size": 51200
49
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.36.2"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c43979c141fb46baad2f4926350e32e7fa61eba6733f1735f10a28af1e56e0e7
3
+ size 4128349832