daniazie commited on
Commit
209c6a9
·
verified ·
1 Parent(s): 1f56328

Upload Gemma2ForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +75 -0
  2. generation_config.json +10 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma2ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "attn_logit_softcapping": 50.0,
8
+ "bos_token_id": 2,
9
+ "cache_implementation": "hybrid",
10
+ "dtype": "float16",
11
+ "eos_token_id": 1,
12
+ "final_logit_softcapping": 30.0,
13
+ "head_dim": 256,
14
+ "hidden_act": "gelu_pytorch_tanh",
15
+ "hidden_activation": "gelu_pytorch_tanh",
16
+ "hidden_size": 2304,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 9216,
19
+ "layer_types": [
20
+ "sliding_attention",
21
+ "full_attention",
22
+ "sliding_attention",
23
+ "full_attention",
24
+ "sliding_attention",
25
+ "full_attention",
26
+ "sliding_attention",
27
+ "full_attention",
28
+ "sliding_attention",
29
+ "full_attention",
30
+ "sliding_attention",
31
+ "full_attention",
32
+ "sliding_attention",
33
+ "full_attention",
34
+ "sliding_attention",
35
+ "full_attention",
36
+ "sliding_attention",
37
+ "full_attention",
38
+ "sliding_attention",
39
+ "full_attention",
40
+ "sliding_attention",
41
+ "full_attention",
42
+ "sliding_attention",
43
+ "full_attention",
44
+ "sliding_attention",
45
+ "full_attention"
46
+ ],
47
+ "max_position_embeddings": 8192,
48
+ "model_type": "gemma2",
49
+ "num_attention_heads": 8,
50
+ "num_hidden_layers": 26,
51
+ "num_key_value_heads": 4,
52
+ "pad_token_id": 0,
53
+ "quantization_config": {
54
+ "_load_in_4bit": true,
55
+ "_load_in_8bit": false,
56
+ "bnb_4bit_compute_dtype": "bfloat16",
57
+ "bnb_4bit_quant_storage": "uint8",
58
+ "bnb_4bit_quant_type": "nf4",
59
+ "bnb_4bit_use_double_quant": true,
60
+ "llm_int8_enable_fp32_cpu_offload": false,
61
+ "llm_int8_has_fp16_weight": false,
62
+ "llm_int8_skip_modules": null,
63
+ "llm_int8_threshold": 6.0,
64
+ "load_in_4bit": true,
65
+ "load_in_8bit": false,
66
+ "quant_method": "bitsandbytes"
67
+ },
68
+ "query_pre_attn_scalar": 256,
69
+ "rms_norm_eps": 1e-06,
70
+ "rope_theta": 10000.0,
71
+ "sliding_window": 4096,
72
+ "transformers_version": "4.56.2",
73
+ "use_cache": true,
74
+ "vocab_size": 256000
75
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "cache_implementation": "hybrid",
5
+ "eos_token_id": [
6
+ 1
7
+ ],
8
+ "pad_token_id": 0,
9
+ "transformers_version": "4.56.2"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6f2d39c21d869a62d5c445bfd3104326bf88725fbfb0076567b591a38bd5a80
3
+ size 2224764878