Upload folder using huggingface_hub
Browse files- added_tokens.json +3 -0
- chat_template.json +3 -0
- config.json +93 -0
- generation_config.json +13 -0
- model-00001-of-00004.safetensors +3 -0
- model-00002-of-00004.safetensors +3 -0
- model-00003-of-00004.safetensors +3 -0
- model-00004-of-00004.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +29 -0
- processor_config.json +4 -0
- special_tokens_map.json +33 -0
- tokenizer.model +3 -0
- tokenizer_config.json +0 -0
added_tokens.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"<image_soft_token>": 262144
|
| 3 |
+
}
|
chat_template.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chat_template": "{{ bos_token }}\n{%- if messages[0]['role'] == 'system' -%}\n {%- if messages[0]['content'] is string -%}\n {%- set first_user_prefix = messages[0]['content'] + '\n\n' -%}\n {%- else -%}\n {%- set first_user_prefix = messages[0]['content'][0]['text'] + '\n\n' -%}\n {%- endif -%}\n {%- set loop_messages = messages[1:] -%}\n{%- else -%}\n {%- set first_user_prefix = \"\" -%}\n {%- set loop_messages = messages -%}\n{%- endif -%}\n{%- for message in loop_messages -%}\n {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}\n {{ raise_exception(\"Conversation roles must alternate user/assistant/user/assistant/...\") }}\n {%- endif -%}\n {%- if (message['role'] == 'assistant') -%}\n {%- set role = \"model\" -%}\n {%- else -%}\n {%- set role = message['role'] -%}\n {%- endif -%}\n {{ '<start_of_turn>' + role + '\n' + (first_user_prefix if loop.first else \"\") }}\n {%- if message['content'] is string -%}\n {{ message['content'] | trim }}\n {%- elif message['content'] is iterable -%}\n {%- for item in message['content'] -%}\n {%- if item['type'] == 'image' -%}\n {{ '<start_of_image>' }}\n {%- elif item['type'] == 'text' -%}\n {{ item['text'] | trim }}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {{ raise_exception(\"Invalid content type\") }}\n {%- endif -%}\n {{ '<end_of_turn>\n' }}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n {{'<start_of_turn>model\n'}}\n{%- endif -%}\n"
|
| 3 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_attn_implementation_autoset": true,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Gemma3ForConditionalGeneration"
|
| 5 |
+
],
|
| 6 |
+
"boi_token_index": 255999,
|
| 7 |
+
"eoi_token_index": 256000,
|
| 8 |
+
"eos_token_id": [
|
| 9 |
+
1,
|
| 10 |
+
106
|
| 11 |
+
],
|
| 12 |
+
"image_token_index": 262144,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"mm_tokens_per_image": 256,
|
| 15 |
+
"model_type": "gemma3",
|
| 16 |
+
"quantization_config": {
|
| 17 |
+
"config_groups": {
|
| 18 |
+
"group_0": {
|
| 19 |
+
"input_activations": null,
|
| 20 |
+
"output_activations": null,
|
| 21 |
+
"targets": [
|
| 22 |
+
"Linear"
|
| 23 |
+
],
|
| 24 |
+
"weights": {
|
| 25 |
+
"actorder": null,
|
| 26 |
+
"block_structure": null,
|
| 27 |
+
"dynamic": false,
|
| 28 |
+
"group_size": 128,
|
| 29 |
+
"num_bits": 4,
|
| 30 |
+
"observer": "minmax",
|
| 31 |
+
"observer_kwargs": {},
|
| 32 |
+
"strategy": "group",
|
| 33 |
+
"symmetric": true,
|
| 34 |
+
"type": "int"
|
| 35 |
+
}
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"format": "pack-quantized",
|
| 39 |
+
"ignore": [
|
| 40 |
+
"lm_head",
|
| 41 |
+
"re:vision_tower.*",
|
| 42 |
+
"re:multi_modal_projector.*"
|
| 43 |
+
],
|
| 44 |
+
"kv_cache_scheme": null,
|
| 45 |
+
"quant_method": "compressed-tensors",
|
| 46 |
+
"quantization_status": "compressed"
|
| 47 |
+
},
|
| 48 |
+
"text_config": {
|
| 49 |
+
"attention_bias": false,
|
| 50 |
+
"attention_dropout": 0.0,
|
| 51 |
+
"attn_logit_softcapping": null,
|
| 52 |
+
"cache_implementation": "hybrid",
|
| 53 |
+
"final_logit_softcapping": null,
|
| 54 |
+
"head_dim": 256,
|
| 55 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 56 |
+
"hidden_size": 3840,
|
| 57 |
+
"initializer_range": 0.02,
|
| 58 |
+
"intermediate_size": 15360,
|
| 59 |
+
"max_position_embeddings": 131072,
|
| 60 |
+
"model_type": "gemma3_text",
|
| 61 |
+
"num_attention_heads": 16,
|
| 62 |
+
"num_hidden_layers": 48,
|
| 63 |
+
"num_key_value_heads": 8,
|
| 64 |
+
"query_pre_attn_scalar": 256,
|
| 65 |
+
"rms_norm_eps": 1e-06,
|
| 66 |
+
"rope_local_base_freq": 10000.0,
|
| 67 |
+
"rope_scaling": {
|
| 68 |
+
"factor": 8.0,
|
| 69 |
+
"rope_type": "linear"
|
| 70 |
+
},
|
| 71 |
+
"rope_theta": 1000000.0,
|
| 72 |
+
"sliding_window": 1024,
|
| 73 |
+
"sliding_window_pattern": 6,
|
| 74 |
+
"use_cache": true,
|
| 75 |
+
"vocab_size": 262208
|
| 76 |
+
},
|
| 77 |
+
"torch_dtype": "bfloat16",
|
| 78 |
+
"transformers_version": "4.52.0.dev0",
|
| 79 |
+
"vision_config": {
|
| 80 |
+
"attention_dropout": 0.0,
|
| 81 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 82 |
+
"hidden_size": 1152,
|
| 83 |
+
"image_size": 896,
|
| 84 |
+
"intermediate_size": 4304,
|
| 85 |
+
"layer_norm_eps": 1e-06,
|
| 86 |
+
"model_type": "siglip_vision_model",
|
| 87 |
+
"num_attention_heads": 16,
|
| 88 |
+
"num_channels": 3,
|
| 89 |
+
"num_hidden_layers": 27,
|
| 90 |
+
"patch_size": 14,
|
| 91 |
+
"vision_use_head": false
|
| 92 |
+
}
|
| 93 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 2,
|
| 3 |
+
"cache_implementation": "hybrid",
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": [
|
| 6 |
+
1,
|
| 7 |
+
106
|
| 8 |
+
],
|
| 9 |
+
"pad_token_id": 0,
|
| 10 |
+
"top_k": 64,
|
| 11 |
+
"top_p": 0.95,
|
| 12 |
+
"transformers_version": "4.52.0.dev0"
|
| 13 |
+
}
|
model-00001-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:625588781ce709aa10721fca85524c3dd46d265ee168db4c272c3186412c89da
|
| 3 |
+
size 1849663656
|
model-00002-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5027638035003b5cbfe974741a3eeff19ebede0634862afd0e82b32927412cb4
|
| 3 |
+
size 1849663928
|
model-00003-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7adba493ede598bec007fe5575d7f9a6ea02d3fa6115fbb8081524948373cf8
|
| 3 |
+
size 1849663928
|
model-00004-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b6819b0f74306bbec582d59e9563895b6805c7c200b19ebf93cb79042737244
|
| 3 |
+
size 2856407704
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_pan_and_scan": null,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.5,
|
| 9 |
+
0.5,
|
| 10 |
+
0.5
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "Gemma3ImageProcessor",
|
| 13 |
+
"image_seq_length": 256,
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"pan_and_scan_max_num_crops": null,
|
| 20 |
+
"pan_and_scan_min_crop_size": null,
|
| 21 |
+
"pan_and_scan_min_ratio_to_activate": null,
|
| 22 |
+
"processor_class": "Gemma3Processor",
|
| 23 |
+
"resample": 2,
|
| 24 |
+
"rescale_factor": 0.00392156862745098,
|
| 25 |
+
"size": {
|
| 26 |
+
"height": 896,
|
| 27 |
+
"width": 896
|
| 28 |
+
}
|
| 29 |
+
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_seq_length": 256,
|
| 3 |
+
"processor_class": "Gemma3Processor"
|
| 4 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"boi_token": "<start_of_image>",
|
| 3 |
+
"bos_token": {
|
| 4 |
+
"content": "<bos>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false
|
| 9 |
+
},
|
| 10 |
+
"eoi_token": "<end_of_image>",
|
| 11 |
+
"eos_token": {
|
| 12 |
+
"content": "<eos>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false
|
| 17 |
+
},
|
| 18 |
+
"image_token": "<image_soft_token>",
|
| 19 |
+
"pad_token": {
|
| 20 |
+
"content": "<pad>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false
|
| 25 |
+
},
|
| 26 |
+
"unk_token": {
|
| 27 |
+
"content": "<unk>",
|
| 28 |
+
"lstrip": false,
|
| 29 |
+
"normalized": false,
|
| 30 |
+
"rstrip": false,
|
| 31 |
+
"single_word": false
|
| 32 |
+
}
|
| 33 |
+
}
|
tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
|
| 3 |
+
size 4689074
|
tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|