Pushing merged model to Hugging Face Hub
Browse files- README.md +45 -196
- added_tokens.json +1 -3
- config.json +6 -6
- mergekit_config.yml +16 -0
- model.safetensors +2 -2
- special_tokens_map.json +21 -19
- tokenizer.json +2 -2
- tokenizer_config.json +5 -26
README.md
CHANGED
@@ -1,199 +1,48 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
2 |
library_name: transformers
|
3 |
-
tags:
|
4 |
-
|
5 |
-
|
6 |
-
# Model Card for Model ID
|
7 |
-
|
8 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
## Model Details
|
13 |
-
|
14 |
-
### Model Description
|
15 |
-
|
16 |
-
<!-- Provide a longer summary of what this model is. -->
|
17 |
-
|
18 |
-
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
19 |
-
|
20 |
-
- **Developed by:** [More Information Needed]
|
21 |
-
- **Funded by [optional]:** [More Information Needed]
|
22 |
-
- **Shared by [optional]:** [More Information Needed]
|
23 |
-
- **Model type:** [More Information Needed]
|
24 |
-
- **Language(s) (NLP):** [More Information Needed]
|
25 |
-
- **License:** [More Information Needed]
|
26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
27 |
-
|
28 |
-
### Model Sources [optional]
|
29 |
-
|
30 |
-
<!-- Provide the basic links for the model. -->
|
31 |
-
|
32 |
-
- **Repository:** [More Information Needed]
|
33 |
-
- **Paper [optional]:** [More Information Needed]
|
34 |
-
- **Demo [optional]:** [More Information Needed]
|
35 |
-
|
36 |
-
## Uses
|
37 |
-
|
38 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
39 |
-
|
40 |
-
### Direct Use
|
41 |
-
|
42 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
43 |
-
|
44 |
-
[More Information Needed]
|
45 |
-
|
46 |
-
### Downstream Use [optional]
|
47 |
-
|
48 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
49 |
-
|
50 |
-
[More Information Needed]
|
51 |
-
|
52 |
-
### Out-of-Scope Use
|
53 |
-
|
54 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
55 |
-
|
56 |
-
[More Information Needed]
|
57 |
-
|
58 |
-
## Bias, Risks, and Limitations
|
59 |
-
|
60 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
61 |
-
|
62 |
-
[More Information Needed]
|
63 |
-
|
64 |
-
### Recommendations
|
65 |
-
|
66 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
67 |
-
|
68 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
69 |
-
|
70 |
-
## How to Get Started with the Model
|
71 |
-
|
72 |
-
Use the code below to get started with the model.
|
73 |
-
|
74 |
-
[More Information Needed]
|
75 |
-
|
76 |
-
## Training Details
|
77 |
-
|
78 |
-
### Training Data
|
79 |
-
|
80 |
-
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
81 |
-
|
82 |
-
[More Information Needed]
|
83 |
-
|
84 |
-
### Training Procedure
|
85 |
-
|
86 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
87 |
-
|
88 |
-
#### Preprocessing [optional]
|
89 |
-
|
90 |
-
[More Information Needed]
|
91 |
-
|
92 |
-
|
93 |
-
#### Training Hyperparameters
|
94 |
-
|
95 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
96 |
-
|
97 |
-
#### Speeds, Sizes, Times [optional]
|
98 |
-
|
99 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
100 |
-
|
101 |
-
[More Information Needed]
|
102 |
-
|
103 |
-
## Evaluation
|
104 |
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
[
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
[
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
144 |
-
|
145 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
146 |
-
|
147 |
-
- **Hardware Type:** [More Information Needed]
|
148 |
-
- **Hours used:** [More Information Needed]
|
149 |
-
- **Cloud Provider:** [More Information Needed]
|
150 |
-
- **Compute Region:** [More Information Needed]
|
151 |
-
- **Carbon Emitted:** [More Information Needed]
|
152 |
-
|
153 |
-
## Technical Specifications [optional]
|
154 |
-
|
155 |
-
### Model Architecture and Objective
|
156 |
-
|
157 |
-
[More Information Needed]
|
158 |
-
|
159 |
-
### Compute Infrastructure
|
160 |
-
|
161 |
-
[More Information Needed]
|
162 |
-
|
163 |
-
#### Hardware
|
164 |
-
|
165 |
-
[More Information Needed]
|
166 |
-
|
167 |
-
#### Software
|
168 |
-
|
169 |
-
[More Information Needed]
|
170 |
-
|
171 |
-
## Citation [optional]
|
172 |
-
|
173 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
174 |
-
|
175 |
-
**BibTeX:**
|
176 |
-
|
177 |
-
[More Information Needed]
|
178 |
-
|
179 |
-
**APA:**
|
180 |
-
|
181 |
-
[More Information Needed]
|
182 |
-
|
183 |
-
## Glossary [optional]
|
184 |
-
|
185 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
186 |
-
|
187 |
-
[More Information Needed]
|
188 |
-
|
189 |
-
## More Information [optional]
|
190 |
-
|
191 |
-
[More Information Needed]
|
192 |
-
|
193 |
-
## Model Card Authors [optional]
|
194 |
-
|
195 |
-
[More Information Needed]
|
196 |
-
|
197 |
-
## Model Card Contact
|
198 |
-
|
199 |
-
[More Information Needed]
|
|
|
1 |
---
|
2 |
+
base_model:
|
3 |
+
- google/gemma-3-1b-pt
|
4 |
+
- TheMockingJay1013/gemma-3-sft-peft-dare
|
5 |
+
- TheMockingJay1013/gemma-3-peft-safe
|
6 |
library_name: transformers
|
7 |
+
tags:
|
8 |
+
- mergekit
|
9 |
+
- merge
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
+
---
|
12 |
+
# merged
|
13 |
+
|
14 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
15 |
+
|
16 |
+
## Merge Details
|
17 |
+
### Merge Method
|
18 |
+
|
19 |
+
This model was merged using the [Task Arithmetic](https://arxiv.org/abs/2212.04089) merge method using [google/gemma-3-1b-pt](https://huggingface.co/google/gemma-3-1b-pt) as a base.
|
20 |
+
|
21 |
+
### Models Merged
|
22 |
+
|
23 |
+
The following models were included in the merge:
|
24 |
+
* [TheMockingJay1013/gemma-3-sft-peft-dare](https://huggingface.co/TheMockingJay1013/gemma-3-sft-peft-dare)
|
25 |
+
* [TheMockingJay1013/gemma-3-peft-safe](https://huggingface.co/TheMockingJay1013/gemma-3-peft-safe)
|
26 |
+
|
27 |
+
### Configuration
|
28 |
+
|
29 |
+
The following YAML configuration was used to produce this model:
|
30 |
+
|
31 |
+
```yaml
|
32 |
+
base_model: google/gemma-3-1b-pt
|
33 |
+
merge_method: task_arithmetic
|
34 |
+
modules:
|
35 |
+
default:
|
36 |
+
slices:
|
37 |
+
- sources:
|
38 |
+
- layer_range: [0, 26]
|
39 |
+
model: TheMockingJay1013/gemma-3-sft-peft-dare
|
40 |
+
parameters:
|
41 |
+
weight: 1.0
|
42 |
+
- layer_range: [0, 26]
|
43 |
+
model: TheMockingJay1013/gemma-3-peft-safe
|
44 |
+
parameters:
|
45 |
+
weight: 1.0
|
46 |
+
- layer_range: [0, 26]
|
47 |
+
model: google/gemma-3-1b-pt
|
48 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
added_tokens.json
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
{
|
2 |
-
"<image_soft_token>": 262144
|
3 |
-
"<|im_end|>": 262146,
|
4 |
-
"<|im_start|>": 262145
|
5 |
}
|
|
|
1 |
{
|
2 |
+
"<image_soft_token>": 262144
|
|
|
|
|
3 |
}
|
config.json
CHANGED
@@ -5,9 +5,9 @@
|
|
5 |
"attention_bias": false,
|
6 |
"attention_dropout": 0.0,
|
7 |
"attn_logit_softcapping": null,
|
8 |
-
"bos_token_id":
|
9 |
"cache_implementation": "hybrid",
|
10 |
-
"eos_token_id":
|
11 |
"final_logit_softcapping": null,
|
12 |
"head_dim": 256,
|
13 |
"hidden_activation": "gelu_pytorch_tanh",
|
@@ -19,7 +19,7 @@
|
|
19 |
"num_attention_heads": 4,
|
20 |
"num_hidden_layers": 26,
|
21 |
"num_key_value_heads": 1,
|
22 |
-
"pad_token_id":
|
23 |
"query_pre_attn_scalar": 256,
|
24 |
"rms_norm_eps": 1e-06,
|
25 |
"rope_local_base_freq": 10000,
|
@@ -27,8 +27,8 @@
|
|
27 |
"rope_theta": 1000000,
|
28 |
"sliding_window": 512,
|
29 |
"sliding_window_pattern": 6,
|
30 |
-
"torch_dtype": "
|
31 |
-
"transformers_version": "4.
|
32 |
"use_cache": true,
|
33 |
-
"vocab_size":
|
34 |
}
|
|
|
5 |
"attention_bias": false,
|
6 |
"attention_dropout": 0.0,
|
7 |
"attn_logit_softcapping": null,
|
8 |
+
"bos_token_id": 2,
|
9 |
"cache_implementation": "hybrid",
|
10 |
+
"eos_token_id": 1,
|
11 |
"final_logit_softcapping": null,
|
12 |
"head_dim": 256,
|
13 |
"hidden_activation": "gelu_pytorch_tanh",
|
|
|
19 |
"num_attention_heads": 4,
|
20 |
"num_hidden_layers": 26,
|
21 |
"num_key_value_heads": 1,
|
22 |
+
"pad_token_id": 0,
|
23 |
"query_pre_attn_scalar": 256,
|
24 |
"rms_norm_eps": 1e-06,
|
25 |
"rope_local_base_freq": 10000,
|
|
|
27 |
"rope_theta": 1000000,
|
28 |
"sliding_window": 512,
|
29 |
"sliding_window_pattern": 6,
|
30 |
+
"torch_dtype": "bfloat16",
|
31 |
+
"transformers_version": "4.51.1",
|
32 |
"use_cache": true,
|
33 |
+
"vocab_size": 262144
|
34 |
}
|
mergekit_config.yml
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
base_model: google/gemma-3-1b-pt
|
2 |
+
merge_method: task_arithmetic
|
3 |
+
modules:
|
4 |
+
default:
|
5 |
+
slices:
|
6 |
+
- sources:
|
7 |
+
- layer_range: [0, 26]
|
8 |
+
model: TheMockingJay1013/gemma-3-sft-peft-dare
|
9 |
+
parameters:
|
10 |
+
weight: 1.0
|
11 |
+
- layer_range: [0, 26]
|
12 |
+
model: TheMockingJay1013/gemma-3-peft-safe
|
13 |
+
parameters:
|
14 |
+
weight: 1.0
|
15 |
+
- layer_range: [0, 26]
|
16 |
+
model: google/gemma-3-1b-pt
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:26b87f21d3cb75d8d7e394fb37a14e1c58def00c1e45ee9a675a8d01adee38a5
|
3 |
+
size 2603791264
|
special_tokens_map.json
CHANGED
@@ -1,26 +1,28 @@
|
|
1 |
{
|
2 |
-
"additional_special_tokens": [
|
3 |
-
{
|
4 |
-
"content": "<|im_start|>",
|
5 |
-
"lstrip": false,
|
6 |
-
"normalized": false,
|
7 |
-
"rstrip": false,
|
8 |
-
"single_word": false
|
9 |
-
},
|
10 |
-
{
|
11 |
-
"content": "<|im_end|>",
|
12 |
-
"lstrip": false,
|
13 |
-
"normalized": false,
|
14 |
-
"rstrip": false,
|
15 |
-
"single_word": false
|
16 |
-
}
|
17 |
-
],
|
18 |
"boi_token": "<start_of_image>",
|
19 |
-
"bos_token":
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
"eoi_token": "<end_of_image>",
|
21 |
-
"eos_token":
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
"image_token": "<image_soft_token>",
|
23 |
-
"pad_token":
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
"unk_token": {
|
25 |
"content": "<unk>",
|
26 |
"lstrip": false,
|
|
|
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,
|
tokenizer.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7d4046bf0505a327dd5a0abbb427ecd4fc82f99c2ceaa170bc61ecde12809b0c
|
3 |
+
size 33384570
|
tokenizer_config.json
CHANGED
@@ -2160,7 +2160,7 @@
|
|
2160 |
"normalized": false,
|
2161 |
"rstrip": false,
|
2162 |
"single_word": false,
|
2163 |
-
"special":
|
2164 |
},
|
2165 |
"256000": {
|
2166 |
"content": "<end_of_image>",
|
@@ -2168,7 +2168,7 @@
|
|
2168 |
"normalized": false,
|
2169 |
"rstrip": false,
|
2170 |
"single_word": false,
|
2171 |
-
"special":
|
2172 |
},
|
2173 |
"256001": {
|
2174 |
"content": "<unused99>",
|
@@ -51321,34 +51321,13 @@
|
|
51321 |
"rstrip": false,
|
51322 |
"single_word": false,
|
51323 |
"special": true
|
51324 |
-
},
|
51325 |
-
"262145": {
|
51326 |
-
"content": "<|im_start|>",
|
51327 |
-
"lstrip": false,
|
51328 |
-
"normalized": false,
|
51329 |
-
"rstrip": false,
|
51330 |
-
"single_word": false,
|
51331 |
-
"special": true
|
51332 |
-
},
|
51333 |
-
"262146": {
|
51334 |
-
"content": "<|im_end|>",
|
51335 |
-
"lstrip": false,
|
51336 |
-
"normalized": false,
|
51337 |
-
"rstrip": false,
|
51338 |
-
"single_word": false,
|
51339 |
-
"special": true
|
51340 |
}
|
51341 |
},
|
51342 |
-
"additional_special_tokens": [
|
51343 |
-
"<|im_start|>",
|
51344 |
-
"<|im_end|>"
|
51345 |
-
],
|
51346 |
"boi_token": "<start_of_image>",
|
51347 |
-
"bos_token": "
|
51348 |
-
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
51349 |
"clean_up_tokenization_spaces": false,
|
51350 |
"eoi_token": "<end_of_image>",
|
51351 |
-
"eos_token": "
|
51352 |
"extra_special_tokens": {
|
51353 |
"boi_token": "<start_of_image>",
|
51354 |
"eoi_token": "<end_of_image>",
|
@@ -51356,7 +51335,7 @@
|
|
51356 |
},
|
51357 |
"image_token": "<image_soft_token>",
|
51358 |
"model_max_length": 1000000000000000019884624838656,
|
51359 |
-
"pad_token": "
|
51360 |
"sp_model_kwargs": null,
|
51361 |
"spaces_between_special_tokens": false,
|
51362 |
"tokenizer_class": "GemmaTokenizer",
|
|
|
2160 |
"normalized": false,
|
2161 |
"rstrip": false,
|
2162 |
"single_word": false,
|
2163 |
+
"special": false
|
2164 |
},
|
2165 |
"256000": {
|
2166 |
"content": "<end_of_image>",
|
|
|
2168 |
"normalized": false,
|
2169 |
"rstrip": false,
|
2170 |
"single_word": false,
|
2171 |
+
"special": false
|
2172 |
},
|
2173 |
"256001": {
|
2174 |
"content": "<unused99>",
|
|
|
51321 |
"rstrip": false,
|
51322 |
"single_word": false,
|
51323 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51324 |
}
|
51325 |
},
|
|
|
|
|
|
|
|
|
51326 |
"boi_token": "<start_of_image>",
|
51327 |
+
"bos_token": "<bos>",
|
|
|
51328 |
"clean_up_tokenization_spaces": false,
|
51329 |
"eoi_token": "<end_of_image>",
|
51330 |
+
"eos_token": "<eos>",
|
51331 |
"extra_special_tokens": {
|
51332 |
"boi_token": "<start_of_image>",
|
51333 |
"eoi_token": "<end_of_image>",
|
|
|
51335 |
},
|
51336 |
"image_token": "<image_soft_token>",
|
51337 |
"model_max_length": 1000000000000000019884624838656,
|
51338 |
+
"pad_token": "<pad>",
|
51339 |
"sp_model_kwargs": null,
|
51340 |
"spaces_between_special_tokens": false,
|
51341 |
"tokenizer_class": "GemmaTokenizer",
|