zelk12 commited on
Commit
cd4ef28
·
verified ·
1 Parent(s): 1a3afdc

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
+ # MT-Gen2-gemma-3-12B
20
+
21
+ MT-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.5
38
+
39
+ - model: soob3123/amoral-gemma3-12B-v2
40
+ parameters:
41
+ density: 0.5
42
+ weight: 0.5
43
+
44
+ - model: zelk12/MT1-gemma-3-12B
45
+ parameters:
46
+ density: 0.5
47
+ weight: 0.5
48
+
49
+ - model: IlyaGusev/saiga_gemma3_12b
50
+ parameters:
51
+ density: 0.5
52
+ weight: 0.5
53
+
54
+ - model: TheDrummer/Fallen-Gemma3-12B-v1
55
+ parameters:
56
+ density: 0.5
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/MT-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,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "attention_bias": false,
17
+ "attention_dropout": 0.0,
18
+ "attn_logit_softcapping": null,
19
+ "cache_implementation": "hybrid",
20
+ "final_logit_softcapping": null,
21
+ "head_dim": 256,
22
+ "hidden_activation": "gelu_pytorch_tanh",
23
+ "hidden_size": 3840,
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 15360,
26
+ "max_position_embeddings": 131072,
27
+ "model_type": "gemma3_text",
28
+ "num_attention_heads": 16,
29
+ "num_hidden_layers": 48,
30
+ "num_key_value_heads": 8,
31
+ "query_pre_attn_scalar": 256,
32
+ "rms_norm_eps": 1e-06,
33
+ "rope_local_base_freq": 10000.0,
34
+ "rope_scaling": {
35
+ "factor": 8.0,
36
+ "rope_type": "linear"
37
+ },
38
+ "rope_theta": 1000000.0,
39
+ "sliding_window": 1024,
40
+ "sliding_window_pattern": 6,
41
+ "use_cache": true,
42
+ "vocab_size": 262208
43
+ },
44
+ "torch_dtype": "bfloat16",
45
+ "transformers_version": "4.52.3",
46
+ "vision_config": {
47
+ "attention_dropout": 0.0,
48
+ "hidden_act": "gelu_pytorch_tanh",
49
+ "hidden_size": 1152,
50
+ "image_size": 896,
51
+ "intermediate_size": 4304,
52
+ "layer_norm_eps": 1e-06,
53
+ "model_type": "siglip_vision_model",
54
+ "num_attention_heads": 16,
55
+ "num_channels": 3,
56
+ "num_hidden_layers": 27,
57
+ "patch_size": 14,
58
+ "vision_use_head": false
59
+ }
60
+ }
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.5
9
+
10
+ - model: soob3123/amoral-gemma3-12B-v2
11
+ parameters:
12
+ density: 0.5
13
+ weight: 0.5
14
+
15
+ - model: zelk12/MT1-gemma-3-12B
16
+ parameters:
17
+ density: 0.5
18
+ weight: 0.5
19
+
20
+ - model: IlyaGusev/saiga_gemma3_12b
21
+ parameters:
22
+ density: 0.5
23
+ weight: 0.5
24
+
25
+ - model: TheDrummer/Fallen-Gemma3-12B-v1
26
+ parameters:
27
+ density: 0.5
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:6c04d8d7b529911c021720217713162fdb815645219e9e675089b05d3e0ff4c4
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:7ba0904e1749239c10f85d8af49bbe7b32623bfe924d2259af0e8b76f2a23417
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:e20084d73c9cfaa8e76d56c7d687610fdd699ed83df72f6d08a403bd82566d4b
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:5d73a890c90cb101a25ea0ba7bbbf0f20fc01726562296963ce7f3730a76fcbf
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:a6d29afa0a3990dcaad3c9c42e8c588c527876916590e242a0d7c9e7ae3809b2
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