cicdatopea commited on
Commit
4510380
·
verified ·
1 Parent(s): 819c98b

Upload folder using huggingface_hub

Browse files
.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,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma3ForConditionalGeneration"
4
+ ],
5
+ "boi_token_index": 255999,
6
+ "eoi_token_index": 256000,
7
+ "eos_token_id": [
8
+ 1,
9
+ 106
10
+ ],
11
+ "image_token_index": 262144,
12
+ "initializer_range": 0.02,
13
+ "mm_tokens_per_image": 256,
14
+ "model_type": "gemma3",
15
+ "quantization_config": {
16
+ "act_bits": 32,
17
+ "amp": true,
18
+ "autoround_version": "0.4.6",
19
+ "batch_size": 1,
20
+ "bits": 4,
21
+ "block_name_to_quantize": "language_model.model.layers",
22
+ "damp_percent": 0.01,
23
+ "data_type": "int",
24
+ "desc_act": false,
25
+ "enable_minmax_tuning": true,
26
+ "enable_norm_bias_tuning": false,
27
+ "enable_quanted_input": true,
28
+ "gradient_accumulate_steps": 8,
29
+ "group_size": 128,
30
+ "iters": 200,
31
+ "low_gpu_mem_usage": false,
32
+ "lr": 0.005,
33
+ "minmax_lr": 0.005,
34
+ "nsamples": 128,
35
+ "backend": "auto_round:gptq",
36
+ "quant_method": "intel/auto-round",
37
+ "scale_dtype": "torch.float16",
38
+ "seqlen": 2048,
39
+ "sym": true,
40
+ "true_sequential": false
41
+ },
42
+ "text_config": {
43
+ "attention_bias": false,
44
+ "attention_dropout": 0.0,
45
+ "attn_logit_softcapping": null,
46
+ "cache_implementation": "hybrid",
47
+ "final_logit_softcapping": null,
48
+ "head_dim": 128,
49
+ "hidden_activation": "gelu_pytorch_tanh",
50
+ "hidden_size": 5376,
51
+ "initializer_range": 0.02,
52
+ "intermediate_size": 21504,
53
+ "max_position_embeddings": 131072,
54
+ "model_type": "gemma3_text",
55
+ "num_attention_heads": 32,
56
+ "num_hidden_layers": 62,
57
+ "num_key_value_heads": 16,
58
+ "query_pre_attn_scalar": 168,
59
+ "rms_norm_eps": 1e-06,
60
+ "rope_local_base_freq": 10000.0,
61
+ "rope_scaling": {
62
+ "factor": 8.0,
63
+ "rope_type": "linear"
64
+ },
65
+ "rope_theta": 1000000.0,
66
+ "sliding_window": 1024,
67
+ "sliding_window_pattern": 6,
68
+ "use_cache": true,
69
+ "vocab_size": 262208
70
+ },
71
+ "torch_dtype": "float16",
72
+ "transformers_version": "4.50.0.dev0",
73
+ "vision_config": {
74
+ "attention_dropout": 0.0,
75
+ "hidden_act": "gelu_pytorch_tanh",
76
+ "hidden_size": 1152,
77
+ "image_size": 896,
78
+ "intermediate_size": 4304,
79
+ "layer_norm_eps": 1e-06,
80
+ "model_type": "siglip_vision_model",
81
+ "num_attention_heads": 16,
82
+ "num_channels": 3,
83
+ "num_hidden_layers": 27,
84
+ "patch_size": 14,
85
+ "vision_use_head": false
86
+ }
87
+ }
generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "cache_implementation": "hybrid",
5
+ "eos_token_id": [
6
+ 1,
7
+ 106
8
+ ],
9
+ "pad_token_id": 0,
10
+ "transformers_version": "4.50.0.dev0"
11
+ }
model-00001-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ee89b85886eebc2d28d756663e8484ed75cb1f82acdf56860a24873ef1734c6
3
+ size 4988406864
model-00002-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a23037993fbb303e761c8289fdefe3d3fd5e33e13feb43c966245363ca8ca2f8
3
+ size 4999567392
model-00003-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe3d8a4afb3e3f441a1b418e0a3734002f79dc462aa6c61ed7c33a17b71c0f40
3
+ size 4999567504
model-00004-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2efb4abe0b5ecba50181dae414e04a2ce7b8908e4450ecaab0b2a29593288654
3
+ size 1993043392
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
+ }
quantize_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bits": 4,
3
+ "act_bits": 32,
4
+ "group_size": 128,
5
+ "sym": true,
6
+ "data_type": "int",
7
+ "enable_quanted_input": true,
8
+ "enable_minmax_tuning": true,
9
+ "seqlen": 2048,
10
+ "batch_size": 1,
11
+ "scale_dtype": "torch.float16",
12
+ "lr": 0.005,
13
+ "minmax_lr": 0.005,
14
+ "gradient_accumulate_steps": 8,
15
+ "iters": 200,
16
+ "amp": true,
17
+ "nsamples": 128,
18
+ "low_gpu_mem_usage": false,
19
+ "enable_norm_bias_tuning": false,
20
+ "autoround_version": "0.4.6",
21
+ "block_name_to_quantize": "language_model.model.layers",
22
+ "quant_method": "gptq",
23
+ "desc_act": false,
24
+ "true_sequential": false,
25
+ "damp_percent": 0.01
26
+ }
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.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