jonatanklosko commited on
Commit
2c3098e
·
verified ·
1 Parent(s): c995c13

Add tiny random Gemma 4 fixture

Browse files
Files changed (3) hide show
  1. config.json +123 -0
  2. generation_config.json +10 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma4ForConditionalGeneration"
4
+ ],
5
+ "audio_config": {
6
+ "attention_chunk_size": 12,
7
+ "attention_context_left": 13,
8
+ "attention_context_right": 0,
9
+ "attention_invalid_logits_value": -1000000000.0,
10
+ "attention_logit_cap": 50.0,
11
+ "conv_kernel_size": 5,
12
+ "gradient_clipping": 10000000000.0,
13
+ "hidden_act": "silu",
14
+ "hidden_size": 16,
15
+ "initializer_range": 0.02,
16
+ "model_type": "gemma4_audio",
17
+ "num_attention_heads": 2,
18
+ "num_hidden_layers": 1,
19
+ "output_proj_dims": 16,
20
+ "residual_weight": 0.5,
21
+ "rms_norm_eps": 1e-06,
22
+ "subsampling_conv_channels": [
23
+ 16,
24
+ 8
25
+ ],
26
+ "use_clipped_linears": true
27
+ },
28
+ "audio_token_id": 258881,
29
+ "boa_token_id": 256000,
30
+ "boi_token_id": 255999,
31
+ "dtype": "float32",
32
+ "eoa_token_index": 258883,
33
+ "eoi_token_id": 258882,
34
+ "image_token_id": 258880,
35
+ "initializer_range": 0.02,
36
+ "model_type": "gemma4",
37
+ "text_config": {
38
+ "attention_bias": false,
39
+ "attention_dropout": 0.0,
40
+ "attention_k_eq_v": false,
41
+ "bos_token_id": 2,
42
+ "enable_moe_block": false,
43
+ "eos_token_id": 1,
44
+ "final_logit_softcapping": 30.0,
45
+ "head_dim": 8,
46
+ "hidden_activation": "gelu_pytorch_tanh",
47
+ "hidden_size": 32,
48
+ "hidden_size_per_layer_input": 4,
49
+ "initializer_range": 0.2,
50
+ "intermediate_size": 37,
51
+ "layer_types": [
52
+ "sliding_attention",
53
+ "sliding_attention",
54
+ "full_attention",
55
+ "sliding_attention",
56
+ "full_attention"
57
+ ],
58
+ "max_position_embeddings": 512,
59
+ "model_type": "gemma4_text",
60
+ "moe_intermediate_size": null,
61
+ "num_attention_heads": 4,
62
+ "num_experts": null,
63
+ "num_hidden_layers": 5,
64
+ "num_key_value_heads": 2,
65
+ "num_kv_shared_layers": 2,
66
+ "pad_token_id": 0,
67
+ "per_layer_config": {
68
+ "2": {
69
+ "head_dim": 16
70
+ },
71
+ "4": {
72
+ "head_dim": 16
73
+ }
74
+ },
75
+ "rms_norm_eps": 1e-06,
76
+ "rope_parameters": {
77
+ "full_attention": {
78
+ "partial_rotary_factor": 0.25,
79
+ "rope_theta": 1000000.0,
80
+ "rope_type": "proportional"
81
+ },
82
+ "sliding_attention": {
83
+ "rope_theta": 10000.0,
84
+ "rope_type": "default"
85
+ }
86
+ },
87
+ "sliding_window": 4,
88
+ "tie_word_embeddings": true,
89
+ "top_k_experts": null,
90
+ "use_bidirectional_attention": null,
91
+ "use_cache": true,
92
+ "use_double_wide_mlp": true,
93
+ "vocab_size": 1024,
94
+ "vocab_size_per_layer_input": 1024
95
+ },
96
+ "tie_word_embeddings": true,
97
+ "transformers_version": "5.23.0",
98
+ "video_token_id": 258884,
99
+ "vision_config": {
100
+ "attention_bias": false,
101
+ "attention_dropout": 0.0,
102
+ "head_dim": 8,
103
+ "hidden_activation": "gelu_pytorch_tanh",
104
+ "hidden_size": 16,
105
+ "initializer_range": 0.02,
106
+ "intermediate_size": 37,
107
+ "max_position_embeddings": 131072,
108
+ "model_type": "gemma4_vision",
109
+ "num_attention_heads": 2,
110
+ "num_hidden_layers": 1,
111
+ "num_key_value_heads": 2,
112
+ "patch_size": 16,
113
+ "pooling_kernel_size": 3,
114
+ "position_embedding_size": 128,
115
+ "rms_norm_eps": 1e-06,
116
+ "rope_parameters": {
117
+ "rope_theta": 100.0,
118
+ "rope_type": "axial"
119
+ },
120
+ "standardize": false,
121
+ "use_clipped_linears": false
122
+ }
123
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "eos_token_id": 1,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.23.0",
9
+ "use_cache": true
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9392cbbc74f0b215fb9ca5a6cc8c5daae0321579f02fcdfd1a892c8afce13e1
3
+ size 533004