Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- added_tokens.json +3 -0
- chat_template.json +3 -0
- config.json +83 -0
- generation_config.json +14 -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 +27 -0
- tokenizer.json +3 -0
- tokenizer.model +3 -0
- tokenizer_config.json +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
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,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"quantization_config": {
|
15 |
+
"_load_in_4bit": true,
|
16 |
+
"_load_in_8bit": false,
|
17 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
18 |
+
"bnb_4bit_quant_storage": "uint8",
|
19 |
+
"bnb_4bit_quant_type": "nf4",
|
20 |
+
"bnb_4bit_use_double_quant": true,
|
21 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
22 |
+
"llm_int8_has_fp16_weight": false,
|
23 |
+
"llm_int8_skip_modules": [
|
24 |
+
"lm_head",
|
25 |
+
"multi_modal_projector",
|
26 |
+
"merger",
|
27 |
+
"modality_projection"
|
28 |
+
],
|
29 |
+
"llm_int8_threshold": 6.0,
|
30 |
+
"load_in_4bit": true,
|
31 |
+
"load_in_8bit": false,
|
32 |
+
"quant_method": "bitsandbytes"
|
33 |
+
},
|
34 |
+
"text_config": {
|
35 |
+
"attention_bias": false,
|
36 |
+
"attention_dropout": 0.0,
|
37 |
+
"attn_logit_softcapping": null,
|
38 |
+
"cache_implementation": "hybrid",
|
39 |
+
"eos_token_id": 106,
|
40 |
+
"final_logit_softcapping": null,
|
41 |
+
"head_dim": 128,
|
42 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
43 |
+
"hidden_size": 5376,
|
44 |
+
"initializer_range": 0.02,
|
45 |
+
"intermediate_size": 21504,
|
46 |
+
"max_position_embeddings": 131072,
|
47 |
+
"model_type": "gemma3_text",
|
48 |
+
"num_attention_heads": 32,
|
49 |
+
"num_hidden_layers": 62,
|
50 |
+
"num_key_value_heads": 16,
|
51 |
+
"query_pre_attn_scalar": 168,
|
52 |
+
"rms_norm_eps": 1e-06,
|
53 |
+
"rope_local_base_freq": 10000.0,
|
54 |
+
"rope_scaling": {
|
55 |
+
"factor": 8.0,
|
56 |
+
"rope_type": "linear"
|
57 |
+
},
|
58 |
+
"rope_theta": 1000000.0,
|
59 |
+
"sliding_window": 1024,
|
60 |
+
"sliding_window_pattern": 6,
|
61 |
+
"torch_dtype": "bfloat16",
|
62 |
+
"use_cache": true,
|
63 |
+
"vocab_size": 262208
|
64 |
+
},
|
65 |
+
"torch_dtype": "bfloat16",
|
66 |
+
"transformers_version": "4.50.0.dev0",
|
67 |
+
"unsloth_fixed": true,
|
68 |
+
"vision_config": {
|
69 |
+
"attention_dropout": 0.0,
|
70 |
+
"hidden_act": "gelu_pytorch_tanh",
|
71 |
+
"hidden_size": 1152,
|
72 |
+
"image_size": 896,
|
73 |
+
"intermediate_size": 4304,
|
74 |
+
"layer_norm_eps": 1e-06,
|
75 |
+
"model_type": "siglip_vision_model",
|
76 |
+
"num_attention_heads": 16,
|
77 |
+
"num_channels": 3,
|
78 |
+
"num_hidden_layers": 27,
|
79 |
+
"patch_size": 14,
|
80 |
+
"torch_dtype": "bfloat16",
|
81 |
+
"vision_use_head": false
|
82 |
+
}
|
83 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 2,
|
4 |
+
"cache_implementation": "hybrid",
|
5 |
+
"do_sample": true,
|
6 |
+
"eos_token_id": [
|
7 |
+
1,
|
8 |
+
106
|
9 |
+
],
|
10 |
+
"pad_token_id": 0,
|
11 |
+
"top_k": 64,
|
12 |
+
"top_p": 0.95,
|
13 |
+
"transformers_version": "4.50.0.dev0"
|
14 |
+
}
|
model-00001-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c061ed8b3ec7ee18fce7767f604f5e64c6f12bac5817233bc53d19029cee8a6a
|
3 |
+
size 4995850288
|
model-00002-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:49ca25d083df7446e3e278e5ad18ed23c0cbe3799334389a8e4c9ec8ece7bcad
|
3 |
+
size 4971132611
|
model-00003-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:837166102d4351641fe0ef84642ccd9d988906483ef4aa7e792258cd957b6d80
|
3 |
+
size 4959770328
|
model-00004-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1adb8c137ad309b0b0cc7d3b03e9087a5321c5f2585382bc02fec047503d2a3
|
3 |
+
size 1337988414
|
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,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "<end_of_turn>",
|
12 |
+
"image_token": "<image_soft_token>",
|
13 |
+
"pad_token": {
|
14 |
+
"content": "<pad>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
},
|
20 |
+
"unk_token": {
|
21 |
+
"content": "<unk>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false
|
26 |
+
}
|
27 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4667f2089529e8e7657cfb6d1c19910ae71ff5f28aa7ab2ff2763330affad795
|
3 |
+
size 33384568
|
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
|
|