felixdae commited on
Commit
48d4a94
1 Parent(s): 67abe82

Upload ChatGLMForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +45 -0
  2. generation_config.json +6 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "THUDM/chatglm2-6b",
3
+ "add_bias_linear": false,
4
+ "add_qkv_bias": true,
5
+ "apply_query_key_layer_scaling": true,
6
+ "apply_residual_connection_post_layernorm": false,
7
+ "architectures": [
8
+ "ChatGLMForConditionalGeneration"
9
+ ],
10
+ "attention_dropout": 0.0,
11
+ "attention_softmax_in_fp32": true,
12
+ "auto_map": {
13
+ "AutoConfig": "THUDM/chatglm2-6b--configuration_chatglm.ChatGLMConfig",
14
+ "AutoModel": "THUDM/chatglm2-6b--modeling_chatglm.ChatGLMForConditionalGeneration",
15
+ "AutoModelForCausalLM": "THUDM/chatglm2-6b--modeling_chatglm.ChatGLMForConditionalGeneration",
16
+ "AutoModelForSeq2SeqLM": "THUDM/chatglm2-6b--modeling_chatglm.ChatGLMForConditionalGeneration"
17
+ },
18
+ "bias_dropout_fusion": true,
19
+ "eos_token_id": 2,
20
+ "ffn_hidden_size": 13696,
21
+ "fp32_residual_connection": false,
22
+ "hidden_dropout": 0.0,
23
+ "hidden_size": 4096,
24
+ "kv_channels": 128,
25
+ "layernorm_epsilon": 1e-05,
26
+ "model_type": "chatglm",
27
+ "multi_query_attention": true,
28
+ "multi_query_group_num": 2,
29
+ "num_attention_heads": 32,
30
+ "num_layers": 2,
31
+ "original_rope": true,
32
+ "pad_token_id": 0,
33
+ "padded_vocab_size": 65024,
34
+ "post_layer_norm": true,
35
+ "pre_seq_len": null,
36
+ "prefix_projection": false,
37
+ "quantization_bit": 0,
38
+ "rmsnorm": true,
39
+ "seq_length": 32768,
40
+ "tie_word_embeddings": false,
41
+ "torch_dtype": "float16",
42
+ "transformers_version": "4.31.0",
43
+ "use_cache": true,
44
+ "vocab_size": 65024
45
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": 2,
4
+ "pad_token_id": 0,
5
+ "transformers_version": "4.31.0"
6
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bc4c69e29096ba321b191687a7f8565f28d338896bde859c6812e648a2d338a
3
+ size 1881210919