Update config.json
Browse files- config.json +44 -233
config.json
CHANGED
|
@@ -1,251 +1,62 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"text_config": {
|
| 3 |
-
"
|
| 4 |
-
"
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
"
|
| 10 |
-
"pruned_heads": {},
|
| 11 |
-
"tie_word_embeddings": true,
|
| 12 |
-
"chunk_size_feed_forward": 0,
|
| 13 |
-
"is_encoder_decoder": false,
|
| 14 |
-
"is_decoder": false,
|
| 15 |
-
"cross_attention_hidden_size": null,
|
| 16 |
-
"add_cross_attention": false,
|
| 17 |
-
"tie_encoder_decoder": false,
|
| 18 |
-
"max_length": 20,
|
| 19 |
-
"min_length": 0,
|
| 20 |
-
"do_sample": false,
|
| 21 |
-
"early_stopping": false,
|
| 22 |
-
"num_beams": 1,
|
| 23 |
-
"num_beam_groups": 1,
|
| 24 |
-
"diversity_penalty": 0.0,
|
| 25 |
-
"temperature": 1.0,
|
| 26 |
-
"top_k": 50,
|
| 27 |
-
"top_p": 1.0,
|
| 28 |
-
"typical_p": 1.0,
|
| 29 |
-
"repetition_penalty": 1.0,
|
| 30 |
-
"length_penalty": 1.0,
|
| 31 |
-
"no_repeat_ngram_size": 0,
|
| 32 |
-
"encoder_no_repeat_ngram_size": 0,
|
| 33 |
-
"bad_words_ids": null,
|
| 34 |
-
"num_return_sequences": 1,
|
| 35 |
-
"output_scores": false,
|
| 36 |
-
"return_dict_in_generate": false,
|
| 37 |
-
"forced_bos_token_id": null,
|
| 38 |
-
"forced_eos_token_id": null,
|
| 39 |
-
"remove_invalid_values": false,
|
| 40 |
-
"exponential_decay_length_penalty": null,
|
| 41 |
-
"suppress_tokens": null,
|
| 42 |
-
"begin_suppress_tokens": null,
|
| 43 |
-
"architectures": null,
|
| 44 |
-
"finetuning_task": null,
|
| 45 |
-
"id2label": {
|
| 46 |
-
"0": "LABEL_0",
|
| 47 |
-
"1": "LABEL_1"
|
| 48 |
-
},
|
| 49 |
-
"label2id": {
|
| 50 |
-
"LABEL_0": 0,
|
| 51 |
-
"LABEL_1": 1
|
| 52 |
-
},
|
| 53 |
-
"tokenizer_class": null,
|
| 54 |
-
"prefix": null,
|
| 55 |
-
"bos_token_id": 2,
|
| 56 |
-
"pad_token_id": 0,
|
| 57 |
-
"eos_token_id": 1,
|
| 58 |
-
"sep_token_id": null,
|
| 59 |
-
"decoder_start_token_id": null,
|
| 60 |
-
"task_specific_params": null,
|
| 61 |
-
"problem_type": null,
|
| 62 |
-
"_name_or_path": "",
|
| 63 |
-
"_attn_implementation_autoset": false,
|
| 64 |
-
"model_type": "gemma",
|
| 65 |
-
"vocab_size": 262208,
|
| 66 |
-
"max_position_embeddings": 131072,
|
| 67 |
"hidden_size": 2560,
|
|
|
|
| 68 |
"intermediate_size": 10240,
|
| 69 |
-
"
|
|
|
|
| 70 |
"num_attention_heads": 8,
|
| 71 |
-
"
|
| 72 |
"num_key_value_heads": 4,
|
| 73 |
-
"initializer_range": 0.02,
|
| 74 |
-
"rms_norm_eps": 1e-06,
|
| 75 |
-
"use_cache": true,
|
| 76 |
-
"rope_theta": 1000000.0,
|
| 77 |
-
"attention_bias": false,
|
| 78 |
-
"attention_dropout": 0.0,
|
| 79 |
-
"hidden_activation": "gelu_pytorch_tanh",
|
| 80 |
"query_pre_attn_scalar": 256,
|
| 81 |
-
"
|
| 82 |
-
"final_logit_softcapping": null,
|
| 83 |
-
"attn_logit_softcapping": null,
|
| 84 |
-
"cache_implementation": "hybrid",
|
| 85 |
"rope_local_base_freq": 10000.0,
|
| 86 |
-
"sliding_window_pattern": 6,
|
| 87 |
"rope_scaling": {
|
| 88 |
"factor": 8.0,
|
| 89 |
"rope_type": "linear"
|
| 90 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
},
|
|
|
|
|
|
|
|
|
|
| 92 |
"vision_config": {
|
| 93 |
-
"
|
| 94 |
-
"
|
| 95 |
-
"output_attentions": false,
|
| 96 |
-
"torchscript": false,
|
| 97 |
-
"torch_dtype": "float16",
|
| 98 |
-
"use_bfloat16": false,
|
| 99 |
-
"tf_legacy_loss": false,
|
| 100 |
-
"pruned_heads": {},
|
| 101 |
-
"tie_word_embeddings": true,
|
| 102 |
-
"chunk_size_feed_forward": 0,
|
| 103 |
-
"is_encoder_decoder": false,
|
| 104 |
-
"is_decoder": false,
|
| 105 |
-
"cross_attention_hidden_size": null,
|
| 106 |
-
"add_cross_attention": false,
|
| 107 |
-
"tie_encoder_decoder": false,
|
| 108 |
-
"max_length": 20,
|
| 109 |
-
"min_length": 0,
|
| 110 |
-
"do_sample": false,
|
| 111 |
-
"early_stopping": false,
|
| 112 |
-
"num_beams": 1,
|
| 113 |
-
"num_beam_groups": 1,
|
| 114 |
-
"diversity_penalty": 0.0,
|
| 115 |
-
"temperature": 1.0,
|
| 116 |
-
"top_k": 50,
|
| 117 |
-
"top_p": 1.0,
|
| 118 |
-
"typical_p": 1.0,
|
| 119 |
-
"repetition_penalty": 1.0,
|
| 120 |
-
"length_penalty": 1.0,
|
| 121 |
-
"no_repeat_ngram_size": 0,
|
| 122 |
-
"encoder_no_repeat_ngram_size": 0,
|
| 123 |
-
"bad_words_ids": null,
|
| 124 |
-
"num_return_sequences": 1,
|
| 125 |
-
"output_scores": false,
|
| 126 |
-
"return_dict_in_generate": false,
|
| 127 |
-
"forced_bos_token_id": null,
|
| 128 |
-
"forced_eos_token_id": null,
|
| 129 |
-
"remove_invalid_values": false,
|
| 130 |
-
"exponential_decay_length_penalty": null,
|
| 131 |
-
"suppress_tokens": null,
|
| 132 |
-
"begin_suppress_tokens": null,
|
| 133 |
-
"architectures": null,
|
| 134 |
-
"finetuning_task": null,
|
| 135 |
-
"id2label": {
|
| 136 |
-
"0": "LABEL_0",
|
| 137 |
-
"1": "LABEL_1"
|
| 138 |
-
},
|
| 139 |
-
"label2id": {
|
| 140 |
-
"LABEL_0": 0,
|
| 141 |
-
"LABEL_1": 1
|
| 142 |
-
},
|
| 143 |
-
"tokenizer_class": null,
|
| 144 |
-
"prefix": null,
|
| 145 |
-
"bos_token_id": null,
|
| 146 |
-
"pad_token_id": null,
|
| 147 |
-
"eos_token_id": null,
|
| 148 |
-
"sep_token_id": null,
|
| 149 |
-
"decoder_start_token_id": null,
|
| 150 |
-
"task_specific_params": null,
|
| 151 |
-
"problem_type": null,
|
| 152 |
-
"_name_or_path": "",
|
| 153 |
-
"_attn_implementation_autoset": false,
|
| 154 |
-
"model_type": "siglip_vision_model",
|
| 155 |
-
"vision_use_head": false,
|
| 156 |
"hidden_size": 1152,
|
|
|
|
| 157 |
"intermediate_size": 4304,
|
| 158 |
-
"
|
|
|
|
| 159 |
"num_attention_heads": 16,
|
| 160 |
"num_channels": 3,
|
|
|
|
| 161 |
"patch_size": 14,
|
| 162 |
-
"
|
| 163 |
-
"
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
},
|
| 167 |
-
"mm_tokens_per_image": 256,
|
| 168 |
-
"boi_token_index": 255999,
|
| 169 |
-
"eoi_token_index": 256000,
|
| 170 |
-
"image_token_index": 262144,
|
| 171 |
-
"initializer_range": 0.02,
|
| 172 |
-
"return_dict": true,
|
| 173 |
-
"output_hidden_states": false,
|
| 174 |
-
"output_attentions": false,
|
| 175 |
-
"torchscript": false,
|
| 176 |
-
"torch_dtype": "float16",
|
| 177 |
-
"use_bfloat16": false,
|
| 178 |
-
"tf_legacy_loss": false,
|
| 179 |
-
"pruned_heads": {},
|
| 180 |
-
"tie_word_embeddings": true,
|
| 181 |
-
"chunk_size_feed_forward": 0,
|
| 182 |
-
"is_encoder_decoder": false,
|
| 183 |
-
"is_decoder": false,
|
| 184 |
-
"cross_attention_hidden_size": null,
|
| 185 |
-
"add_cross_attention": false,
|
| 186 |
-
"tie_encoder_decoder": false,
|
| 187 |
-
"max_length": 20,
|
| 188 |
-
"min_length": 0,
|
| 189 |
-
"do_sample": false,
|
| 190 |
-
"early_stopping": false,
|
| 191 |
-
"num_beams": 1,
|
| 192 |
-
"num_beam_groups": 1,
|
| 193 |
-
"diversity_penalty": 0.0,
|
| 194 |
-
"temperature": 1.0,
|
| 195 |
-
"top_k": 50,
|
| 196 |
-
"top_p": 1.0,
|
| 197 |
-
"typical_p": 1.0,
|
| 198 |
-
"repetition_penalty": 1.0,
|
| 199 |
-
"length_penalty": 1.0,
|
| 200 |
-
"no_repeat_ngram_size": 0,
|
| 201 |
-
"encoder_no_repeat_ngram_size": 0,
|
| 202 |
-
"bad_words_ids": null,
|
| 203 |
-
"num_return_sequences": 1,
|
| 204 |
-
"output_scores": false,
|
| 205 |
-
"return_dict_in_generate": false,
|
| 206 |
-
"forced_bos_token_id": null,
|
| 207 |
-
"forced_eos_token_id": null,
|
| 208 |
-
"remove_invalid_values": false,
|
| 209 |
-
"exponential_decay_length_penalty": null,
|
| 210 |
-
"suppress_tokens": null,
|
| 211 |
-
"begin_suppress_tokens": null,
|
| 212 |
-
"architectures": [
|
| 213 |
-
"Gemma2ForCausalLM"
|
| 214 |
-
],
|
| 215 |
-
"finetuning_task": null,
|
| 216 |
-
"id2label": {
|
| 217 |
-
"0": "LABEL_0",
|
| 218 |
-
"1": "LABEL_1"
|
| 219 |
-
},
|
| 220 |
-
"label2id": {
|
| 221 |
-
"LABEL_0": 0,
|
| 222 |
-
"LABEL_1": 1
|
| 223 |
-
},
|
| 224 |
-
"tokenizer_class": null,
|
| 225 |
-
"prefix": null,
|
| 226 |
-
"bos_token_id": 2,
|
| 227 |
-
"pad_token_id": 0,
|
| 228 |
-
"eos_token_id": 106,
|
| 229 |
-
"sep_token_id": null,
|
| 230 |
-
"decoder_start_token_id": null,
|
| 231 |
-
"task_specific_params": null,
|
| 232 |
-
"problem_type": null,
|
| 233 |
-
"_name_or_path": "unsloth/gemma-3-4b-it-unsloth-bnb-4bit",
|
| 234 |
-
"_attn_implementation_autoset": true,
|
| 235 |
-
"transformers_version": "4.51.3",
|
| 236 |
-
"model_type": "gemma2",
|
| 237 |
-
"quantization_config": {
|
| 238 |
-
"bnb_4bit_compute_dtype": "float16",
|
| 239 |
-
"bnb_4bit_quant_type": "nf4",
|
| 240 |
-
"bnb_4bit_use_double_quant": true,
|
| 241 |
-
"llm_int8_enable_fp32_cpu_offload": false,
|
| 242 |
-
"llm_int8_has_fp16_weight": false,
|
| 243 |
-
"llm_int8_skip_modules": null,
|
| 244 |
-
"llm_int8_threshold": 6.0,
|
| 245 |
-
"load_in_4bit": true,
|
| 246 |
-
"load_in_8bit": false,
|
| 247 |
-
"quant_method": "bitsandbytes"
|
| 248 |
-
},
|
| 249 |
-
"unsloth_fixed": true,
|
| 250 |
-
"unsloth_version": "2025.5.9"
|
| 251 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Gemma3ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"boi_token_index": 255999,
|
| 6 |
+
"bos_token_id": 2,
|
| 7 |
+
"eoi_token_index": 256000,
|
| 8 |
+
"eos_token_id": 106,
|
| 9 |
+
"image_token_index": 262144,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"mm_tokens_per_image": 256,
|
| 12 |
+
"model_type": "gemma3",
|
| 13 |
+
"pad_token_id": 0,
|
| 14 |
"text_config": {
|
| 15 |
+
"attention_bias": false,
|
| 16 |
+
"attention_dropout": 0.0,
|
| 17 |
+
"attn_logit_softcapping": null,
|
| 18 |
+
"cache_implementation": "hybrid",
|
| 19 |
+
"final_logit_softcapping": null,
|
| 20 |
+
"head_dim": 256,
|
| 21 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
"hidden_size": 2560,
|
| 23 |
+
"initializer_range": 0.02,
|
| 24 |
"intermediate_size": 10240,
|
| 25 |
+
"max_position_embeddings": 131072,
|
| 26 |
+
"model_type": "gemma3_text",
|
| 27 |
"num_attention_heads": 8,
|
| 28 |
+
"num_hidden_layers": 34,
|
| 29 |
"num_key_value_heads": 4,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
"query_pre_attn_scalar": 256,
|
| 31 |
+
"rms_norm_eps": 1e-06,
|
|
|
|
|
|
|
|
|
|
| 32 |
"rope_local_base_freq": 10000.0,
|
|
|
|
| 33 |
"rope_scaling": {
|
| 34 |
"factor": 8.0,
|
| 35 |
"rope_type": "linear"
|
| 36 |
+
},
|
| 37 |
+
"rope_theta": 1000000.0,
|
| 38 |
+
"sliding_window": 1024,
|
| 39 |
+
"sliding_window_pattern": 6,
|
| 40 |
+
"torch_dtype": "bfloat16",
|
| 41 |
+
"use_cache": true,
|
| 42 |
+
"vocab_size": 262208
|
| 43 |
},
|
| 44 |
+
"torch_dtype": "bfloat16",
|
| 45 |
+
"transformers_version": "4.51.3",
|
| 46 |
+
"unsloth_fixed": true,
|
| 47 |
"vision_config": {
|
| 48 |
+
"attention_dropout": 0.0,
|
| 49 |
+
"hidden_act": "gelu_pytorch_tanh",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
"hidden_size": 1152,
|
| 51 |
+
"image_size": 896,
|
| 52 |
"intermediate_size": 4304,
|
| 53 |
+
"layer_norm_eps": 1e-06,
|
| 54 |
+
"model_type": "siglip_vision_model",
|
| 55 |
"num_attention_heads": 16,
|
| 56 |
"num_channels": 3,
|
| 57 |
+
"num_hidden_layers": 27,
|
| 58 |
"patch_size": 14,
|
| 59 |
+
"torch_dtype": "bfloat16",
|
| 60 |
+
"vision_use_head": false
|
| 61 |
+
}
|
| 62 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|