zelk12 commited on
Commit
9f37a59
·
verified ·
1 Parent(s): b58cd9c

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
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - zelk12/MT-Gen1-gemma-3-12B
4
+ - soob3123/amoral-gemma3-12B-v2
5
+ - zelk12/MT1-gemma-3-12B
6
+ - IlyaGusev/saiga_gemma3_12b
7
+ - TheDrummer/Fallen-Gemma3-12B-v1
8
+ tags:
9
+ - merge
10
+ - mergekit
11
+ - lazymergekit
12
+ - zelk12/MT-Gen1-gemma-3-12B
13
+ - soob3123/amoral-gemma3-12B-v2
14
+ - zelk12/MT1-gemma-3-12B
15
+ - IlyaGusev/saiga_gemma3_12b
16
+ - TheDrummer/Fallen-Gemma3-12B-v1
17
+ ---
18
+
19
+ # MT6-Gen2_gemma-3-12B
20
+
21
+ MT6-Gen2_gemma-3-12B is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
22
+ * [zelk12/MT-Gen1-gemma-3-12B](https://huggingface.co/zelk12/MT-Gen1-gemma-3-12B)
23
+ * [soob3123/amoral-gemma3-12B-v2](https://huggingface.co/soob3123/amoral-gemma3-12B-v2)
24
+ * [zelk12/MT1-gemma-3-12B](https://huggingface.co/zelk12/MT1-gemma-3-12B)
25
+ * [IlyaGusev/saiga_gemma3_12b](https://huggingface.co/IlyaGusev/saiga_gemma3_12b)
26
+ * [TheDrummer/Fallen-Gemma3-12B-v1](https://huggingface.co/TheDrummer/Fallen-Gemma3-12B-v1)
27
+
28
+ ## 🧩 Configuration
29
+
30
+ ```yaml
31
+ models:
32
+ - model: zelk12/MT-gemma-3-12B
33
+ #no parameters necessary for base model
34
+ - model: zelk12/MT-Gen1-gemma-3-12B
35
+ parameters:
36
+ density: 0.5
37
+ weight: 0.8
38
+
39
+ - model: soob3123/amoral-gemma3-12B-v2
40
+ parameters:
41
+ density: 0.639
42
+ weight: 0.66
43
+
44
+ - model: zelk12/MT1-gemma-3-12B
45
+ parameters:
46
+ density: 0.729
47
+ weight: 0.57
48
+
49
+ - model: IlyaGusev/saiga_gemma3_12b
50
+ parameters:
51
+ density: 0.736
52
+ weight: 0.56
53
+
54
+ - model: TheDrummer/Fallen-Gemma3-12B-v1
55
+ parameters:
56
+ density: 0.8
57
+ weight: 0.5
58
+
59
+ merge_method: dare_ties
60
+ base_model: zelk12/MT-gemma-3-12B
61
+ parameters:
62
+ normalize: true
63
+ dtype: bfloat16
64
+ ```
65
+
66
+ ## 💻 Usage
67
+
68
+ ```python
69
+ !pip install -qU transformers accelerate
70
+
71
+ from transformers import AutoTokenizer
72
+ import transformers
73
+ import torch
74
+
75
+ model = "zelk12/MT6-Gen2_gemma-3-12B"
76
+ messages = [{"role": "user", "content": "What is a large language model?"}]
77
+
78
+ tokenizer = AutoTokenizer.from_pretrained(model)
79
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
80
+ pipeline = transformers.pipeline(
81
+ "text-generation",
82
+ model=model,
83
+ torch_dtype=torch.float16,
84
+ device_map="auto",
85
+ )
86
+
87
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
88
+ print(outputs[0]["generated_text"])
89
+ ```
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
config.json ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "text_config": {
16
+ "_sliding_window_pattern": 6,
17
+ "attention_bias": false,
18
+ "attention_dropout": 0.0,
19
+ "attn_logit_softcapping": null,
20
+ "cache_implementation": "hybrid",
21
+ "final_logit_softcapping": null,
22
+ "head_dim": 256,
23
+ "hidden_activation": "gelu_pytorch_tanh",
24
+ "hidden_size": 3840,
25
+ "initializer_range": 0.02,
26
+ "intermediate_size": 15360,
27
+ "layer_types": [
28
+ "sliding_attention",
29
+ "sliding_attention",
30
+ "sliding_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "full_attention",
34
+ "sliding_attention",
35
+ "sliding_attention",
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "full_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "sliding_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "full_attention",
46
+ "sliding_attention",
47
+ "sliding_attention",
48
+ "sliding_attention",
49
+ "sliding_attention",
50
+ "sliding_attention",
51
+ "full_attention",
52
+ "sliding_attention",
53
+ "sliding_attention",
54
+ "sliding_attention",
55
+ "sliding_attention",
56
+ "sliding_attention",
57
+ "full_attention",
58
+ "sliding_attention",
59
+ "sliding_attention",
60
+ "sliding_attention",
61
+ "sliding_attention",
62
+ "sliding_attention",
63
+ "full_attention",
64
+ "sliding_attention",
65
+ "sliding_attention",
66
+ "sliding_attention",
67
+ "sliding_attention",
68
+ "sliding_attention",
69
+ "full_attention",
70
+ "sliding_attention",
71
+ "sliding_attention",
72
+ "sliding_attention",
73
+ "sliding_attention",
74
+ "sliding_attention",
75
+ "full_attention"
76
+ ],
77
+ "max_position_embeddings": 131072,
78
+ "model_type": "gemma3_text",
79
+ "num_attention_heads": 16,
80
+ "num_hidden_layers": 48,
81
+ "num_key_value_heads": 8,
82
+ "query_pre_attn_scalar": 256,
83
+ "rms_norm_eps": 1e-06,
84
+ "rope_local_base_freq": 10000.0,
85
+ "rope_scaling": {
86
+ "factor": 8.0,
87
+ "rope_type": "linear"
88
+ },
89
+ "rope_theta": 1000000.0,
90
+ "sliding_window": 1024,
91
+ "use_cache": true,
92
+ "vocab_size": 262208
93
+ },
94
+ "torch_dtype": "bfloat16",
95
+ "transformers_version": "4.53.2",
96
+ "vision_config": {
97
+ "attention_dropout": 0.0,
98
+ "hidden_act": "gelu_pytorch_tanh",
99
+ "hidden_size": 1152,
100
+ "image_size": 896,
101
+ "intermediate_size": 4304,
102
+ "layer_norm_eps": 1e-06,
103
+ "model_type": "siglip_vision_model",
104
+ "num_attention_heads": 16,
105
+ "num_channels": 3,
106
+ "num_hidden_layers": 27,
107
+ "patch_size": 14,
108
+ "vision_use_head": false
109
+ }
110
+ }
mergekit_config.yml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ models:
3
+ - model: zelk12/MT-gemma-3-12B
4
+ #no parameters necessary for base model
5
+ - model: zelk12/MT-Gen1-gemma-3-12B
6
+ parameters:
7
+ density: 0.5
8
+ weight: 0.8
9
+
10
+ - model: soob3123/amoral-gemma3-12B-v2
11
+ parameters:
12
+ density: 0.639
13
+ weight: 0.66
14
+
15
+ - model: zelk12/MT1-gemma-3-12B
16
+ parameters:
17
+ density: 0.729
18
+ weight: 0.57
19
+
20
+ - model: IlyaGusev/saiga_gemma3_12b
21
+ parameters:
22
+ density: 0.736
23
+ weight: 0.56
24
+
25
+ - model: TheDrummer/Fallen-Gemma3-12B-v1
26
+ parameters:
27
+ density: 0.8
28
+ weight: 0.5
29
+
30
+ merge_method: dare_ties
31
+ base_model: zelk12/MT-gemma-3-12B
32
+ parameters:
33
+ normalize: true
34
+ dtype: bfloat16
model-00001-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7a05cf24f7216b5b1a9ce5c63a035dc5c99af4b6e679baf76641aab42a5210c
3
+ size 4939493432
model-00002-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ecae86ef2ef088290ac3387c6fd2e76c8918d9a612338c6c6503931c603834ce
3
+ size 4931296656
model-00003-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81f38ca8e14f64addd7d89f53339e6192600e9959f457d77d7a15d81f7863c69
3
+ size 4931296656
model-00004-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ab386d7c94bb149d73bf4f92592f329db560b9d4ad056e88f073d1576935808
3
+ size 4931296656
model-00005-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d873b783dedbd2dbf2e1a205f6c9e2818d907c8bcf5aa38438ee6954c180bdd
3
+ size 4641409680
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": "<end_of_turn>",
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