Initial upload of alquistcoder_F1_MAIN_DPO model files
Browse files- .gitattributes +1 -0
- added_tokens.json +12 -0
- chat_template.jinja +1 -0
- config.json +143 -0
- configuration_phi3.py +226 -0
- generation_config.json +10 -0
- merges.txt +0 -0
- model-00001-of-00004.safetensors +3 -0
- model-00002-of-00004.safetensors +3 -0
- model-00003-of-00004.safetensors +3 -0
- model-00004-of-00004.safetensors +3 -0
- model.safetensors.index.json +202 -0
- rng_state_0.pth +3 -0
- rng_state_1.pth +3 -0
- rng_state_2.pth +3 -0
- rng_state_3.pth +3 -0
- rng_state_4.pth +3 -0
- rng_state_5.pth +3 -0
- rng_state_6.pth +3 -0
- rng_state_7.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +3 -0
- tokenizer_config.json +111 -0
- trainer_state.json +304 -0
- training_args.bin +3 -0
- vocab.json +0 -0
.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
|
added_tokens.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"<|/tool_call|>": 200026,
|
| 3 |
+
"<|/tool|>": 200024,
|
| 4 |
+
"<|assistant|>": 200019,
|
| 5 |
+
"<|end|>": 200020,
|
| 6 |
+
"<|system|>": 200022,
|
| 7 |
+
"<|tag|>": 200028,
|
| 8 |
+
"<|tool_call|>": 200025,
|
| 9 |
+
"<|tool_response|>": 200027,
|
| 10 |
+
"<|tool|>": 200023,
|
| 11 |
+
"<|user|>": 200021
|
| 12 |
+
}
|
chat_template.jinja
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{% for message in messages %}{% if message['role'] == 'system' and 'tools' in message and message['tools'] is not none %}{{ '<|' + message['role'] + '|>' + message['content'] + '<|tool|>' + message['tools'] + '<|/tool|>' + '<|end|>' }}{% else %}{{ '<|' + message['role'] + '|>' + message['content'] + '<|end|>' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>' }}{% else %}{{ eos_token }}{% endif %}
|
config.json
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Phi3ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"auto_map": {
|
| 8 |
+
"AutoConfig": "configuration_phi3.Phi3Config",
|
| 9 |
+
"AutoModelForCausalLM": "microsoft/Phi-4-mini-instruct--modeling_phi3.Phi3ForCausalLM",
|
| 10 |
+
"AutoTokenizer": "microsoft/Phi-4-mini-instruct--Xenova/gpt-4o"
|
| 11 |
+
},
|
| 12 |
+
"bos_token_id": 199999,
|
| 13 |
+
"embd_pdrop": 0.0,
|
| 14 |
+
"eos_token_id": 199999,
|
| 15 |
+
"full_attn_mod": 1,
|
| 16 |
+
"hidden_act": "silu",
|
| 17 |
+
"hidden_size": 3072,
|
| 18 |
+
"initializer_range": 0.02,
|
| 19 |
+
"intermediate_size": 8192,
|
| 20 |
+
"interpolate_factor": 1,
|
| 21 |
+
"lm_head_bias": false,
|
| 22 |
+
"max_position_embeddings": 131072,
|
| 23 |
+
"mlp_bias": false,
|
| 24 |
+
"model_type": "phi3",
|
| 25 |
+
"num_attention_heads": 24,
|
| 26 |
+
"num_hidden_layers": 32,
|
| 27 |
+
"num_key_value_heads": 8,
|
| 28 |
+
"original_max_position_embeddings": 4096,
|
| 29 |
+
"pad_token_id": 199999,
|
| 30 |
+
"partial_rotary_factor": 0.75,
|
| 31 |
+
"resid_pdrop": 0.0,
|
| 32 |
+
"rms_norm_eps": 1e-05,
|
| 33 |
+
"rope_scaling": {
|
| 34 |
+
"long_factor": [
|
| 35 |
+
1,
|
| 36 |
+
1.118320672,
|
| 37 |
+
1.250641126,
|
| 38 |
+
1.398617824,
|
| 39 |
+
1.564103225,
|
| 40 |
+
1.74916897,
|
| 41 |
+
1.956131817,
|
| 42 |
+
2.187582649,
|
| 43 |
+
2.446418898,
|
| 44 |
+
2.735880826,
|
| 45 |
+
3.059592084,
|
| 46 |
+
3.421605075,
|
| 47 |
+
3.826451687,
|
| 48 |
+
4.279200023,
|
| 49 |
+
4.785517845,
|
| 50 |
+
5.351743533,
|
| 51 |
+
5.984965424,
|
| 52 |
+
6.693110555,
|
| 53 |
+
7.485043894,
|
| 54 |
+
8.370679318,
|
| 55 |
+
9.36110372,
|
| 56 |
+
10.4687158,
|
| 57 |
+
11.70738129,
|
| 58 |
+
13.09260651,
|
| 59 |
+
14.64173252,
|
| 60 |
+
16.37415215,
|
| 61 |
+
18.31155283,
|
| 62 |
+
20.47818807,
|
| 63 |
+
22.90118105,
|
| 64 |
+
25.61086418,
|
| 65 |
+
28.64115884,
|
| 66 |
+
32.03,
|
| 67 |
+
32.1,
|
| 68 |
+
32.13,
|
| 69 |
+
32.23,
|
| 70 |
+
32.6,
|
| 71 |
+
32.61,
|
| 72 |
+
32.64,
|
| 73 |
+
32.66,
|
| 74 |
+
32.7,
|
| 75 |
+
32.71,
|
| 76 |
+
32.93,
|
| 77 |
+
32.97,
|
| 78 |
+
33.28,
|
| 79 |
+
33.49,
|
| 80 |
+
33.5,
|
| 81 |
+
44.16,
|
| 82 |
+
47.77
|
| 83 |
+
],
|
| 84 |
+
"short_factor": [
|
| 85 |
+
1.0,
|
| 86 |
+
1.0,
|
| 87 |
+
1.0,
|
| 88 |
+
1.0,
|
| 89 |
+
1.0,
|
| 90 |
+
1.0,
|
| 91 |
+
1.0,
|
| 92 |
+
1.0,
|
| 93 |
+
1.0,
|
| 94 |
+
1.0,
|
| 95 |
+
1.0,
|
| 96 |
+
1.0,
|
| 97 |
+
1.0,
|
| 98 |
+
1.0,
|
| 99 |
+
1.0,
|
| 100 |
+
1.0,
|
| 101 |
+
1.0,
|
| 102 |
+
1.0,
|
| 103 |
+
1.0,
|
| 104 |
+
1.0,
|
| 105 |
+
1.0,
|
| 106 |
+
1.0,
|
| 107 |
+
1.0,
|
| 108 |
+
1.0,
|
| 109 |
+
1.0,
|
| 110 |
+
1.0,
|
| 111 |
+
1.0,
|
| 112 |
+
1.0,
|
| 113 |
+
1.0,
|
| 114 |
+
1.0,
|
| 115 |
+
1.0,
|
| 116 |
+
1.0,
|
| 117 |
+
1.0,
|
| 118 |
+
1.0,
|
| 119 |
+
1.0,
|
| 120 |
+
1.0,
|
| 121 |
+
1.0,
|
| 122 |
+
1.0,
|
| 123 |
+
1.0,
|
| 124 |
+
1.0,
|
| 125 |
+
1.0,
|
| 126 |
+
1.0,
|
| 127 |
+
1.0,
|
| 128 |
+
1.0,
|
| 129 |
+
1.0,
|
| 130 |
+
1.0,
|
| 131 |
+
1.0,
|
| 132 |
+
1.0
|
| 133 |
+
],
|
| 134 |
+
"type": "longrope"
|
| 135 |
+
},
|
| 136 |
+
"rope_theta": 10000.0,
|
| 137 |
+
"sliding_window": 262144,
|
| 138 |
+
"tie_word_embeddings": true,
|
| 139 |
+
"torch_dtype": "float32",
|
| 140 |
+
"transformers_version": "4.52.2",
|
| 141 |
+
"use_cache": false,
|
| 142 |
+
"vocab_size": 200064
|
| 143 |
+
}
|
configuration_phi3.py
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding=utf-8
|
| 2 |
+
# Copyright 2024 Microsoft and the HuggingFace Inc. team. All rights reserved.
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
|
| 16 |
+
"""Phi-3 model configuration"""
|
| 17 |
+
|
| 18 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 19 |
+
from transformers.utils import logging
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
logger = logging.get_logger(__name__)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
class Phi3Config(PretrainedConfig):
|
| 26 |
+
r"""
|
| 27 |
+
This is the configuration class to store the configuration of a [`Phi3Model`]. It is used to instantiate a Phi-3
|
| 28 |
+
model according to the specified arguments, defining the model architecture. Instantiating a configuration with the
|
| 29 |
+
defaults will yield a similar configuration to that of the
|
| 30 |
+
[microsoft/Phi-3-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct).
|
| 31 |
+
|
| 32 |
+
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
| 33 |
+
documentation from [`PretrainedConfig`] for more information.
|
| 34 |
+
|
| 35 |
+
Args:
|
| 36 |
+
vocab_size (`int`, *optional*, defaults to 32064):
|
| 37 |
+
Vocabulary size of the Phi-3 model. Defines the number of different tokens that can be represented by the
|
| 38 |
+
`inputs_ids` passed when calling [`Phi3Model`].
|
| 39 |
+
hidden_size (`int`, *optional*, defaults to 3072):
|
| 40 |
+
Dimension of the hidden representations.
|
| 41 |
+
intermediate_size (`int`, *optional*, defaults to 8192):
|
| 42 |
+
Dimension of the MLP representations.
|
| 43 |
+
num_hidden_layers (`int`, *optional*, defaults to 32):
|
| 44 |
+
Number of hidden layers in the Transformer decoder.
|
| 45 |
+
num_attention_heads (`int`, *optional*, defaults to 32):
|
| 46 |
+
Number of attention heads for each attention layer in the Transformer decoder.
|
| 47 |
+
num_key_value_heads (`int`, *optional*):
|
| 48 |
+
This is the number of key_value heads that should be used to implement Grouped Query Attention. If
|
| 49 |
+
`num_key_value_heads=num_attention_heads`, the model will use Multi Head Attention (MHA), if
|
| 50 |
+
`num_key_value_heads=1` the model will use Multi Query Attention (MQA) otherwise GQA is used. When
|
| 51 |
+
converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
|
| 52 |
+
by meanpooling all the original heads within that group. For more details checkout [this
|
| 53 |
+
paper](https://arxiv.org/pdf/2305.13245.pdf). If it is not specified, will default to
|
| 54 |
+
`num_attention_heads`.
|
| 55 |
+
resid_pdrop (`float`, *optional*, defaults to 0.0):
|
| 56 |
+
Dropout probability for mlp outputs.
|
| 57 |
+
embd_pdrop (`int`, *optional*, defaults to 0.0):
|
| 58 |
+
The dropout ratio for the embeddings.
|
| 59 |
+
attention_dropout (`float`, *optional*, defaults to 0.0):
|
| 60 |
+
The dropout ratio after computing the attention scores.
|
| 61 |
+
hidden_act (`str` or `function`, *optional*, defaults to `"silu"`):
|
| 62 |
+
The non-linear activation function (function or string) in the decoder.
|
| 63 |
+
max_position_embeddings (`int`, *optional*, defaults to 4096):
|
| 64 |
+
The maximum sequence length that this model might ever be used with.
|
| 65 |
+
original_max_position_embeddings (`int`, *optional*, defaults to 4096):
|
| 66 |
+
The maximum sequence length that this model was trained with. This is used to determine the size of the
|
| 67 |
+
original RoPE embeddings when using long scaling.
|
| 68 |
+
initializer_range (`float`, *optional*, defaults to 0.02):
|
| 69 |
+
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
|
| 70 |
+
rms_norm_eps (`float`, *optional*, defaults to 1e-05):
|
| 71 |
+
The epsilon value used for the RMSNorm.
|
| 72 |
+
use_cache (`bool`, *optional*, defaults to `True`):
|
| 73 |
+
Whether or not the model should return the last key/values attentions (not used by all models). Only
|
| 74 |
+
relevant if `config.is_decoder=True`. Whether to tie weight embeddings or not.
|
| 75 |
+
tie_word_embeddings (`bool`, *optional*, defaults to `False`):
|
| 76 |
+
Whether to tie weight embeddings
|
| 77 |
+
rope_theta (`float`, *optional*, defaults to 10000.0):
|
| 78 |
+
The base period of the RoPE embeddings.
|
| 79 |
+
rope_scaling (`dict`, *optional*):
|
| 80 |
+
The scaling strategy for the RoPE embeddings. If `None`, no scaling is applied. If a dictionary, it must
|
| 81 |
+
contain the following keys: `type`, `short_factor` and `long_factor`. The `type` must be `longrope` and
|
| 82 |
+
the `short_factor` and `long_factor` must be lists of numbers with the same length as the hidden size
|
| 83 |
+
divided by the number of attention heads divided by 2.
|
| 84 |
+
partial_rotary_factor (`float`, *optional*, defaults to 1.0):
|
| 85 |
+
Percentage of the query and keys which will have rotary embedding. Must be between 0.0 and 1.0.
|
| 86 |
+
bos_token_id (`int`, *optional*, defaults to 1):
|
| 87 |
+
The id of the "beginning-of-sequence" token.
|
| 88 |
+
eos_token_id (`int`, *optional*, defaults to 32000):
|
| 89 |
+
The id of the "end-of-sequence" token.
|
| 90 |
+
pad_token_id (`int`, *optional*, defaults to 32000):
|
| 91 |
+
The id of the padding token.
|
| 92 |
+
sliding_window (`int`, *optional*):
|
| 93 |
+
Sliding window attention window size. If `None`, no sliding window is applied.
|
| 94 |
+
|
| 95 |
+
Example:
|
| 96 |
+
|
| 97 |
+
```python
|
| 98 |
+
>>> from transformers import Phi3Model, Phi3Config
|
| 99 |
+
|
| 100 |
+
>>> # Initializing a Phi-3 style configuration
|
| 101 |
+
>>> configuration = Phi3Config.from_pretrained("microsoft/Phi-3-mini-4k-instruct")
|
| 102 |
+
|
| 103 |
+
>>> # Initializing a model from the configuration
|
| 104 |
+
>>> model = Phi3Model(configuration)
|
| 105 |
+
|
| 106 |
+
>>> # Accessing the model configuration
|
| 107 |
+
>>> configuration = model.config
|
| 108 |
+
```"""
|
| 109 |
+
|
| 110 |
+
model_type = "phi3"
|
| 111 |
+
keys_to_ignore_at_inference = ["past_key_values"]
|
| 112 |
+
|
| 113 |
+
def __init__(
|
| 114 |
+
self,
|
| 115 |
+
vocab_size=32064,
|
| 116 |
+
hidden_size=3072,
|
| 117 |
+
intermediate_size=8192,
|
| 118 |
+
num_hidden_layers=32,
|
| 119 |
+
num_attention_heads=32,
|
| 120 |
+
num_key_value_heads=None,
|
| 121 |
+
resid_pdrop=0.0,
|
| 122 |
+
embd_pdrop=0.0,
|
| 123 |
+
attention_dropout=0.0,
|
| 124 |
+
hidden_act="silu",
|
| 125 |
+
max_position_embeddings=4096,
|
| 126 |
+
original_max_position_embeddings=4096,
|
| 127 |
+
initializer_range=0.02,
|
| 128 |
+
rms_norm_eps=1e-5,
|
| 129 |
+
use_cache=True,
|
| 130 |
+
tie_word_embeddings=False,
|
| 131 |
+
rope_theta=10000.0,
|
| 132 |
+
rope_scaling=None,
|
| 133 |
+
partial_rotary_factor=1.0,
|
| 134 |
+
bos_token_id=1,
|
| 135 |
+
eos_token_id=32000,
|
| 136 |
+
pad_token_id=32000,
|
| 137 |
+
sliding_window=None,
|
| 138 |
+
**kwargs,
|
| 139 |
+
):
|
| 140 |
+
self.vocab_size = vocab_size
|
| 141 |
+
self.hidden_size = hidden_size
|
| 142 |
+
self.intermediate_size = intermediate_size
|
| 143 |
+
self.num_hidden_layers = num_hidden_layers
|
| 144 |
+
self.num_attention_heads = num_attention_heads
|
| 145 |
+
|
| 146 |
+
if num_key_value_heads is None:
|
| 147 |
+
num_key_value_heads = num_attention_heads
|
| 148 |
+
|
| 149 |
+
self.num_key_value_heads = num_key_value_heads
|
| 150 |
+
self.resid_pdrop = resid_pdrop
|
| 151 |
+
self.embd_pdrop = embd_pdrop
|
| 152 |
+
self.attention_dropout = attention_dropout
|
| 153 |
+
self.hidden_act = hidden_act
|
| 154 |
+
self.max_position_embeddings = max_position_embeddings
|
| 155 |
+
self.original_max_position_embeddings = original_max_position_embeddings
|
| 156 |
+
self.initializer_range = initializer_range
|
| 157 |
+
self.rms_norm_eps = rms_norm_eps
|
| 158 |
+
self.use_cache = use_cache
|
| 159 |
+
self.rope_theta = rope_theta
|
| 160 |
+
self.rope_scaling = rope_scaling
|
| 161 |
+
self.partial_rotary_factor = partial_rotary_factor
|
| 162 |
+
self._rope_scaling_adjustment()
|
| 163 |
+
self._rope_scaling_validation()
|
| 164 |
+
self.sliding_window = sliding_window
|
| 165 |
+
|
| 166 |
+
super().__init__(
|
| 167 |
+
bos_token_id=bos_token_id,
|
| 168 |
+
eos_token_id=eos_token_id,
|
| 169 |
+
pad_token_id=pad_token_id,
|
| 170 |
+
tie_word_embeddings=tie_word_embeddings,
|
| 171 |
+
**kwargs,
|
| 172 |
+
)
|
| 173 |
+
|
| 174 |
+
def _rope_scaling_adjustment(self):
|
| 175 |
+
"""
|
| 176 |
+
Adjust the `type` of the `rope_scaling` configuration for backward compatibility.
|
| 177 |
+
"""
|
| 178 |
+
if self.rope_scaling is None:
|
| 179 |
+
return
|
| 180 |
+
|
| 181 |
+
rope_scaling_type = self.rope_scaling.get("type", None)
|
| 182 |
+
|
| 183 |
+
# For backward compatibility if previous version used "su" or "yarn"
|
| 184 |
+
if rope_scaling_type is not None and rope_scaling_type in ["su", "yarn"]:
|
| 185 |
+
self.rope_scaling["type"] = "longrope"
|
| 186 |
+
|
| 187 |
+
def _rope_scaling_validation(self):
|
| 188 |
+
"""
|
| 189 |
+
Validate the `rope_scaling` configuration.
|
| 190 |
+
"""
|
| 191 |
+
if self.rope_scaling is None:
|
| 192 |
+
return
|
| 193 |
+
|
| 194 |
+
if not isinstance(self.rope_scaling, dict) or len(self.rope_scaling) != 3:
|
| 195 |
+
raise ValueError(
|
| 196 |
+
"`rope_scaling` must be a dictionary with three fields, `type`, `short_factor` and `long_factor`, "
|
| 197 |
+
f"got {self.rope_scaling}"
|
| 198 |
+
)
|
| 199 |
+
rope_scaling_type = self.rope_scaling.get("type", None)
|
| 200 |
+
rope_scaling_short_factor = self.rope_scaling.get("short_factor", None)
|
| 201 |
+
rope_scaling_long_factor = self.rope_scaling.get("long_factor", None)
|
| 202 |
+
if rope_scaling_type is None or rope_scaling_type not in ["longrope"]:
|
| 203 |
+
raise ValueError(f"`rope_scaling`'s type field must be one of ['longrope'], got {rope_scaling_type}")
|
| 204 |
+
if not (
|
| 205 |
+
isinstance(rope_scaling_short_factor, list)
|
| 206 |
+
and all(isinstance(x, (int, float)) for x in rope_scaling_short_factor)
|
| 207 |
+
):
|
| 208 |
+
raise ValueError(
|
| 209 |
+
f"`rope_scaling`'s short_factor field must be a list of numbers, got {rope_scaling_short_factor}"
|
| 210 |
+
)
|
| 211 |
+
rotary_ndims = int(self.hidden_size // self.num_attention_heads * self.partial_rotary_factor)
|
| 212 |
+
if not len(rope_scaling_short_factor) == rotary_ndims // 2:
|
| 213 |
+
raise ValueError(
|
| 214 |
+
f"`rope_scaling`'s short_factor field must have length {rotary_ndims // 2}, got {len(rope_scaling_short_factor)}"
|
| 215 |
+
)
|
| 216 |
+
if not (
|
| 217 |
+
isinstance(rope_scaling_long_factor, list)
|
| 218 |
+
and all(isinstance(x, (int, float)) for x in rope_scaling_long_factor)
|
| 219 |
+
):
|
| 220 |
+
raise ValueError(
|
| 221 |
+
f"`rope_scaling`'s long_factor field must be a list of numbers, got {rope_scaling_long_factor}"
|
| 222 |
+
)
|
| 223 |
+
if not len(rope_scaling_long_factor) == rotary_ndims // 2:
|
| 224 |
+
raise ValueError(
|
| 225 |
+
f"`rope_scaling`'s long_factor field must have length {rotary_ndims // 2}, got {len(rope_scaling_long_factor)}"
|
| 226 |
+
)
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 199999,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
200020,
|
| 6 |
+
199999
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 199999,
|
| 9 |
+
"transformers_version": "4.52.2"
|
| 10 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81ace2f1dc017ba41ec9c842af014cea1a4317a7bcbf07a3c57cbb5ff62fe02f
|
| 3 |
+
size 4975120816
|
model-00002-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4173f1d5bc73b6d7b9291defdd8112d3526c7697c029fa3845b9bc4b742277e4
|
| 3 |
+
size 4832141488
|
model-00003-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c7c87ffc81fa842dbfcd00f2951470b38abcaca8ab55d54b62840fdaac00c126
|
| 3 |
+
size 4832141512
|
model-00004-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e221988b20ec2da09324c678a57f4f7b8631ca2f6348c952ebd524d5de3c5ef
|
| 3 |
+
size 3163092328
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 17802473472
|
| 4 |
+
},
|
| 5 |
+
"weight_map": {
|
| 6 |
+
"lm_head.weight": "model-00004-of-00004.safetensors",
|
| 7 |
+
"model.embed_tokens.weight": "model-00001-of-00004.safetensors",
|
| 8 |
+
"model.layers.0.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 9 |
+
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 10 |
+
"model.layers.0.mlp.gate_up_proj.weight": "model-00001-of-00004.safetensors",
|
| 11 |
+
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 12 |
+
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 13 |
+
"model.layers.0.self_attn.qkv_proj.weight": "model-00001-of-00004.safetensors",
|
| 14 |
+
"model.layers.1.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 15 |
+
"model.layers.1.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 16 |
+
"model.layers.1.mlp.gate_up_proj.weight": "model-00001-of-00004.safetensors",
|
| 17 |
+
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 18 |
+
"model.layers.1.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 19 |
+
"model.layers.1.self_attn.qkv_proj.weight": "model-00001-of-00004.safetensors",
|
| 20 |
+
"model.layers.10.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 21 |
+
"model.layers.10.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 22 |
+
"model.layers.10.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 23 |
+
"model.layers.10.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 24 |
+
"model.layers.10.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 25 |
+
"model.layers.10.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 26 |
+
"model.layers.11.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 27 |
+
"model.layers.11.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 28 |
+
"model.layers.11.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 29 |
+
"model.layers.11.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 30 |
+
"model.layers.11.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 31 |
+
"model.layers.11.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 32 |
+
"model.layers.12.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 33 |
+
"model.layers.12.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 34 |
+
"model.layers.12.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 35 |
+
"model.layers.12.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 36 |
+
"model.layers.12.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 37 |
+
"model.layers.12.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 38 |
+
"model.layers.13.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 39 |
+
"model.layers.13.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 40 |
+
"model.layers.13.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 41 |
+
"model.layers.13.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 42 |
+
"model.layers.13.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 43 |
+
"model.layers.13.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 44 |
+
"model.layers.14.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 45 |
+
"model.layers.14.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 46 |
+
"model.layers.14.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 47 |
+
"model.layers.14.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 48 |
+
"model.layers.14.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 49 |
+
"model.layers.14.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 50 |
+
"model.layers.15.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 51 |
+
"model.layers.15.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 52 |
+
"model.layers.15.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 53 |
+
"model.layers.15.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 54 |
+
"model.layers.15.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 55 |
+
"model.layers.15.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 56 |
+
"model.layers.16.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 57 |
+
"model.layers.16.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 58 |
+
"model.layers.16.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 59 |
+
"model.layers.16.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 60 |
+
"model.layers.16.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 61 |
+
"model.layers.16.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 62 |
+
"model.layers.17.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 63 |
+
"model.layers.17.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 64 |
+
"model.layers.17.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 65 |
+
"model.layers.17.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 66 |
+
"model.layers.17.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 67 |
+
"model.layers.17.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 68 |
+
"model.layers.18.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 69 |
+
"model.layers.18.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 70 |
+
"model.layers.18.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 71 |
+
"model.layers.18.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 72 |
+
"model.layers.18.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 73 |
+
"model.layers.18.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 74 |
+
"model.layers.19.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 75 |
+
"model.layers.19.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 76 |
+
"model.layers.19.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 77 |
+
"model.layers.19.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 78 |
+
"model.layers.19.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 79 |
+
"model.layers.19.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 80 |
+
"model.layers.2.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 81 |
+
"model.layers.2.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 82 |
+
"model.layers.2.mlp.gate_up_proj.weight": "model-00001-of-00004.safetensors",
|
| 83 |
+
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 84 |
+
"model.layers.2.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 85 |
+
"model.layers.2.self_attn.qkv_proj.weight": "model-00001-of-00004.safetensors",
|
| 86 |
+
"model.layers.20.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 87 |
+
"model.layers.20.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 88 |
+
"model.layers.20.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 89 |
+
"model.layers.20.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 90 |
+
"model.layers.20.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 91 |
+
"model.layers.20.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 92 |
+
"model.layers.21.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 93 |
+
"model.layers.21.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 94 |
+
"model.layers.21.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 95 |
+
"model.layers.21.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 96 |
+
"model.layers.21.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 97 |
+
"model.layers.21.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 98 |
+
"model.layers.22.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 99 |
+
"model.layers.22.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 100 |
+
"model.layers.22.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 101 |
+
"model.layers.22.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 102 |
+
"model.layers.22.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 103 |
+
"model.layers.22.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 104 |
+
"model.layers.23.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 105 |
+
"model.layers.23.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 106 |
+
"model.layers.23.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 107 |
+
"model.layers.23.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 108 |
+
"model.layers.23.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 109 |
+
"model.layers.23.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 110 |
+
"model.layers.24.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 111 |
+
"model.layers.24.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 112 |
+
"model.layers.24.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 113 |
+
"model.layers.24.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 114 |
+
"model.layers.24.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 115 |
+
"model.layers.24.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 116 |
+
"model.layers.25.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 117 |
+
"model.layers.25.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 118 |
+
"model.layers.25.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 119 |
+
"model.layers.25.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 120 |
+
"model.layers.25.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 121 |
+
"model.layers.25.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 122 |
+
"model.layers.26.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 123 |
+
"model.layers.26.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 124 |
+
"model.layers.26.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 125 |
+
"model.layers.26.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 126 |
+
"model.layers.26.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 127 |
+
"model.layers.26.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 128 |
+
"model.layers.27.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 129 |
+
"model.layers.27.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 130 |
+
"model.layers.27.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 131 |
+
"model.layers.27.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 132 |
+
"model.layers.27.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 133 |
+
"model.layers.27.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 134 |
+
"model.layers.28.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 135 |
+
"model.layers.28.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 136 |
+
"model.layers.28.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 137 |
+
"model.layers.28.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 138 |
+
"model.layers.28.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 139 |
+
"model.layers.28.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 140 |
+
"model.layers.29.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 141 |
+
"model.layers.29.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 142 |
+
"model.layers.29.mlp.gate_up_proj.weight": "model-00003-of-00004.safetensors",
|
| 143 |
+
"model.layers.29.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 144 |
+
"model.layers.29.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 145 |
+
"model.layers.29.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 146 |
+
"model.layers.3.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 147 |
+
"model.layers.3.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 148 |
+
"model.layers.3.mlp.gate_up_proj.weight": "model-00001-of-00004.safetensors",
|
| 149 |
+
"model.layers.3.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 150 |
+
"model.layers.3.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 151 |
+
"model.layers.3.self_attn.qkv_proj.weight": "model-00001-of-00004.safetensors",
|
| 152 |
+
"model.layers.30.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
| 153 |
+
"model.layers.30.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
| 154 |
+
"model.layers.30.mlp.gate_up_proj.weight": "model-00004-of-00004.safetensors",
|
| 155 |
+
"model.layers.30.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
| 156 |
+
"model.layers.30.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 157 |
+
"model.layers.30.self_attn.qkv_proj.weight": "model-00003-of-00004.safetensors",
|
| 158 |
+
"model.layers.31.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
| 159 |
+
"model.layers.31.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
| 160 |
+
"model.layers.31.mlp.gate_up_proj.weight": "model-00004-of-00004.safetensors",
|
| 161 |
+
"model.layers.31.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
| 162 |
+
"model.layers.31.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
| 163 |
+
"model.layers.31.self_attn.qkv_proj.weight": "model-00004-of-00004.safetensors",
|
| 164 |
+
"model.layers.4.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 165 |
+
"model.layers.4.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 166 |
+
"model.layers.4.mlp.gate_up_proj.weight": "model-00001-of-00004.safetensors",
|
| 167 |
+
"model.layers.4.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 168 |
+
"model.layers.4.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 169 |
+
"model.layers.4.self_attn.qkv_proj.weight": "model-00001-of-00004.safetensors",
|
| 170 |
+
"model.layers.5.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 171 |
+
"model.layers.5.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 172 |
+
"model.layers.5.mlp.gate_up_proj.weight": "model-00001-of-00004.safetensors",
|
| 173 |
+
"model.layers.5.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 174 |
+
"model.layers.5.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 175 |
+
"model.layers.5.self_attn.qkv_proj.weight": "model-00001-of-00004.safetensors",
|
| 176 |
+
"model.layers.6.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 177 |
+
"model.layers.6.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 178 |
+
"model.layers.6.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 179 |
+
"model.layers.6.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 180 |
+
"model.layers.6.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 181 |
+
"model.layers.6.self_attn.qkv_proj.weight": "model-00001-of-00004.safetensors",
|
| 182 |
+
"model.layers.7.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 183 |
+
"model.layers.7.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 184 |
+
"model.layers.7.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 185 |
+
"model.layers.7.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 186 |
+
"model.layers.7.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 187 |
+
"model.layers.7.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 188 |
+
"model.layers.8.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 189 |
+
"model.layers.8.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 190 |
+
"model.layers.8.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 191 |
+
"model.layers.8.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 192 |
+
"model.layers.8.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 193 |
+
"model.layers.8.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 194 |
+
"model.layers.9.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 195 |
+
"model.layers.9.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 196 |
+
"model.layers.9.mlp.gate_up_proj.weight": "model-00002-of-00004.safetensors",
|
| 197 |
+
"model.layers.9.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 198 |
+
"model.layers.9.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 199 |
+
"model.layers.9.self_attn.qkv_proj.weight": "model-00002-of-00004.safetensors",
|
| 200 |
+
"model.norm.weight": "model-00004-of-00004.safetensors"
|
| 201 |
+
}
|
| 202 |
+
}
|
rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:575119a228f98110923ffa2dedcb50e3317251b26054355d015e0b2240d566f2
|
| 3 |
+
size 15984
|
rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0728b56dab7abb5ef8a0d4bae3519c5767c97467bdd886d26bf19cc8599d0312
|
| 3 |
+
size 15984
|
rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4e481d4ef1546694da7337f6bb6c658b866dcb79b85deeb477da0d27ebe851e
|
| 3 |
+
size 15984
|
rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:353c60be37ea56fc992fca446598ceca5d1fd002aa3bd6dbb9ad740e6f47ebb3
|
| 3 |
+
size 15984
|
rng_state_4.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9107fe964ba7205e354084b85210e5a5ea1c98cfd4d38adb9cd3926945dcae4
|
| 3 |
+
size 15984
|
rng_state_5.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69d1bb1abee38b92e53f3f23549b642ce0f1edcdccf7b6129847ac61636e96d5
|
| 3 |
+
size 15984
|
rng_state_6.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:afd5516048e20f36959601574e29e40106085a7d3cdc7bf425ce5e84633490e6
|
| 3 |
+
size 15984
|
rng_state_7.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8e2c46927fc06939b4c976a01e4b95dec1f8b98ceaea86d31a5d756fc30ff006
|
| 3 |
+
size 15984
|
scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6afa46a469d3920ee52dbea138d9a685d0ef8d203ff1216827fbe87f44c29fe
|
| 3 |
+
size 1064
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<|endoftext|>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|endoftext|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<|endoftext|>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"unk_token": {
|
| 24 |
+
"content": "<|endoftext|>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
}
|
| 30 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:382cc235b56c725945e149cc25f191da667c836655efd0857b004320e90e91ea
|
| 3 |
+
size 15524095
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_eos_token": true,
|
| 4 |
+
"add_prefix_space": true,
|
| 5 |
+
"added_tokens_decoder": {
|
| 6 |
+
"199999": {
|
| 7 |
+
"content": "<|endoftext|>",
|
| 8 |
+
"lstrip": false,
|
| 9 |
+
"normalized": false,
|
| 10 |
+
"rstrip": false,
|
| 11 |
+
"single_word": false,
|
| 12 |
+
"special": true
|
| 13 |
+
},
|
| 14 |
+
"200018": {
|
| 15 |
+
"content": "<|endofprompt|>",
|
| 16 |
+
"lstrip": false,
|
| 17 |
+
"normalized": false,
|
| 18 |
+
"rstrip": false,
|
| 19 |
+
"single_word": false,
|
| 20 |
+
"special": true
|
| 21 |
+
},
|
| 22 |
+
"200019": {
|
| 23 |
+
"content": "<|assistant|>",
|
| 24 |
+
"lstrip": false,
|
| 25 |
+
"normalized": false,
|
| 26 |
+
"rstrip": true,
|
| 27 |
+
"single_word": false,
|
| 28 |
+
"special": true
|
| 29 |
+
},
|
| 30 |
+
"200020": {
|
| 31 |
+
"content": "<|end|>",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": true,
|
| 35 |
+
"single_word": false,
|
| 36 |
+
"special": true
|
| 37 |
+
},
|
| 38 |
+
"200021": {
|
| 39 |
+
"content": "<|user|>",
|
| 40 |
+
"lstrip": false,
|
| 41 |
+
"normalized": false,
|
| 42 |
+
"rstrip": true,
|
| 43 |
+
"single_word": false,
|
| 44 |
+
"special": true
|
| 45 |
+
},
|
| 46 |
+
"200022": {
|
| 47 |
+
"content": "<|system|>",
|
| 48 |
+
"lstrip": false,
|
| 49 |
+
"normalized": false,
|
| 50 |
+
"rstrip": true,
|
| 51 |
+
"single_word": false,
|
| 52 |
+
"special": true
|
| 53 |
+
},
|
| 54 |
+
"200023": {
|
| 55 |
+
"content": "<|tool|>",
|
| 56 |
+
"lstrip": false,
|
| 57 |
+
"normalized": false,
|
| 58 |
+
"rstrip": true,
|
| 59 |
+
"single_word": false,
|
| 60 |
+
"special": false
|
| 61 |
+
},
|
| 62 |
+
"200024": {
|
| 63 |
+
"content": "<|/tool|>",
|
| 64 |
+
"lstrip": false,
|
| 65 |
+
"normalized": false,
|
| 66 |
+
"rstrip": true,
|
| 67 |
+
"single_word": false,
|
| 68 |
+
"special": false
|
| 69 |
+
},
|
| 70 |
+
"200025": {
|
| 71 |
+
"content": "<|tool_call|>",
|
| 72 |
+
"lstrip": false,
|
| 73 |
+
"normalized": false,
|
| 74 |
+
"rstrip": true,
|
| 75 |
+
"single_word": false,
|
| 76 |
+
"special": false
|
| 77 |
+
},
|
| 78 |
+
"200026": {
|
| 79 |
+
"content": "<|/tool_call|>",
|
| 80 |
+
"lstrip": false,
|
| 81 |
+
"normalized": false,
|
| 82 |
+
"rstrip": true,
|
| 83 |
+
"single_word": false,
|
| 84 |
+
"special": false
|
| 85 |
+
},
|
| 86 |
+
"200027": {
|
| 87 |
+
"content": "<|tool_response|>",
|
| 88 |
+
"lstrip": false,
|
| 89 |
+
"normalized": false,
|
| 90 |
+
"rstrip": true,
|
| 91 |
+
"single_word": false,
|
| 92 |
+
"special": false
|
| 93 |
+
},
|
| 94 |
+
"200028": {
|
| 95 |
+
"content": "<|tag|>",
|
| 96 |
+
"lstrip": false,
|
| 97 |
+
"normalized": false,
|
| 98 |
+
"rstrip": true,
|
| 99 |
+
"single_word": false,
|
| 100 |
+
"special": true
|
| 101 |
+
}
|
| 102 |
+
},
|
| 103 |
+
"bos_token": "<|endoftext|>",
|
| 104 |
+
"clean_up_tokenization_spaces": false,
|
| 105 |
+
"eos_token": "<|endoftext|>",
|
| 106 |
+
"extra_special_tokens": {},
|
| 107 |
+
"model_max_length": 131072,
|
| 108 |
+
"pad_token": "<|endoftext|>",
|
| 109 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 110 |
+
"unk_token": "<|endoftext|>"
|
| 111 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,304 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 1.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 183,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.0547945205479452,
|
| 14 |
+
"grad_norm": 513.996826171875,
|
| 15 |
+
"learning_rate": 4.090909090909091e-07,
|
| 16 |
+
"logits/chosen": 2.990995407104492,
|
| 17 |
+
"logits/rejected": 3.0081257820129395,
|
| 18 |
+
"logps/chosen": -298.52886962890625,
|
| 19 |
+
"logps/rejected": -202.96295166015625,
|
| 20 |
+
"loss": 0.8843,
|
| 21 |
+
"rewards/accuracies": 0.526562511920929,
|
| 22 |
+
"rewards/chosen": 0.010423189960420132,
|
| 23 |
+
"rewards/margins": 0.05534166842699051,
|
| 24 |
+
"rewards/rejected": -0.0449184887111187,
|
| 25 |
+
"step": 10
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"epoch": 0.1095890410958904,
|
| 29 |
+
"grad_norm": 461.9533996582031,
|
| 30 |
+
"learning_rate": 8.636363636363637e-07,
|
| 31 |
+
"logits/chosen": 2.934217929840088,
|
| 32 |
+
"logits/rejected": 2.919574737548828,
|
| 33 |
+
"logps/chosen": -276.70391845703125,
|
| 34 |
+
"logps/rejected": -200.52728271484375,
|
| 35 |
+
"loss": 0.6858,
|
| 36 |
+
"rewards/accuracies": 0.65625,
|
| 37 |
+
"rewards/chosen": 0.7733574509620667,
|
| 38 |
+
"rewards/margins": 0.9247980117797852,
|
| 39 |
+
"rewards/rejected": -0.15144045650959015,
|
| 40 |
+
"step": 20
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"epoch": 0.1643835616438356,
|
| 44 |
+
"grad_norm": 150.57086181640625,
|
| 45 |
+
"learning_rate": 1.3181818181818182e-06,
|
| 46 |
+
"logits/chosen": 3.0546913146972656,
|
| 47 |
+
"logits/rejected": 3.0510308742523193,
|
| 48 |
+
"logps/chosen": -289.57977294921875,
|
| 49 |
+
"logps/rejected": -218.24765014648438,
|
| 50 |
+
"loss": 0.2839,
|
| 51 |
+
"rewards/accuracies": 0.8890625238418579,
|
| 52 |
+
"rewards/chosen": 2.8807666301727295,
|
| 53 |
+
"rewards/margins": 4.351069450378418,
|
| 54 |
+
"rewards/rejected": -1.4703023433685303,
|
| 55 |
+
"step": 30
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"epoch": 0.2191780821917808,
|
| 59 |
+
"grad_norm": 151.46690368652344,
|
| 60 |
+
"learning_rate": 1.7727272727272729e-06,
|
| 61 |
+
"logits/chosen": 3.088348150253296,
|
| 62 |
+
"logits/rejected": 3.1125292778015137,
|
| 63 |
+
"logps/chosen": -275.5274963378906,
|
| 64 |
+
"logps/rejected": -214.15737915039062,
|
| 65 |
+
"loss": 0.1502,
|
| 66 |
+
"rewards/accuracies": 0.9390624761581421,
|
| 67 |
+
"rewards/chosen": 5.216189384460449,
|
| 68 |
+
"rewards/margins": 8.827147483825684,
|
| 69 |
+
"rewards/rejected": -3.610957384109497,
|
| 70 |
+
"step": 40
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"epoch": 0.273972602739726,
|
| 74 |
+
"grad_norm": 130.53453063964844,
|
| 75 |
+
"learning_rate": 2.2272727272727274e-06,
|
| 76 |
+
"logits/chosen": 2.9992308616638184,
|
| 77 |
+
"logits/rejected": 3.075270175933838,
|
| 78 |
+
"logps/chosen": -259.50836181640625,
|
| 79 |
+
"logps/rejected": -203.08811950683594,
|
| 80 |
+
"loss": 0.1281,
|
| 81 |
+
"rewards/accuracies": 0.957812488079071,
|
| 82 |
+
"rewards/chosen": 6.97296667098999,
|
| 83 |
+
"rewards/margins": 12.8120698928833,
|
| 84 |
+
"rewards/rejected": -5.839103698730469,
|
| 85 |
+
"step": 50
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"epoch": 0.3287671232876712,
|
| 89 |
+
"grad_norm": 110.53746032714844,
|
| 90 |
+
"learning_rate": 2.6818181818181822e-06,
|
| 91 |
+
"logits/chosen": 3.088064670562744,
|
| 92 |
+
"logits/rejected": 2.986386775970459,
|
| 93 |
+
"logps/chosen": -325.0431213378906,
|
| 94 |
+
"logps/rejected": -224.979736328125,
|
| 95 |
+
"loss": 0.1444,
|
| 96 |
+
"rewards/accuracies": 0.964062511920929,
|
| 97 |
+
"rewards/chosen": 10.117586135864258,
|
| 98 |
+
"rewards/margins": 18.425701141357422,
|
| 99 |
+
"rewards/rejected": -8.30811595916748,
|
| 100 |
+
"step": 60
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"epoch": 0.3835616438356164,
|
| 104 |
+
"grad_norm": 95.7762222290039,
|
| 105 |
+
"learning_rate": 3.1363636363636367e-06,
|
| 106 |
+
"logits/chosen": 3.040494918823242,
|
| 107 |
+
"logits/rejected": 3.022307872772217,
|
| 108 |
+
"logps/chosen": -273.9972839355469,
|
| 109 |
+
"logps/rejected": -211.2712860107422,
|
| 110 |
+
"loss": 0.1443,
|
| 111 |
+
"rewards/accuracies": 0.9671875238418579,
|
| 112 |
+
"rewards/chosen": 9.627126693725586,
|
| 113 |
+
"rewards/margins": 20.590023040771484,
|
| 114 |
+
"rewards/rejected": -10.962896347045898,
|
| 115 |
+
"step": 70
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"epoch": 0.4383561643835616,
|
| 119 |
+
"grad_norm": 179.24440002441406,
|
| 120 |
+
"learning_rate": 3.590909090909091e-06,
|
| 121 |
+
"logits/chosen": 3.0298266410827637,
|
| 122 |
+
"logits/rejected": 3.0730605125427246,
|
| 123 |
+
"logps/chosen": -280.2432861328125,
|
| 124 |
+
"logps/rejected": -214.884033203125,
|
| 125 |
+
"loss": 0.142,
|
| 126 |
+
"rewards/accuracies": 0.979687511920929,
|
| 127 |
+
"rewards/chosen": 10.719534873962402,
|
| 128 |
+
"rewards/margins": 23.82217788696289,
|
| 129 |
+
"rewards/rejected": -13.102640151977539,
|
| 130 |
+
"step": 80
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"epoch": 0.4931506849315068,
|
| 134 |
+
"grad_norm": 2.0804860591888428,
|
| 135 |
+
"learning_rate": 4.045454545454546e-06,
|
| 136 |
+
"logits/chosen": 3.1072518825531006,
|
| 137 |
+
"logits/rejected": 3.067288875579834,
|
| 138 |
+
"logps/chosen": -294.1097106933594,
|
| 139 |
+
"logps/rejected": -219.38949584960938,
|
| 140 |
+
"loss": 0.1262,
|
| 141 |
+
"rewards/accuracies": 0.981249988079071,
|
| 142 |
+
"rewards/chosen": 12.069157600402832,
|
| 143 |
+
"rewards/margins": 29.454524993896484,
|
| 144 |
+
"rewards/rejected": -17.385366439819336,
|
| 145 |
+
"step": 90
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"epoch": 0.547945205479452,
|
| 149 |
+
"grad_norm": 134.90240478515625,
|
| 150 |
+
"learning_rate": 4.5e-06,
|
| 151 |
+
"logits/chosen": 2.9695353507995605,
|
| 152 |
+
"logits/rejected": 2.9900407791137695,
|
| 153 |
+
"logps/chosen": -270.2259826660156,
|
| 154 |
+
"logps/rejected": -210.32302856445312,
|
| 155 |
+
"loss": 0.1125,
|
| 156 |
+
"rewards/accuracies": 0.984375,
|
| 157 |
+
"rewards/chosen": 8.642024040222168,
|
| 158 |
+
"rewards/margins": 26.856210708618164,
|
| 159 |
+
"rewards/rejected": -18.21418571472168,
|
| 160 |
+
"step": 100
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"epoch": 0.6027397260273972,
|
| 164 |
+
"grad_norm": 237.83163452148438,
|
| 165 |
+
"learning_rate": 4.954545454545455e-06,
|
| 166 |
+
"logits/chosen": 3.001239538192749,
|
| 167 |
+
"logits/rejected": 2.9165444374084473,
|
| 168 |
+
"logps/chosen": -261.63848876953125,
|
| 169 |
+
"logps/rejected": -217.56314086914062,
|
| 170 |
+
"loss": 0.1337,
|
| 171 |
+
"rewards/accuracies": 0.9765625,
|
| 172 |
+
"rewards/chosen": 4.362582206726074,
|
| 173 |
+
"rewards/margins": 21.842912673950195,
|
| 174 |
+
"rewards/rejected": -17.480329513549805,
|
| 175 |
+
"step": 110
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"epoch": 0.6575342465753424,
|
| 179 |
+
"grad_norm": 124.83686065673828,
|
| 180 |
+
"learning_rate": 4.998976350571773e-06,
|
| 181 |
+
"logits/chosen": 3.0631394386291504,
|
| 182 |
+
"logits/rejected": 3.0034124851226807,
|
| 183 |
+
"logps/chosen": -296.0355224609375,
|
| 184 |
+
"logps/rejected": -219.4881134033203,
|
| 185 |
+
"loss": 0.176,
|
| 186 |
+
"rewards/accuracies": 0.96875,
|
| 187 |
+
"rewards/chosen": 3.6324734687805176,
|
| 188 |
+
"rewards/margins": 20.854042053222656,
|
| 189 |
+
"rewards/rejected": -17.221569061279297,
|
| 190 |
+
"step": 120
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"epoch": 0.7123287671232876,
|
| 194 |
+
"grad_norm": 110.8822250366211,
|
| 195 |
+
"learning_rate": 4.995438885558294e-06,
|
| 196 |
+
"logits/chosen": 3.0476179122924805,
|
| 197 |
+
"logits/rejected": 2.9690792560577393,
|
| 198 |
+
"logps/chosen": -292.52276611328125,
|
| 199 |
+
"logps/rejected": -210.3925018310547,
|
| 200 |
+
"loss": 0.2762,
|
| 201 |
+
"rewards/accuracies": 0.9781249761581421,
|
| 202 |
+
"rewards/chosen": 5.373471736907959,
|
| 203 |
+
"rewards/margins": 26.076580047607422,
|
| 204 |
+
"rewards/rejected": -20.703105926513672,
|
| 205 |
+
"step": 130
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"epoch": 0.7671232876712328,
|
| 209 |
+
"grad_norm": 72.18496704101562,
|
| 210 |
+
"learning_rate": 4.989378542821969e-06,
|
| 211 |
+
"logits/chosen": 3.0710926055908203,
|
| 212 |
+
"logits/rejected": 3.0577285289764404,
|
| 213 |
+
"logps/chosen": -284.55230712890625,
|
| 214 |
+
"logps/rejected": -230.9425506591797,
|
| 215 |
+
"loss": 0.2372,
|
| 216 |
+
"rewards/accuracies": 0.973437488079071,
|
| 217 |
+
"rewards/chosen": 5.454714775085449,
|
| 218 |
+
"rewards/margins": 30.868602752685547,
|
| 219 |
+
"rewards/rejected": -25.413890838623047,
|
| 220 |
+
"step": 140
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"epoch": 0.821917808219178,
|
| 224 |
+
"grad_norm": 104.61406707763672,
|
| 225 |
+
"learning_rate": 4.9808014493426124e-06,
|
| 226 |
+
"logits/chosen": 3.053307294845581,
|
| 227 |
+
"logits/rejected": 3.0027899742126465,
|
| 228 |
+
"logps/chosen": -282.54864501953125,
|
| 229 |
+
"logps/rejected": -236.41592407226562,
|
| 230 |
+
"loss": 0.6492,
|
| 231 |
+
"rewards/accuracies": 0.9546874761581421,
|
| 232 |
+
"rewards/chosen": 0.29179587960243225,
|
| 233 |
+
"rewards/margins": 30.52816390991211,
|
| 234 |
+
"rewards/rejected": -30.23636817932129,
|
| 235 |
+
"step": 150
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"epoch": 0.8767123287671232,
|
| 239 |
+
"grad_norm": 114.0179443359375,
|
| 240 |
+
"learning_rate": 4.9697162765239595e-06,
|
| 241 |
+
"logits/chosen": 3.0813591480255127,
|
| 242 |
+
"logits/rejected": 3.093292713165283,
|
| 243 |
+
"logps/chosen": -265.5400390625,
|
| 244 |
+
"logps/rejected": -233.4171142578125,
|
| 245 |
+
"loss": 0.1703,
|
| 246 |
+
"rewards/accuracies": 0.981249988079071,
|
| 247 |
+
"rewards/chosen": 2.905339002609253,
|
| 248 |
+
"rewards/margins": 36.841583251953125,
|
| 249 |
+
"rewards/rejected": -33.936241149902344,
|
| 250 |
+
"step": 160
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"epoch": 0.9315068493150684,
|
| 254 |
+
"grad_norm": 132.4547576904297,
|
| 255 |
+
"learning_rate": 4.9561342314269055e-06,
|
| 256 |
+
"logits/chosen": 3.124277114868164,
|
| 257 |
+
"logits/rejected": 3.048166036605835,
|
| 258 |
+
"logps/chosen": -262.30194091796875,
|
| 259 |
+
"logps/rejected": -232.39297485351562,
|
| 260 |
+
"loss": 0.4256,
|
| 261 |
+
"rewards/accuracies": 0.9515625238418579,
|
| 262 |
+
"rewards/chosen": -1.3073980808258057,
|
| 263 |
+
"rewards/margins": 30.139415740966797,
|
| 264 |
+
"rewards/rejected": -31.446813583374023,
|
| 265 |
+
"step": 170
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"epoch": 0.9863013698630136,
|
| 269 |
+
"grad_norm": 1.0581492185592651,
|
| 270 |
+
"learning_rate": 4.940069045439226e-06,
|
| 271 |
+
"logits/chosen": 3.164407968521118,
|
| 272 |
+
"logits/rejected": 3.164742946624756,
|
| 273 |
+
"logps/chosen": -274.58673095703125,
|
| 274 |
+
"logps/rejected": -232.9495849609375,
|
| 275 |
+
"loss": 0.3806,
|
| 276 |
+
"rewards/accuracies": 0.9703124761581421,
|
| 277 |
+
"rewards/chosen": 0.4807693064212799,
|
| 278 |
+
"rewards/margins": 33.424041748046875,
|
| 279 |
+
"rewards/rejected": -32.943275451660156,
|
| 280 |
+
"step": 180
|
| 281 |
+
}
|
| 282 |
+
],
|
| 283 |
+
"logging_steps": 10,
|
| 284 |
+
"max_steps": 1098,
|
| 285 |
+
"num_input_tokens_seen": 0,
|
| 286 |
+
"num_train_epochs": 6,
|
| 287 |
+
"save_steps": 500,
|
| 288 |
+
"stateful_callbacks": {
|
| 289 |
+
"TrainerControl": {
|
| 290 |
+
"args": {
|
| 291 |
+
"should_epoch_stop": false,
|
| 292 |
+
"should_evaluate": false,
|
| 293 |
+
"should_log": false,
|
| 294 |
+
"should_save": true,
|
| 295 |
+
"should_training_stop": false
|
| 296 |
+
},
|
| 297 |
+
"attributes": {}
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
"total_flos": 0.0,
|
| 301 |
+
"train_batch_size": 4,
|
| 302 |
+
"trial_name": null,
|
| 303 |
+
"trial_params": null
|
| 304 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7789fd19e3b22d6de6b1b2cd69ff66551be72d745bf4062a2a77caaab0386055
|
| 3 |
+
size 6520
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|