Barry Kang commited on
Commit
fd74c3f
·
1 Parent(s): 6a74f91

DeepSeek-R1 W4AFP8

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +71 -0
  2. config.json +61 -0
  3. configuration_deepseek.py +210 -0
  4. generation_config.json +9 -0
  5. hf_quant_config.json +6 -0
  6. model-00001-of-00070.safetensors +3 -0
  7. model-00002-of-00070.safetensors +3 -0
  8. model-00003-of-00070.safetensors +3 -0
  9. model-00004-of-00070.safetensors +3 -0
  10. model-00005-of-00070.safetensors +3 -0
  11. model-00006-of-00070.safetensors +3 -0
  12. model-00007-of-00070.safetensors +3 -0
  13. model-00008-of-00070.safetensors +3 -0
  14. model-00009-of-00070.safetensors +3 -0
  15. model-00010-of-00070.safetensors +3 -0
  16. model-00011-of-00070.safetensors +3 -0
  17. model-00012-of-00070.safetensors +3 -0
  18. model-00013-of-00070.safetensors +3 -0
  19. model-00014-of-00070.safetensors +3 -0
  20. model-00015-of-00070.safetensors +3 -0
  21. model-00016-of-00070.safetensors +3 -0
  22. model-00017-of-00070.safetensors +3 -0
  23. model-00018-of-00070.safetensors +3 -0
  24. model-00019-of-00070.safetensors +3 -0
  25. model-00020-of-00070.safetensors +3 -0
  26. model-00021-of-00070.safetensors +3 -0
  27. model-00022-of-00070.safetensors +3 -0
  28. model-00023-of-00070.safetensors +3 -0
  29. model-00024-of-00070.safetensors +3 -0
  30. model-00025-of-00070.safetensors +3 -0
  31. model-00026-of-00070.safetensors +3 -0
  32. model-00027-of-00070.safetensors +3 -0
  33. model-00028-of-00070.safetensors +3 -0
  34. model-00029-of-00070.safetensors +3 -0
  35. model-00030-of-00070.safetensors +3 -0
  36. model-00031-of-00070.safetensors +3 -0
  37. model-00032-of-00070.safetensors +3 -0
  38. model-00033-of-00070.safetensors +3 -0
  39. model-00034-of-00070.safetensors +3 -0
  40. model-00035-of-00070.safetensors +3 -0
  41. model-00036-of-00070.safetensors +3 -0
  42. model-00037-of-00070.safetensors +3 -0
  43. model-00038-of-00070.safetensors +3 -0
  44. model-00039-of-00070.safetensors +3 -0
  45. model-00040-of-00070.safetensors +3 -0
  46. model-00041-of-00070.safetensors +3 -0
  47. model-00042-of-00070.safetensors +3 -0
  48. model-00043-of-00070.safetensors +3 -0
  49. model-00044-of-00070.safetensors +3 -0
  50. model-00045-of-00070.safetensors +3 -0
