Snider Virgil commited on
Commit
c218b73
·
1 Parent(s): 95412c4

fix: config.json matches HF 4-bit safetensors (BitsAndBytes NF4)

Browse files
Files changed (1) hide show
  1. config.json +19 -8
config.json CHANGED
@@ -56,6 +56,21 @@
56
  "image_token_id": 258880,
57
  "initializer_range": 0.02,
58
  "model_type": "gemma4",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  "text_config": {
60
  "attention_bias": false,
61
  "attention_dropout": 0.0,
@@ -112,6 +127,7 @@
112
  ],
113
  "max_position_embeddings": 131072,
114
  "model_type": "gemma4_text",
 
115
  "num_attention_heads": 8,
116
  "num_experts": null,
117
  "num_global_key_value_heads": null,
@@ -141,7 +157,7 @@
141
  "vocab_size_per_layer_input": 262144
142
  },
143
  "tie_word_embeddings": true,
144
- "transformers_version": "5.5.0.dev0",
145
  "video_token_id": 258884,
146
  "vision_config": {
147
  "_name_or_path": "",
@@ -186,10 +202,5 @@
186
  "standardize": false,
187
  "use_clipped_linears": true
188
  },
189
- "vision_soft_tokens_per_image": 280,
190
- "quantization": {
191
- "group_size": 64,
192
- "bits": 4,
193
- "mode": "affine"
194
- }
195
- }
 
56
  "image_token_id": 258880,
57
  "initializer_range": 0.02,
58
  "model_type": "gemma4",
59
+ "quantization_config": {
60
+ "_load_in_4bit": true,
61
+ "_load_in_8bit": false,
62
+ "bnb_4bit_compute_dtype": "bfloat16",
63
+ "bnb_4bit_quant_storage": "uint8",
64
+ "bnb_4bit_quant_type": "nf4",
65
+ "bnb_4bit_use_double_quant": true,
66
+ "llm_int8_enable_fp32_cpu_offload": false,
67
+ "llm_int8_has_fp16_weight": false,
68
+ "llm_int8_skip_modules": null,
69
+ "llm_int8_threshold": 6.0,
70
+ "load_in_4bit": true,
71
+ "load_in_8bit": false,
72
+ "quant_method": "bitsandbytes"
73
+ },
74
  "text_config": {
75
  "attention_bias": false,
76
  "attention_dropout": 0.0,
 
127
  ],
128
  "max_position_embeddings": 131072,
129
  "model_type": "gemma4_text",
130
+ "moe_intermediate_size": null,
131
  "num_attention_heads": 8,
132
  "num_experts": null,
133
  "num_global_key_value_heads": null,
 
157
  "vocab_size_per_layer_input": 262144
158
  },
159
  "tie_word_embeddings": true,
160
+ "transformers_version": "5.5.0",
161
  "video_token_id": 258884,
162
  "vision_config": {
163
  "_name_or_path": "",
 
202
  "standardize": false,
203
  "use_clipped_linears": true
204
  },
205
+ "vision_soft_tokens_per_image": 280
206
+ }