namgyu-youn commited on
Commit
9329a4c
·
verified ·
1 Parent(s): f42213a

Upload Qwen3MoeForCausalLM

Browse files
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
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]
config.json ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3MoeForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "decoder_sparse_step": 1,
9
+ "dtype": "bfloat16",
10
+ "eos_token_id": 151645,
11
+ "head_dim": 128,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 2048,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 6144,
16
+ "max_position_embeddings": 262144,
17
+ "max_window_layers": 48,
18
+ "mlp_only_layers": [],
19
+ "model_type": "qwen3_moe",
20
+ "moe_intermediate_size": 768,
21
+ "norm_topk_prob": true,
22
+ "num_attention_heads": 32,
23
+ "num_experts": 128,
24
+ "num_experts_per_tok": 8,
25
+ "num_hidden_layers": 48,
26
+ "num_key_value_heads": 4,
27
+ "output_router_logits": false,
28
+ "quantization_config": {
29
+ "include_input_output_embeddings": true,
30
+ "modules_to_not_convert": [],
31
+ "quant_method": "torchao",
32
+ "quant_type": {
33
+ "default": {
34
+ "_data": {
35
+ "fqn_to_config": {
36
+ "_default": {
37
+ "_data": {
38
+ "act_mapping_type": {
39
+ "_data": "ASYMMETRIC",
40
+ "_type": "MappingType"
41
+ },
42
+ "intx_choose_qparams_algorithm": "sinq_scale_only",
43
+ "intx_packing_format": {
44
+ "_data": "UNPACKED_TO_INT8",
45
+ "_type": "IntxPackingFormat"
46
+ },
47
+ "layout": {
48
+ "_data": {},
49
+ "_type": "QDQLayout",
50
+ "_version": 1
51
+ },
52
+ "weight_dtype": {
53
+ "_data": "int4",
54
+ "_type": "torch.dtype"
55
+ },
56
+ "weight_granularity": {
57
+ "_data": {
58
+ "group_size": 32
59
+ },
60
+ "_type": "PerGroup",
61
+ "_version": 1
62
+ },
63
+ "weight_mapping_type": {
64
+ "_data": "SYMMETRIC",
65
+ "_type": "MappingType"
66
+ },
67
+ "weight_scale_dtype": null
68
+ },
69
+ "_type": "Int8DynamicActivationIntxWeightConfig",
70
+ "_version": 2
71
+ },
72
+ "model.embed_tokens": {
73
+ "_data": {
74
+ "granularity": {
75
+ "_data": {
76
+ "group_size": 32
77
+ },
78
+ "_type": "PerGroup",
79
+ "_version": 1
80
+ },
81
+ "intx_choose_qparams_algorithm": "sinq_scale_only",
82
+ "intx_packing_format": {
83
+ "_data": "UNPACKED_TO_INT8",
84
+ "_type": "IntxPackingFormat"
85
+ },
86
+ "layout": {
87
+ "_data": {},
88
+ "_type": "QDQLayout",
89
+ "_version": 1
90
+ },
91
+ "mapping_type": {
92
+ "_data": "SYMMETRIC",
93
+ "_type": "MappingType"
94
+ },
95
+ "scale_dtype": null,
96
+ "weight_dtype": {
97
+ "_data": "int8",
98
+ "_type": "torch.dtype"
99
+ }
100
+ },
101
+ "_type": "IntxWeightOnlyConfig",
102
+ "_version": 2
103
+ }
104
+ },
105
+ "module_fqn_to_config": {
106
+ "_default": {
107
+ "_data": {
108
+ "act_mapping_type": {
109
+ "_data": "ASYMMETRIC",
110
+ "_type": "MappingType"
111
+ },
112
+ "intx_choose_qparams_algorithm": "sinq_scale_only",
113
+ "intx_packing_format": {
114
+ "_data": "UNPACKED_TO_INT8",
115
+ "_type": "IntxPackingFormat"
116
+ },
117
+ "layout": {
118
+ "_data": {},
119
+ "_type": "QDQLayout",
120
+ "_version": 1
121
+ },
122
+ "weight_dtype": {
123
+ "_data": "int4",
124
+ "_type": "torch.dtype"
125
+ },
126
+ "weight_granularity": {
127
+ "_data": {
128
+ "group_size": 32
129
+ },
130
+ "_type": "PerGroup",
131
+ "_version": 1
132
+ },
133
+ "weight_mapping_type": {
134
+ "_data": "SYMMETRIC",
135
+ "_type": "MappingType"
136
+ },
137
+ "weight_scale_dtype": null
138
+ },
139
+ "_type": "Int8DynamicActivationIntxWeightConfig",
140
+ "_version": 2
141
+ },
142
+ "model.embed_tokens": {
143
+ "_data": {
144
+ "granularity": {
145
+ "_data": {
146
+ "group_size": 32
147
+ },
148
+ "_type": "PerGroup",
149
+ "_version": 1
150
+ },
151
+ "intx_choose_qparams_algorithm": "sinq_scale_only",
152
+ "intx_packing_format": {
153
+ "_data": "UNPACKED_TO_INT8",
154
+ "_type": "IntxPackingFormat"
155
+ },
156
+ "layout": {
157
+ "_data": {},
158
+ "_type": "QDQLayout",
159
+ "_version": 1
160
+ },
161
+ "mapping_type": {
162
+ "_data": "SYMMETRIC",
163
+ "_type": "MappingType"
164
+ },
165
+ "scale_dtype": null,
166
+ "weight_dtype": {
167
+ "_data": "int8",
168
+ "_type": "torch.dtype"
169
+ }
170
+ },
171
+ "_type": "IntxWeightOnlyConfig",
172
+ "_version": 2
173
+ }
174
+ }
175
+ },
176
+ "_type": "FqnToConfig",
177
+ "_version": 1
178
+ }
179
+ },
180
+ "quant_type_kwargs": {},
181
+ "untie_embedding_weights": false
182
+ },
183
+ "rms_norm_eps": 1e-06,
184
+ "rope_scaling": null,
185
+ "rope_theta": 10000000,
186
+ "router_aux_loss_coef": 0.001,
187
+ "sliding_window": null,
188
+ "tie_word_embeddings": false,
189
+ "transformers_version": "4.57.3",
190
+ "use_cache": true,
191
+ "use_sliding_window": false,
192
+ "vocab_size": 151936
193
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "temperature": 0.6,
10
+ "top_k": 20,
11
+ "top_p": 0.95,
12
+ "transformers_version": "4.57.3"
13
+ }
pytorch_model-00001-of-00007.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cd86aca9d32bece75a09685ba6ceca957d38979b7ed4653a33ff95d378debf6
3
+ size 5003217319
pytorch_model-00002-of-00007.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdb1c6d54731d5aad2c6589d59729a6fc355527b14b90e2c863af31dcbc81fb1
3
+ size 5002368873
pytorch_model-00003-of-00007.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e2d1de193cf15a2c794b31e5b0d1115a7d132d8b9db8d7bd4f39c6bfb8843c9
3
+ size 5003805413
pytorch_model-00004-of-00007.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e623741eebee5e609b7d33b3fff67e97e0cd4548d310c452691455286f8af52
3
+ size 5003805477
pytorch_model-00005-of-00007.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6431ad3577d5f9b54d48d82f4b42b9bfe14b02c00f47d0c40b65fc20e7363a24
3
+ size 5002370153
pytorch_model-00006-of-00007.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ed46e983a1a646d708fa2d00360140c1590fd26e200b09b47093160b7c4c17c
3
+ size 5003805413
pytorch_model-00007-of-00007.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa8fecb8fe951f8b42a421b3d3ff93e7f582bcfc1b11425f6bc43242eb00a002
3
+ size 3402825985
pytorch_model.bin.index.json ADDED
The diff for this file is too large to render. See raw diff