.gitattributes CHANGED
@@ -33,3 +33,74 @@ 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
+ model-00062-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
37
+ model-00034-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
38
+ model-00054-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
39
+ model-00033-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
40
+ model-00036-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
41
+ model-00039-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
42
+ model-00041-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
43
+ model-00043-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
44
+ model-00045-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
45
+ model-00015-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
46
+ model-00018-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
47
+ model-00050-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
48
+ model-00053-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
49
+ model-00022-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
50
+ model-00057-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
51
+ model-00005-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
52
+ model-00014-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
53
+ model-00058-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
54
+ model-00009-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
55
+ model-00049-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
56
+ model-00001-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
57
+ model-00047-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
58
+ model-00027-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
59
+ model-00048-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
60
+ model-00055-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
61
+ model-00069-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
62
+ model-00007-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
63
+ model-00017-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
64
+ model-00038-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
65
+ model-00046-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
66
+ model-00070-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
67
+ model-00028-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
68
+ model-00037-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
69
+ model-00013-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
70
+ model-00031-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
71
+ model-00025-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
72
+ model-00002-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
73
+ model-00020-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
74
+ model-00024-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
75
+ model-00026-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
76
+ model-00030-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
77
+ model-00061-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
78
+ model-00011-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
79
+ model-00016-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
80
+ model-00006-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
81
+ model-00042-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
82
+ model-00067-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
83
+ model-00010-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
84
+ model-00029-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
85
+ model-00044-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
86
+ model-00051-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
87
+ model-00059-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
88
+ model-00008-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
89
+ model-00012-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
90
+ model-00056-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
91
+ model-00066-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
92
+ model-00003-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
93
+ model-00032-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
94
+ model-00035-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
95
+ model-00052-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
96
+ model-00060-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
97
+ model-00064-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
98
+ model-00065-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
99
+ model-00004-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
100
+ model-00021-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
101
+ model-00040-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
102
+ model-00063-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
103
+ model-00068-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
104
+ model-00019-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
105
+ model-00023-of-00070.safetensors filter=lfs diff=lfs merge=lfs -text
106
+ model.safetensors.index.json filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DeepseekV3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "auto_map": {
8
+ "AutoConfig": "configuration_deepseek.DeepseekV3Config",
9
+ "AutoModel": "modeling_deepseek.DeepseekV3Model",
10
+ "AutoModelForCausalLM": "modeling_deepseek.DeepseekV3ForCausalLM"
11
+ },
12
+ "aux_loss_alpha": 0.001,
13
+ "bos_token_id": 0,
14
+ "eos_token_id": 1,
15
+ "ep_size": 1,
16
+ "first_k_dense_replace": 3,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 7168,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 18432,
21
+ "kv_lora_rank": 512,
22
+ "max_position_embeddings": 163840,
23
+ "model_type": "deepseek_v3",
24
+ "moe_intermediate_size": 2048,
25
+ "moe_layer_freq": 1,
26
+ "n_group": 8,
27
+ "n_routed_experts": 256,
28
+ "n_shared_experts": 1,
29
+ "norm_topk_prob": true,
30
+ "num_attention_heads": 128,
31
+ "num_experts_per_tok": 8,
32
+ "num_hidden_layers": 61,
33
+ "num_key_value_heads": 128,
34
+ "num_nextn_predict_layers": 1,
35
+ "pretraining_tp": 1,
36
+ "q_lora_rank": 1536,
37
+ "qk_nope_head_dim": 128,
38
+ "qk_rope_head_dim": 64,
39
+ "rms_norm_eps": 1e-06,
40
+ "rope_scaling": {
41
+ "beta_fast": 32,
42
+ "beta_slow": 1,
43
+ "factor": 40,
44
+ "mscale": 1.0,
45
+ "mscale_all_dim": 1.0,
46
+ "original_max_position_embeddings": 4096,
47
+ "type": "yarn"
48
+ },
49
+ "rope_theta": 10000,
50
+ "routed_scaling_factor": 2.5,
51
+ "scoring_func": "sigmoid",
52
+ "seq_aux": true,
53
+ "tie_word_embeddings": false,
54
+ "topk_group": 4,
55
+ "topk_method": "noaux_tc",
56
+ "torch_dtype": "bfloat16",
57
+ "transformers_version": "4.46.3",
58
+ "use_cache": true,
59
+ "v_head_dim": 128,
60
+ "vocab_size": 129280
61
+ }
configuration_deepseek.py ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers.configuration_utils import PretrainedConfig
2
+ from transformers.utils import logging
3
+
4
+ logger = logging.get_logger(__name__)
5
+
6
+ DEEPSEEK_PRETRAINED_CONFIG_ARCHIVE_MAP = {}
7
+ class DeepseekV3Config(PretrainedConfig):
8
+ r"""
9
+ This is the configuration class to store the configuration of a [`DeepseekV3Model`]. It is used to instantiate an DeepSeek
10
+ model according to the specified arguments, defining the model architecture. Instantiating a configuration with the
11
+ defaults will yield a similar configuration to that of the DeepSeek-V3.
12
+
13
+ Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
14
+ documentation from [`PretrainedConfig`] for more information.
15
+
16
+
17
+ Args:
18
+ vocab_size (`int`, *optional*, defaults to 129280):
19
+ Vocabulary size of the Deep model. Defines the number of different tokens that can be represented by the
20
+ `inputs_ids` passed when calling [`DeepseekV3Model`]
21
+ hidden_size (`int`, *optional*, defaults to 4096):
22
+ Dimension of the hidden representations.
23
+ intermediate_size (`int`, *optional*, defaults to 11008):
24
+ Dimension of the MLP representations.
25
+ moe_intermediate_size (`int`, *optional*, defaults to 1407):
26
+ Dimension of the MoE representations.
27
+ num_hidden_layers (`int`, *optional*, defaults to 32):
28
+ Number of hidden layers in the Transformer decoder.
29
+ num_nextn_predict_layers (`int`, *optional*, defaults to 1):
30
+ Number of nextn predict layers in the DeepSeekV3 Model.
31
+ num_attention_heads (`int`, *optional*, defaults to 32):
32
+ Number of attention heads for each attention layer in the Transformer decoder.
33
+ n_shared_experts (`int`, *optional*, defaults to None):
34
+ Number of shared experts, None means dense model.
35
+ n_routed_experts (`int`, *optional*, defaults to None):
36
+ Number of routed experts, None means dense model.
37
+ routed_scaling_factor (`float`, *optional*, defaults to 1.0):
38
+ Scaling factor or routed experts.
39
+ topk_method (`str`, *optional*, defaults to `gready`):
40
+ Topk method used in routed gate.
41
+ n_group (`int`, *optional*, defaults to None):
42
+ Number of groups for routed experts.
43
+ topk_group (`int`, *optional*, defaults to None):
44
+ Number of selected groups for each token(for each token, ensuring the selected experts is only within `topk_group` groups).
45
+ num_experts_per_tok (`int`, *optional*, defaults to None):
46
+ Number of selected experts, None means dense model.
47
+ moe_layer_freq (`int`, *optional*, defaults to 1):
48
+ The frequency of the MoE layer: one expert layer for every `moe_layer_freq - 1` dense layers.
49
+ first_k_dense_replace (`int`, *optional*, defaults to 0):
50
+ Number of dense layers in shallow layers(embed->dense->dense->...->dense->moe->moe...->lm_head).
51
+ \--k dense layers--/
52
+ norm_topk_prob (`bool`, *optional*, defaults to False):
53
+ Whether to normalize the weights of the routed experts.
54
+ scoring_func (`str`, *optional*, defaults to 'softmax'):
55
+ Method of computing expert weights.
56
+ aux_loss_alpha (`float`, *optional*, defaults to 0.001):
57
+ Auxiliary loss weight coefficient.
58
+ seq_aux = (`bool`, *optional*, defaults to True):
59
+ Whether to compute the auxiliary loss for each individual sample.
60
+ num_key_value_heads (`int`, *optional*):
61
+ This is the number of key_value heads that should be used to implement Grouped Query Attention. If
62
+ `num_key_value_heads=num_attention_heads`, the model will use Multi Head Attention (MHA), if
63
+ `num_key_value_heads=1 the model will use Multi Query Attention (MQA) otherwise GQA is used. When
64
+ converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
65
+ by meanpooling all the original heads within that group. For more details checkout [this
66
+ paper](https://arxiv.org/pdf/2305.13245.pdf). If it is not specified, will default to
67
+ `num_attention_heads`.
68
+ hidden_act (`str` or `function`, *optional*, defaults to `"silu"`):
69
+ The non-linear activation function (function or string) in the decoder.
70
+ max_position_embeddings (`int`, *optional*, defaults to 2048):
71
+ The maximum sequence length that this model might ever be used with.
72
+ initializer_range (`float`, *optional*, defaults to 0.02):
73
+ The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
74
+ rms_norm_eps (`float`, *optional*, defaults to 1e-06):
75
+ The epsilon used by the rms normalization layers.
76
+ use_cache (`bool`, *optional*, defaults to `True`):
77
+ Whether or not the model should return the last key/values attentions (not used by all models). Only
78
+ relevant if `config.is_decoder=True`.
79
+ pad_token_id (`int`, *optional*):
80
+ Padding token id.
81
+ bos_token_id (`int`, *optional*, defaults to 1):
82
+ Beginning of stream token id.
83
+ eos_token_id (`int`, *optional*, defaults to 2):
84
+ End of stream token id.
85
+ pretraining_tp (`int`, *optional*, defaults to 1):
86
+ Experimental feature. Tensor parallelism rank used during pretraining. Please refer to [this
87
+ document](https://huggingface.co/docs/transformers/parallelism) to understand more about it. This value is
88
+ necessary to ensure exact reproducibility of the pretraining results. Please refer to [this
89
+ issue](https://github.com/pytorch/pytorch/issues/76232).
90
+ tie_word_embeddings (`bool`, *optional*, defaults to `False`):
91
+ Whether to tie weight embeddings
92
+ rope_theta (`float`, *optional*, defaults to 10000.0):
93
+ The base period of the RoPE embeddings.
94
+ rope_scaling (`Dict`, *optional*):
95
+ Dictionary containing the scaling configuration for the RoPE embeddings. Currently supports two scaling
96
+ strategies: linear and dynamic. Their scaling factor must be a float greater than 1. The expected format is
97
+ `{"type": strategy name, "factor": scaling factor}`. When using this flag, don't update
98
+ `max_position_embeddings` to the expected new maximum.
99
+ attention_bias (`bool`, defaults to `False`, *optional*, defaults to `False`):
100
+ Whether to use a bias in the query, key, value and output projection layers during self-attention.
101
+ attention_dropout (`float`, *optional*, defaults to 0.0):
102
+ The dropout ratio for the attention probabilities.
103
+
104
+ ```python
105
+ >>> from transformers import DeepseekV3Model, DeepseekV3Config
106
+
107
+ >>> # Initializing a Deepseek-V3 style configuration
108
+ >>> configuration = DeepseekV3Config()
109
+
110
+ >>> # Accessing the model configuration
111
+ >>> configuration = model.config
112
+ ```"""
113
+
114
+ model_type = "deepseek_v3"
115
+ keys_to_ignore_at_inference = ["past_key_values"]
116
+
117
+ def __init__(
118
+ self,
119
+ vocab_size=129280,
120
+ hidden_size=7168,
121
+ intermediate_size=18432,
122
+ moe_intermediate_size = 2048,
123
+ num_hidden_layers=61,
124
+ num_nextn_predict_layers=1,
125
+ num_attention_heads=128,
126
+ num_key_value_heads=128,
127
+ n_shared_experts = 1,
128
+ n_routed_experts = 256,
129
+ ep_size = 1,
130
+ routed_scaling_factor = 2.5,
131
+ kv_lora_rank = 512,
132
+ q_lora_rank = 1536,
133
+ qk_rope_head_dim = 64,
134
+ v_head_dim = 128,
135
+ qk_nope_head_dim = 128,
136
+ topk_method = 'noaux_tc',
137
+ n_group = 8,
138
+ topk_group = 4,
139
+ num_experts_per_tok = 8,
140
+ moe_layer_freq = 1,
141
+ first_k_dense_replace = 3,
142
+ norm_topk_prob = True,
143
+ scoring_func = 'sigmoid',
144
+ aux_loss_alpha = 0.001,
145
+ seq_aux = True,
146
+ hidden_act="silu",
147
+ max_position_embeddings=4096,
148
+ initializer_range=0.02,
149
+ rms_norm_eps=1e-6,
150
+ use_cache=True,
151
+ pad_token_id=None,
152
+ bos_token_id=0,
153
+ eos_token_id=1,
154
+ pretraining_tp=1,
155
+ tie_word_embeddings=False,
156
+ rope_theta=10000.0,
157
+ rope_scaling=None,
158
+ attention_bias=False,
159
+ attention_dropout=0.0,
160
+ **kwargs,
161
+ ):
162
+ self.vocab_size = vocab_size
163
+ self.max_position_embeddings = max_position_embeddings
164
+ self.hidden_size = hidden_size
165
+ self.intermediate_size = intermediate_size
166
+ self.moe_intermediate_size = moe_intermediate_size
167
+ self.num_hidden_layers = num_hidden_layers
168
+ self.num_nextn_predict_layers = num_nextn_predict_layers
169
+ self.num_attention_heads = num_attention_heads
170
+ self.n_shared_experts = n_shared_experts
171
+ self.n_routed_experts = n_routed_experts
172
+ self.ep_size = ep_size
173
+ self.routed_scaling_factor = routed_scaling_factor
174
+ self.kv_lora_rank = kv_lora_rank
175
+ self.q_lora_rank = q_lora_rank
176
+ self.qk_rope_head_dim = qk_rope_head_dim
177
+ self.v_head_dim = v_head_dim
178
+ self.qk_nope_head_dim = qk_nope_head_dim
179
+ self.topk_method = topk_method
180
+ self.n_group = n_group
181
+ self.topk_group = topk_group
182
+ self.num_experts_per_tok = num_experts_per_tok
183
+ self.moe_layer_freq = moe_layer_freq
184
+ self.first_k_dense_replace = first_k_dense_replace
185
+ self.norm_topk_prob = norm_topk_prob
186
+ self.scoring_func = scoring_func
187
+ self.aux_loss_alpha = aux_loss_alpha
188
+ self.seq_aux = seq_aux
189
+ # for backward compatibility
190
+ if num_key_value_heads is None:
191
+ num_key_value_heads = num_attention_heads
192
+
193
+ self.num_key_value_heads = num_key_value_heads
194
+ self.hidden_act = hidden_act
195
+ self.initializer_range = initializer_range
196
+ self.rms_norm_eps = rms_norm_eps
197
+ self.pretraining_tp = pretraining_tp
198
+ self.use_cache = use_cache
199
+ self.rope_theta = rope_theta
200
+ self.rope_scaling = rope_scaling
201
+ self.attention_bias = attention_bias
202
+ self.attention_dropout = attention_dropout
203
+
204
+ super().__init__(
205
+ pad_token_id=pad_token_id,
206
+ bos_token_id=bos_token_id,
207
+ eos_token_id=eos_token_id,
208
+ tie_word_embeddings=tie_word_embeddings,
209
+ **kwargs,
210
+ )
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "do_sample": true,
6
+ "temperature": 0.6,
7
+ "top_p": 0.95,
8
+ "transformers_version": "4.39.3"
9
+ }
hf_quant_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "quantization": {
3
+ "quant_algo": "MIXED_PRECISION",
4
+ "kv_cache_quant_algo": null
5
+ }
6
+ }
model-00001-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b42db19a504026648da4b1b8500ee2bfc8aeea8441f180c965fe5f058483676
3
+ size 5375122560
model-00002-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0b75befc14c66df3798392064f6180875fb0a900d99c90ea970455cfe933420
3
+ size 5374473296
model-00003-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fab96fd58712d1daee8192a091ae429af9e1cbeebd76e54f4e9d4b03b645c820
3
+ size 5373515312
model-00004-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3325b75519fc8c9047ce95468f10bba81936e81ab9d5ecdddd1cf119ec37341
3
+ size 5374493632
model-00005-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e223043bc7216865d5165c1bf52782e77ff4575e5894aacc3b6462d43bd2638
3
+ size 5374473080
model-00006-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3c65550538c86af0ffb9eb39b971eae84c6239734bf908c414fba7ef7c9afb4
3
+ size 5374473080
model-00007-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85c34881a41344ea393fbadb7c26cd87f3874e9d70e697bc87582fabc298843e
3
+ size 5374473080
model-00008-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f6acb6b536bb215355e4d70c8bd1ec7f9feb52e6e73fda2aac7861c5bd69ae9
3
+ size 5374473216
model-00009-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f39cd82596458621ea958a41bc11b1879abd1e39a3f35e987bf1562279964910
3
+ size 5374473544
model-00010-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93adc2af8db76ccc7186399cf6f524d03710ffbd49e0a667191d9ddc9a42ec51
3
+ size 5374474672
model-00011-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61fc500a96af6397de88bdc4047efb592e53834b976f39c2f6250f2f8e96f60f
3
+ size 5373537064
model-00012-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a94222184de72d8ac0ed6d8d62206352b3330232eef77d268b46dcf27b80b5f4
3
+ size 5374474416
model-00013-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd129c46a003122df3acf84083e73701172b8df6e1749519935091f603caaa10
3
+ size 5374474424
model-00014-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b4503c3102cbbb1fc80e98a24ee1380c26c2032349744bc3b13b0da6c0457bf
3
+ size 5374474424
model-00015-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:792a56918829b5fd0bee31baa860c2372aab77274b3820f6bf6d7e13d322a8df
3
+ size 5374474488
model-00016-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:288676ca5b3f885aea72e3a0d78666f7c6b67a572cb1d4cba34f12dedaa8df4e
3
+ size 5374474640
model-00017-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ade870e5a1134ca5ec43d3c57dc781f7ee0af840b2604af088d16cc913aeff01
3
+ size 5374474640
model-00018-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2b6eb11b0b538de73975a4ed729b54a1b90682d3f8c9501755ff2e2186319ce
3
+ size 5373537160
model-00019-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15e58ad0b4174aa39f6fdd0d723801a51578610b89481032f7aa2957bedfc1cf
3
+ size 5374474424
model-00020-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:658dbfd58a62a7e83acb4ab22dca86f6a7f625f9e9d097481c78ea7cf4a55ccf
3
+ size 5374474424
model-00021-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3d8840851e235455f28c0d96757521dafdbca9ade1e85ddbfb170178cacf0e3
3
+ size 5374474416
model-00022-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11a67749d430653adb1c81bfd28a138af73e5c48d7fd106374c28f87c8a3e210
3
+ size 5374474424
model-00023-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5dd501d20b71120abc6b0c5e8bc152d72670c682af6e1ed41d38b753b1dc754f
3
+ size 5374474632
model-00024-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a768b0182b09fb0f4590b53f83fc504d93ea660ca88901c4011d73cea433d2e9
3
+ size 5374474640
model-00025-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61347e03a6da4a0c29770343af059ed7053a57808bdf64559e8ea48d3f0d591a
3
+ size 5383794864
model-00026-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a60dd5163269d273a256012fae0021e9d9350dd879b8b26e85ecc587b10897b
3
+ size 5372015832
model-00027-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15d475513fc36d68b34ba172ff4a9ac2ae943668570792ed321c77a0f50bf4b7
3
+ size 5374474424
model-00028-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:394f41d9671217451fe8fc284e1a5bbcc4a58e28eba1ca16de8cac70c32edb03
3
+ size 5374474416
model-00029-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d4fec8962fea815f11f18e61dc8303ef65c0964679fe65faf1d77610a70a440
3
+ size 5374474424
model-00030-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e9e4a428d1ae99fc39df2df4c01ccc874b4bfbbf578c7eada0d148b8c9c45e0
3
+ size 5374474560
model-00031-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc9e619d086059c4eeb5894d8c61e2a2376221a265a14abbbea6006511358a49
3
+ size 5374474640
model-00032-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f712e57e9a4a9ae3fe0243ac1c8d246a534d733a8c8c3171d371429b9379a6d
3
+ size 5374474680
model-00033-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b337ab44ba4848bab371fa6b3703b3a0228d3ac251c72e2997fbdc54f72fb823
3
+ size 5373537048
model-00034-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddfa61b0c1188188496f4f208b0055260c07b41082557218ede3e0aa81a6ee6f
3
+ size 5374474416
model-00035-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79832b4a0951adddfd9b29d02431cf361d37bf728e7d3205f7b3573ce01ec97a
3
+ size 5374474424
model-00036-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1804c51ea84e1aca3a2d43e88496b7d30f9490d39e39373e8f7f52a1bf81b3e1
3
+ size 5374474424
model-00037-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88e537324fa8eb5f4782d525e399acbd9049a5753dacfc00b522cd2961905b4a
3
+ size 5374474488
model-00038-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6cf6e5771bd3fcd981bb164d06b8a6582a3a713d324bf5988f27e7dc44b9403
3
+ size 5374474640
model-00039-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:385171ae4fa0c0eb7b6f1592bb6d704d0163711e3b01ce4de162e81d79e09f01
3
+ size 5374474640
model-00040-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0ebf024c5b03d965f4a5140953fe6f1316e16312864ba06767c10648b044bfe
3
+ size 5373537160
model-00041-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82e17a8c4a6ea36bfde2b2069556c9bc104c5a5317c61da5ffff645d0077e0fd
3
+ size 5374474424
model-00042-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd7411063c6f5e9d60629f51537ccddaecfa3721309b7ceb446cd969256e51ab
3
+ size 5374474424
model-00043-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7199bdab9e55da270b610f35873c5b56c60a10d26e8c1cac4be1da5c27d230e9
3
+ size 5374474416
model-00044-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f06c9c59291f9944764a34118ec40aeeaa0bee276052a3cf77bb3d8cc1f6a5f1
3
+ size 5374474424
model-00045-of-00070.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b6bfd68f5f9b74ee934764eb6be15a6efe5011e341c9a02d810881c60962013
3
+ size 5374474640