Upload model
Browse files- README.md +199 -0
- config.json +63 -0
- generation_config.json +7 -0
- hf_utils.py +301 -0
- model-00001-of-00007.safetensors +3 -0
- model-00002-of-00007.safetensors +3 -0
- model-00003-of-00007.safetensors +3 -0
- model-00004-of-00007.safetensors +3 -0
- model-00005-of-00007.safetensors +3 -0
- model-00006-of-00007.safetensors +3 -0
- model-00007-of-00007.safetensors +3 -0
- model.safetensors.index.json +302 -0
README.md
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags: []
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Model Card for Model ID
|
| 7 |
+
|
| 8 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Model Details
|
| 13 |
+
|
| 14 |
+
### Model Description
|
| 15 |
+
|
| 16 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 17 |
+
|
| 18 |
+
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 19 |
+
|
| 20 |
+
- **Developed by:** [More Information Needed]
|
| 21 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 22 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 23 |
+
- **Model type:** [More Information Needed]
|
| 24 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 25 |
+
- **License:** [More Information Needed]
|
| 26 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 27 |
+
|
| 28 |
+
### Model Sources [optional]
|
| 29 |
+
|
| 30 |
+
<!-- Provide the basic links for the model. -->
|
| 31 |
+
|
| 32 |
+
- **Repository:** [More Information Needed]
|
| 33 |
+
- **Paper [optional]:** [More Information Needed]
|
| 34 |
+
- **Demo [optional]:** [More Information Needed]
|
| 35 |
+
|
| 36 |
+
## Uses
|
| 37 |
+
|
| 38 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 39 |
+
|
| 40 |
+
### Direct Use
|
| 41 |
+
|
| 42 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 43 |
+
|
| 44 |
+
[More Information Needed]
|
| 45 |
+
|
| 46 |
+
### Downstream Use [optional]
|
| 47 |
+
|
| 48 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 49 |
+
|
| 50 |
+
[More Information Needed]
|
| 51 |
+
|
| 52 |
+
### Out-of-Scope Use
|
| 53 |
+
|
| 54 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 55 |
+
|
| 56 |
+
[More Information Needed]
|
| 57 |
+
|
| 58 |
+
## Bias, Risks, and Limitations
|
| 59 |
+
|
| 60 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 61 |
+
|
| 62 |
+
[More Information Needed]
|
| 63 |
+
|
| 64 |
+
### Recommendations
|
| 65 |
+
|
| 66 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 67 |
+
|
| 68 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 69 |
+
|
| 70 |
+
## How to Get Started with the Model
|
| 71 |
+
|
| 72 |
+
Use the code below to get started with the model.
|
| 73 |
+
|
| 74 |
+
[More Information Needed]
|
| 75 |
+
|
| 76 |
+
## Training Details
|
| 77 |
+
|
| 78 |
+
### Training Data
|
| 79 |
+
|
| 80 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 81 |
+
|
| 82 |
+
[More Information Needed]
|
| 83 |
+
|
| 84 |
+
### Training Procedure
|
| 85 |
+
|
| 86 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 87 |
+
|
| 88 |
+
#### Preprocessing [optional]
|
| 89 |
+
|
| 90 |
+
[More Information Needed]
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
#### Training Hyperparameters
|
| 94 |
+
|
| 95 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 96 |
+
|
| 97 |
+
#### Speeds, Sizes, Times [optional]
|
| 98 |
+
|
| 99 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
+
|
| 101 |
+
[More Information Needed]
|
| 102 |
+
|
| 103 |
+
## Evaluation
|
| 104 |
+
|
| 105 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 106 |
+
|
| 107 |
+
### Testing Data, Factors & Metrics
|
| 108 |
+
|
| 109 |
+
#### Testing Data
|
| 110 |
+
|
| 111 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 112 |
+
|
| 113 |
+
[More Information Needed]
|
| 114 |
+
|
| 115 |
+
#### Factors
|
| 116 |
+
|
| 117 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 118 |
+
|
| 119 |
+
[More Information Needed]
|
| 120 |
+
|
| 121 |
+
#### Metrics
|
| 122 |
+
|
| 123 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 124 |
+
|
| 125 |
+
[More Information Needed]
|
| 126 |
+
|
| 127 |
+
### Results
|
| 128 |
+
|
| 129 |
+
[More Information Needed]
|
| 130 |
+
|
| 131 |
+
#### Summary
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
## Model Examination [optional]
|
| 136 |
+
|
| 137 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 138 |
+
|
| 139 |
+
[More Information Needed]
|
| 140 |
+
|
| 141 |
+
## Environmental Impact
|
| 142 |
+
|
| 143 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 144 |
+
|
| 145 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 146 |
+
|
| 147 |
+
- **Hardware Type:** [More Information Needed]
|
| 148 |
+
- **Hours used:** [More Information Needed]
|
| 149 |
+
- **Cloud Provider:** [More Information Needed]
|
| 150 |
+
- **Compute Region:** [More Information Needed]
|
| 151 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
+
|
| 153 |
+
## Technical Specifications [optional]
|
| 154 |
+
|
| 155 |
+
### Model Architecture and Objective
|
| 156 |
+
|
| 157 |
+
[More Information Needed]
|
| 158 |
+
|
| 159 |
+
### Compute Infrastructure
|
| 160 |
+
|
| 161 |
+
[More Information Needed]
|
| 162 |
+
|
| 163 |
+
#### Hardware
|
| 164 |
+
|
| 165 |
+
[More Information Needed]
|
| 166 |
+
|
| 167 |
+
#### Software
|
| 168 |
+
|
| 169 |
+
[More Information Needed]
|
| 170 |
+
|
| 171 |
+
## Citation [optional]
|
| 172 |
+
|
| 173 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 174 |
+
|
| 175 |
+
**BibTeX:**
|
| 176 |
+
|
| 177 |
+
[More Information Needed]
|
| 178 |
+
|
| 179 |
+
**APA:**
|
| 180 |
+
|
| 181 |
+
[More Information Needed]
|
| 182 |
+
|
| 183 |
+
## Glossary [optional]
|
| 184 |
+
|
| 185 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 186 |
+
|
| 187 |
+
[More Information Needed]
|
| 188 |
+
|
| 189 |
+
## More Information [optional]
|
| 190 |
+
|
| 191 |
+
[More Information Needed]
|
| 192 |
+
|
| 193 |
+
## Model Card Authors [optional]
|
| 194 |
+
|
| 195 |
+
[More Information Needed]
|
| 196 |
+
|
| 197 |
+
## Model Card Contact
|
| 198 |
+
|
| 199 |
+
[More Information Needed]
|
config.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"AutoModelForCausalLMWithRM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"auto_map": {
|
| 8 |
+
"AutoConfig": "hf_utils.RewardModelConfig",
|
| 9 |
+
"AutoModel": "hf_utils.AutoModelForCausalLMWithRM"
|
| 10 |
+
},
|
| 11 |
+
"base_config": {
|
| 12 |
+
"_name_or_path": "meta-llama/Meta-Llama-3-8B-Instruct",
|
| 13 |
+
"architectures": [
|
| 14 |
+
"LlamaForCausalLM"
|
| 15 |
+
],
|
| 16 |
+
"bos_token_id": 128000,
|
| 17 |
+
"eos_token_id": 128009,
|
| 18 |
+
"hidden_size": 4096,
|
| 19 |
+
"intermediate_size": 14336,
|
| 20 |
+
"max_position_embeddings": 8192,
|
| 21 |
+
"model_type": "llama",
|
| 22 |
+
"num_attention_heads": 32,
|
| 23 |
+
"num_hidden_layers": 32,
|
| 24 |
+
"num_key_value_heads": 8,
|
| 25 |
+
"rms_norm_eps": 1e-05,
|
| 26 |
+
"rope_theta": 500000.0,
|
| 27 |
+
"torch_dtype": "bfloat16",
|
| 28 |
+
"use_cache": false,
|
| 29 |
+
"vocab_size": 128257
|
| 30 |
+
},
|
| 31 |
+
"base_model": "meta-llama/Meta-Llama-3-8B-Instruct",
|
| 32 |
+
"bias": 0.0,
|
| 33 |
+
"bos_token_id": 128000,
|
| 34 |
+
"eos_token_id": 128009,
|
| 35 |
+
"hidden_act": "silu",
|
| 36 |
+
"hidden_size": 4096,
|
| 37 |
+
"initializer_range": 0.02,
|
| 38 |
+
"intermediate_size": 14336,
|
| 39 |
+
"max_position_embeddings": 8192,
|
| 40 |
+
"mlp_bias": false,
|
| 41 |
+
"model_type": "pairwise_rm",
|
| 42 |
+
"n_labels": 1,
|
| 43 |
+
"num_attention_heads": 32,
|
| 44 |
+
"num_hidden_layers": 32,
|
| 45 |
+
"num_key_value_heads": 8,
|
| 46 |
+
"p_dropout": 0.0,
|
| 47 |
+
"pretrain_cfg": {
|
| 48 |
+
"load_in_8bit": false,
|
| 49 |
+
"token": true,
|
| 50 |
+
"trust_remote_code": null
|
| 51 |
+
},
|
| 52 |
+
"pretrained": true,
|
| 53 |
+
"pretraining_tp": 1,
|
| 54 |
+
"return_logits": false,
|
| 55 |
+
"rms_norm_eps": 1e-05,
|
| 56 |
+
"rope_scaling": null,
|
| 57 |
+
"rope_theta": 500000.0,
|
| 58 |
+
"tie_word_embeddings": false,
|
| 59 |
+
"torch_dtype": "float32",
|
| 60 |
+
"transformers_version": "4.43.4",
|
| 61 |
+
"use_cache": false,
|
| 62 |
+
"vocab_size": 128257
|
| 63 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 128000,
|
| 4 |
+
"eos_token_id": 128009,
|
| 5 |
+
"transformers_version": "4.43.4",
|
| 6 |
+
"use_cache": false
|
| 7 |
+
}
|
hf_utils.py
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2024 MosaicML ComposeRL authors
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
|
| 4 |
+
import os
|
| 5 |
+
from copy import deepcopy
|
| 6 |
+
from dataclasses import dataclass
|
| 7 |
+
from typing import (
|
| 8 |
+
Any,
|
| 9 |
+
Optional,
|
| 10 |
+
Union,
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
import numpy as np
|
| 14 |
+
import torch
|
| 15 |
+
import torch.nn as nn
|
| 16 |
+
from transformers import (
|
| 17 |
+
AutoConfig,
|
| 18 |
+
AutoModelForCausalLM,
|
| 19 |
+
PretrainedConfig,
|
| 20 |
+
PreTrainedModel,
|
| 21 |
+
)
|
| 22 |
+
from transformers.modeling_outputs import ModelOutput
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
@dataclass
|
| 26 |
+
class SequenceClassifierOutput(ModelOutput):
|
| 27 |
+
"""Sequence Classification Output.
|
| 28 |
+
|
| 29 |
+
Args:
|
| 30 |
+
loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `labels` is provided):
|
| 31 |
+
Classification (or regression if config.num_labels==1) loss.
|
| 32 |
+
scores (`torch.FloatTensor` of shape `(batch_size, config.num_labels)`):
|
| 33 |
+
Classification (or regression if config.num_labels==1) scores (before SoftMax).
|
| 34 |
+
logits (`torch.FloatTensor` of shape `(batch_size, sequence_length, config.vocab_size)`):
|
| 35 |
+
Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).
|
| 36 |
+
past_key_values (`tuple(tuple(torch.FloatTensor))`, *optional*, returned when `use_cache=True` is passed or when `config.use_cache=True`):
|
| 37 |
+
tuple of `tuple(torch.FloatTensor)` of length `config.n_layers`, with each tuple having 2 tensors of shape
|
| 38 |
+
`(batch_size, num_heads, sequence_length, embed_size_per_head)`)
|
| 39 |
+
|
| 40 |
+
Contains pre-computed hidden-states (key and values in the self-attention blocks) that can be used (see
|
| 41 |
+
`past_key_values` input) to speed up sequential decoding.
|
| 42 |
+
hidden_states (`tuple(torch.FloatTensor)`, *optional*, returned when `output_hidden_states=True` is passed or when `config.output_hidden_states=True`):
|
| 43 |
+
tuple of `torch.FloatTensor` (one for the output of the embeddings, if the model has an embedding layer, +
|
| 44 |
+
one for the output of each layer) of shape `(batch_size, sequence_length, hidden_size)`.
|
| 45 |
+
|
| 46 |
+
Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.
|
| 47 |
+
attentions (`tuple(torch.FloatTensor)`, *optional*, returned when `output_attentions=True` is passed or when `config.output_attentions=True`):
|
| 48 |
+
tuple of `torch.FloatTensor` (one for each layer) of shape `(batch_size, num_heads, sequence_length,
|
| 49 |
+
sequence_length)`.
|
| 50 |
+
|
| 51 |
+
Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
|
| 52 |
+
heads.
|
| 53 |
+
"""
|
| 54 |
+
|
| 55 |
+
loss: Optional[torch.FloatTensor] = None
|
| 56 |
+
scores: Optional[torch.FloatTensor] = None
|
| 57 |
+
logits: Optional[torch.FloatTensor] = None
|
| 58 |
+
past_key_values: Optional[tuple[tuple[torch.FloatTensor]]] = None
|
| 59 |
+
hidden_states: Optional[tuple[torch.FloatTensor, ...]] = None
|
| 60 |
+
attentions: Optional[tuple[torch.FloatTensor, ...]] = None
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
class ValueHead(nn.Module):
|
| 64 |
+
"""Value head for the transformer which outputs n_labels values."""
|
| 65 |
+
|
| 66 |
+
def __init__(self, n_labels: int, hidden_size: int, p_dropout: float = 0.0):
|
| 67 |
+
super().__init__()
|
| 68 |
+
self.dense = nn.Linear(hidden_size, hidden_size)
|
| 69 |
+
self.dropout = nn.Dropout(p_dropout)
|
| 70 |
+
self.score = nn.Linear(hidden_size, n_labels)
|
| 71 |
+
torch.nn.init.normal_(
|
| 72 |
+
self.score.weight,
|
| 73 |
+
std=1 / np.sqrt(hidden_size + 1),
|
| 74 |
+
)
|
| 75 |
+
torch.nn.init.constant_(self.score.bias, val=0.0)
|
| 76 |
+
|
| 77 |
+
def forward(
|
| 78 |
+
self,
|
| 79 |
+
hidden_states: torch.Tensor,
|
| 80 |
+
**kwargs: Any,
|
| 81 |
+
) -> torch.Tensor:
|
| 82 |
+
hidden_states = self.dropout(hidden_states)
|
| 83 |
+
hidden_states = self.dense(hidden_states)
|
| 84 |
+
hidden_states = torch.tanh(hidden_states)
|
| 85 |
+
hidden_states = self.dropout(hidden_states)
|
| 86 |
+
output = self.score(hidden_states)
|
| 87 |
+
return output
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
class RewardModelConfig(PretrainedConfig):
|
| 91 |
+
model_type = 'pairwise_rm'
|
| 92 |
+
|
| 93 |
+
def __init__(
|
| 94 |
+
self,
|
| 95 |
+
base_model: Optional[Union[str, os.PathLike]
|
| 96 |
+
] = 'meta-llama/Meta-Llama-3-70B-Instruct',
|
| 97 |
+
base_config: Optional[PretrainedConfig] = None,
|
| 98 |
+
p_dropout: float = 0.0,
|
| 99 |
+
n_labels: int = 1,
|
| 100 |
+
bias: float = 0.0,
|
| 101 |
+
return_logits: bool = False,
|
| 102 |
+
pretrain_cfg: Optional[dict[str, Any]] = None,
|
| 103 |
+
pretrained: bool = False,
|
| 104 |
+
**kwargs: Any,
|
| 105 |
+
):
|
| 106 |
+
super().__init__(**kwargs)
|
| 107 |
+
self.base_model = base_model
|
| 108 |
+
self.base_config = base_config if base_config is not None else AutoConfig.from_pretrained(
|
| 109 |
+
base_model,
|
| 110 |
+
)
|
| 111 |
+
temp_config = deepcopy(self.base_config)
|
| 112 |
+
if not isinstance(temp_config, dict):
|
| 113 |
+
temp_config = temp_config.__dict__
|
| 114 |
+
for key, value in temp_config.items():
|
| 115 |
+
if key not in ['_name_or_path', 'architectures']:
|
| 116 |
+
setattr(self, key, value)
|
| 117 |
+
self.p_dropout = p_dropout
|
| 118 |
+
self.n_labels = n_labels
|
| 119 |
+
self.bias = bias
|
| 120 |
+
self.return_logits = return_logits
|
| 121 |
+
self.pretrain_cfg = pretrain_cfg if pretrain_cfg is not None else {}
|
| 122 |
+
self.pretrained = pretrained
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
class AutoModelForCausalLMWithRM(PreTrainedModel):
|
| 126 |
+
config_class = RewardModelConfig
|
| 127 |
+
|
| 128 |
+
def __init__(self, config: RewardModelConfig):
|
| 129 |
+
super().__init__(config)
|
| 130 |
+
self.config = config
|
| 131 |
+
pretrain_cfg = config.pretrain_cfg
|
| 132 |
+
pretrained = config.pretrained
|
| 133 |
+
if pretrained:
|
| 134 |
+
self.lm_backbone = AutoModelForCausalLM.from_pretrained(
|
| 135 |
+
config.base_model,
|
| 136 |
+
config=config.base_config,
|
| 137 |
+
**pretrain_cfg,
|
| 138 |
+
)
|
| 139 |
+
else:
|
| 140 |
+
#hack for now
|
| 141 |
+
if isinstance(config.base_config, dict):
|
| 142 |
+
config.base_config = AutoConfig.from_pretrained(
|
| 143 |
+
config.base_model,
|
| 144 |
+
**config.base_config,
|
| 145 |
+
)
|
| 146 |
+
self.lm_backbone = AutoModelForCausalLM.from_config(
|
| 147 |
+
config.base_config,
|
| 148 |
+
trust_remote_code=True,
|
| 149 |
+
)
|
| 150 |
+
self.value_head = ValueHead(
|
| 151 |
+
n_labels=self.config.n_labels,
|
| 152 |
+
hidden_size=self.config.hidden_size,
|
| 153 |
+
p_dropout=self.config.p_dropout,
|
| 154 |
+
)
|
| 155 |
+
|
| 156 |
+
def generate(self, *args: Any, **kwargs: Any):
|
| 157 |
+
return self.lm_backbone.generate(**kwargs)
|
| 158 |
+
|
| 159 |
+
def resize_token_embeddings(
|
| 160 |
+
self,
|
| 161 |
+
new_num_tokens: Optional[int] = None,
|
| 162 |
+
pad_to_multiple_of: Optional[int] = None,
|
| 163 |
+
) -> nn.Embedding:
|
| 164 |
+
# Note need to update vocab size in base config as well so lm_head modification happens
|
| 165 |
+
self.config.base_config.vocab_size = new_num_tokens
|
| 166 |
+
model_embeds = super().resize_token_embeddings(
|
| 167 |
+
new_num_tokens=new_num_tokens,
|
| 168 |
+
pad_to_multiple_of=pad_to_multiple_of,
|
| 169 |
+
)
|
| 170 |
+
return model_embeds
|
| 171 |
+
|
| 172 |
+
def set_input_embeddings(self, new_embeddings: Any):
|
| 173 |
+
return self.lm_backbone.set_input_embeddings(new_embeddings)
|
| 174 |
+
|
| 175 |
+
def get_input_embeddings(self):
|
| 176 |
+
return self.lm_backbone.get_input_embeddings()
|
| 177 |
+
|
| 178 |
+
def set_output_embeddings(self, new_embeddings: Any):
|
| 179 |
+
return self.lm_backbone.set_output_embeddings(new_embeddings)
|
| 180 |
+
|
| 181 |
+
def get_output_embeddings(self):
|
| 182 |
+
return self.lm_backbone.get_output_embeddings()
|
| 183 |
+
|
| 184 |
+
def forward(
|
| 185 |
+
self,
|
| 186 |
+
input_ids: Optional[torch.LongTensor] = None,
|
| 187 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 188 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 189 |
+
past_key_values: Optional[Any] = None,
|
| 190 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 191 |
+
labels: Optional[torch.LongTensor] = None,
|
| 192 |
+
use_cache: Optional[bool] = None,
|
| 193 |
+
output_attentions: Optional[bool] = None,
|
| 194 |
+
output_hidden_states: Optional[bool] = None,
|
| 195 |
+
return_dict: Optional[bool] = None,
|
| 196 |
+
cache_position: Optional[torch.LongTensor] = None,
|
| 197 |
+
**kwargs: Any,
|
| 198 |
+
):
|
| 199 |
+
output = self.lm_backbone(
|
| 200 |
+
input_ids=input_ids,
|
| 201 |
+
attention_mask=attention_mask,
|
| 202 |
+
position_ids=position_ids,
|
| 203 |
+
past_key_values=past_key_values,
|
| 204 |
+
inputs_embeds=inputs_embeds,
|
| 205 |
+
labels=labels,
|
| 206 |
+
use_cache=use_cache,
|
| 207 |
+
output_attentions=output_attentions,
|
| 208 |
+
output_hidden_states=True,
|
| 209 |
+
return_dict=True,
|
| 210 |
+
cache_position=cache_position,
|
| 211 |
+
)
|
| 212 |
+
scores = self.value_head(
|
| 213 |
+
output.hidden_states[-1],
|
| 214 |
+
).squeeze(-1) - self.config.bias
|
| 215 |
+
|
| 216 |
+
logits = None
|
| 217 |
+
if self.config.return_logits:
|
| 218 |
+
logits = output.logits
|
| 219 |
+
|
| 220 |
+
return SequenceClassifierOutput(
|
| 221 |
+
loss=output.loss,
|
| 222 |
+
scores=scores,
|
| 223 |
+
logits=logits,
|
| 224 |
+
past_key_values=output.past_key_values,
|
| 225 |
+
hidden_states=output.hidden_states,
|
| 226 |
+
attentions=output.attentions,
|
| 227 |
+
)
|
| 228 |
+
|
| 229 |
+
@classmethod
|
| 230 |
+
def from_config(
|
| 231 |
+
cls,
|
| 232 |
+
config: PretrainedConfig,
|
| 233 |
+
**kwargs: Any,
|
| 234 |
+
) -> PreTrainedModel:
|
| 235 |
+
return cls._from_config(config, **kwargs)
|
| 236 |
+
|
| 237 |
+
@classmethod
|
| 238 |
+
def from_pretrained(
|
| 239 |
+
cls,
|
| 240 |
+
pretrained_model_name_or_path: Optional[Union[str, os.PathLike]],
|
| 241 |
+
*model_args: Any,
|
| 242 |
+
config: Optional[Union[PretrainedConfig, str, os.PathLike]] = None,
|
| 243 |
+
cache_dir: Optional[Union[str, os.PathLike]] = None,
|
| 244 |
+
ignore_mismatched_sizes: bool = False,
|
| 245 |
+
force_download: bool = False,
|
| 246 |
+
local_files_only: bool = False,
|
| 247 |
+
token: Optional[Union[str, bool]] = None,
|
| 248 |
+
revision: str = 'main',
|
| 249 |
+
use_safetensors: Optional[bool] = None,
|
| 250 |
+
**kwargs: Any,
|
| 251 |
+
) -> PreTrainedModel:
|
| 252 |
+
trust_remote_code = kwargs.pop('trust_remote_code', None)
|
| 253 |
+
use_flash_attention_2 = kwargs.pop('use_flash_attention_2', False)
|
| 254 |
+
return_lm_logits = kwargs.pop('return_lm_logits', False)
|
| 255 |
+
load_in_8bit = kwargs.pop('load_in_8bit', False)
|
| 256 |
+
|
| 257 |
+
requested_attention_implementation = 'flash_attention_2' if use_flash_attention_2 else 'eager'
|
| 258 |
+
|
| 259 |
+
pretrained_model_config = AutoConfig.from_pretrained(
|
| 260 |
+
pretrained_model_name_or_path,
|
| 261 |
+
trust_remote_code=trust_remote_code,
|
| 262 |
+
token=True,
|
| 263 |
+
attn_implementation=requested_attention_implementation,
|
| 264 |
+
use_cache=False,
|
| 265 |
+
)
|
| 266 |
+
|
| 267 |
+
if isinstance(pretrained_model_config, cls.config_class):
|
| 268 |
+
return super().from_pretrained(
|
| 269 |
+
pretrained_model_name_or_path,
|
| 270 |
+
*model_args,
|
| 271 |
+
config,
|
| 272 |
+
cache_dir,
|
| 273 |
+
ignore_mismatched_sizes,
|
| 274 |
+
force_download,
|
| 275 |
+
local_files_only,
|
| 276 |
+
token,
|
| 277 |
+
revision,
|
| 278 |
+
use_safetensors,
|
| 279 |
+
**kwargs,
|
| 280 |
+
)
|
| 281 |
+
|
| 282 |
+
pretrain_cfg = {
|
| 283 |
+
'trust_remote_code': trust_remote_code,
|
| 284 |
+
'token': True,
|
| 285 |
+
'load_in_8bit': load_in_8bit,
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
reward_model_config = RewardModelConfig(
|
| 289 |
+
base_model=pretrained_model_name_or_path,
|
| 290 |
+
base_config=pretrained_model_config,
|
| 291 |
+
hidden_size=pretrained_model_config.hidden_size,
|
| 292 |
+
torch_dtype=pretrained_model_config.torch_dtype,
|
| 293 |
+
return_logits=return_lm_logits,
|
| 294 |
+
vocab_size=pretrained_model_config.vocab_size,
|
| 295 |
+
pretrained=True,
|
| 296 |
+
pretrain_cfg=pretrain_cfg,
|
| 297 |
+
)
|
| 298 |
+
|
| 299 |
+
model = cls(reward_model_config)
|
| 300 |
+
|
| 301 |
+
return model
|
model-00001-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6252f48f57a50cb350bf7134ad37560b6afda36fcc59e90801be9f6fdb9bd083
|
| 3 |
+
size 4886482936
|
model-00002-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5feb08be199796b2111671d1fae777ea0087df108773b4c161c0b15455a1222
|
| 3 |
+
size 4832008016
|
model-00003-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7df173c3478e3d905c99bd3403a692bda5f18173b85c863387c6eb6787dc5d6d
|
| 3 |
+
size 4999813744
|
model-00004-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28c2f6af9f81b6fde6450d181f8877e81d5147eab76e09b048a3d9f5d6b26393
|
| 3 |
+
size 4999813760
|
model-00005-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f20eebccfe5c1a09deb4eb6e98c0bbc96adb22a557e94705fff5e257b229021
|
| 3 |
+
size 4832008064
|
model-00006-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c1f33a89739c1f92af52ff0dd959beda69986af35752553ee09a8da1596171e
|
| 3 |
+
size 4999813760
|
model-00007-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5af9af7b0b93daf672f318385585229c60b63285d520d93f9529555d70b67486
|
| 3 |
+
size 2638316660
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 32188219396
|
| 4 |
+
},
|
| 5 |
+
"weight_map": {
|
| 6 |
+
"lm_backbone.lm_head.weight": "model-00007-of-00007.safetensors",
|
| 7 |
+
"lm_backbone.model.embed_tokens.weight": "model-00001-of-00007.safetensors",
|
| 8 |
+
"lm_backbone.model.layers.0.input_layernorm.weight": "model-00001-of-00007.safetensors",
|
| 9 |
+
"lm_backbone.model.layers.0.mlp.down_proj.weight": "model-00001-of-00007.safetensors",
|
| 10 |
+
"lm_backbone.model.layers.0.mlp.gate_proj.weight": "model-00001-of-00007.safetensors",
|
| 11 |
+
"lm_backbone.model.layers.0.mlp.up_proj.weight": "model-00001-of-00007.safetensors",
|
| 12 |
+
"lm_backbone.model.layers.0.post_attention_layernorm.weight": "model-00001-of-00007.safetensors",
|
| 13 |
+
"lm_backbone.model.layers.0.self_attn.k_proj.weight": "model-00001-of-00007.safetensors",
|
| 14 |
+
"lm_backbone.model.layers.0.self_attn.o_proj.weight": "model-00001-of-00007.safetensors",
|
| 15 |
+
"lm_backbone.model.layers.0.self_attn.q_proj.weight": "model-00001-of-00007.safetensors",
|
| 16 |
+
"lm_backbone.model.layers.0.self_attn.v_proj.weight": "model-00001-of-00007.safetensors",
|
| 17 |
+
"lm_backbone.model.layers.1.input_layernorm.weight": "model-00001-of-00007.safetensors",
|
| 18 |
+
"lm_backbone.model.layers.1.mlp.down_proj.weight": "model-00001-of-00007.safetensors",
|
| 19 |
+
"lm_backbone.model.layers.1.mlp.gate_proj.weight": "model-00001-of-00007.safetensors",
|
| 20 |
+
"lm_backbone.model.layers.1.mlp.up_proj.weight": "model-00001-of-00007.safetensors",
|
| 21 |
+
"lm_backbone.model.layers.1.post_attention_layernorm.weight": "model-00001-of-00007.safetensors",
|
| 22 |
+
"lm_backbone.model.layers.1.self_attn.k_proj.weight": "model-00001-of-00007.safetensors",
|
| 23 |
+
"lm_backbone.model.layers.1.self_attn.o_proj.weight": "model-00001-of-00007.safetensors",
|
| 24 |
+
"lm_backbone.model.layers.1.self_attn.q_proj.weight": "model-00001-of-00007.safetensors",
|
| 25 |
+
"lm_backbone.model.layers.1.self_attn.v_proj.weight": "model-00001-of-00007.safetensors",
|
| 26 |
+
"lm_backbone.model.layers.10.input_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 27 |
+
"lm_backbone.model.layers.10.mlp.down_proj.weight": "model-00003-of-00007.safetensors",
|
| 28 |
+
"lm_backbone.model.layers.10.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
|
| 29 |
+
"lm_backbone.model.layers.10.mlp.up_proj.weight": "model-00003-of-00007.safetensors",
|
| 30 |
+
"lm_backbone.model.layers.10.post_attention_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 31 |
+
"lm_backbone.model.layers.10.self_attn.k_proj.weight": "model-00003-of-00007.safetensors",
|
| 32 |
+
"lm_backbone.model.layers.10.self_attn.o_proj.weight": "model-00003-of-00007.safetensors",
|
| 33 |
+
"lm_backbone.model.layers.10.self_attn.q_proj.weight": "model-00003-of-00007.safetensors",
|
| 34 |
+
"lm_backbone.model.layers.10.self_attn.v_proj.weight": "model-00003-of-00007.safetensors",
|
| 35 |
+
"lm_backbone.model.layers.11.input_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 36 |
+
"lm_backbone.model.layers.11.mlp.down_proj.weight": "model-00003-of-00007.safetensors",
|
| 37 |
+
"lm_backbone.model.layers.11.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
|
| 38 |
+
"lm_backbone.model.layers.11.mlp.up_proj.weight": "model-00003-of-00007.safetensors",
|
| 39 |
+
"lm_backbone.model.layers.11.post_attention_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 40 |
+
"lm_backbone.model.layers.11.self_attn.k_proj.weight": "model-00003-of-00007.safetensors",
|
| 41 |
+
"lm_backbone.model.layers.11.self_attn.o_proj.weight": "model-00003-of-00007.safetensors",
|
| 42 |
+
"lm_backbone.model.layers.11.self_attn.q_proj.weight": "model-00003-of-00007.safetensors",
|
| 43 |
+
"lm_backbone.model.layers.11.self_attn.v_proj.weight": "model-00003-of-00007.safetensors",
|
| 44 |
+
"lm_backbone.model.layers.12.input_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 45 |
+
"lm_backbone.model.layers.12.mlp.down_proj.weight": "model-00003-of-00007.safetensors",
|
| 46 |
+
"lm_backbone.model.layers.12.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
|
| 47 |
+
"lm_backbone.model.layers.12.mlp.up_proj.weight": "model-00003-of-00007.safetensors",
|
| 48 |
+
"lm_backbone.model.layers.12.post_attention_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 49 |
+
"lm_backbone.model.layers.12.self_attn.k_proj.weight": "model-00003-of-00007.safetensors",
|
| 50 |
+
"lm_backbone.model.layers.12.self_attn.o_proj.weight": "model-00003-of-00007.safetensors",
|
| 51 |
+
"lm_backbone.model.layers.12.self_attn.q_proj.weight": "model-00003-of-00007.safetensors",
|
| 52 |
+
"lm_backbone.model.layers.12.self_attn.v_proj.weight": "model-00003-of-00007.safetensors",
|
| 53 |
+
"lm_backbone.model.layers.13.input_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 54 |
+
"lm_backbone.model.layers.13.mlp.down_proj.weight": "model-00003-of-00007.safetensors",
|
| 55 |
+
"lm_backbone.model.layers.13.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
|
| 56 |
+
"lm_backbone.model.layers.13.mlp.up_proj.weight": "model-00003-of-00007.safetensors",
|
| 57 |
+
"lm_backbone.model.layers.13.post_attention_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 58 |
+
"lm_backbone.model.layers.13.self_attn.k_proj.weight": "model-00003-of-00007.safetensors",
|
| 59 |
+
"lm_backbone.model.layers.13.self_attn.o_proj.weight": "model-00003-of-00007.safetensors",
|
| 60 |
+
"lm_backbone.model.layers.13.self_attn.q_proj.weight": "model-00003-of-00007.safetensors",
|
| 61 |
+
"lm_backbone.model.layers.13.self_attn.v_proj.weight": "model-00003-of-00007.safetensors",
|
| 62 |
+
"lm_backbone.model.layers.14.input_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 63 |
+
"lm_backbone.model.layers.14.mlp.down_proj.weight": "model-00004-of-00007.safetensors",
|
| 64 |
+
"lm_backbone.model.layers.14.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
|
| 65 |
+
"lm_backbone.model.layers.14.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
|
| 66 |
+
"lm_backbone.model.layers.14.post_attention_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 67 |
+
"lm_backbone.model.layers.14.self_attn.k_proj.weight": "model-00003-of-00007.safetensors",
|
| 68 |
+
"lm_backbone.model.layers.14.self_attn.o_proj.weight": "model-00003-of-00007.safetensors",
|
| 69 |
+
"lm_backbone.model.layers.14.self_attn.q_proj.weight": "model-00003-of-00007.safetensors",
|
| 70 |
+
"lm_backbone.model.layers.14.self_attn.v_proj.weight": "model-00003-of-00007.safetensors",
|
| 71 |
+
"lm_backbone.model.layers.15.input_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 72 |
+
"lm_backbone.model.layers.15.mlp.down_proj.weight": "model-00004-of-00007.safetensors",
|
| 73 |
+
"lm_backbone.model.layers.15.mlp.gate_proj.weight": "model-00004-of-00007.safetensors",
|
| 74 |
+
"lm_backbone.model.layers.15.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
|
| 75 |
+
"lm_backbone.model.layers.15.post_attention_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 76 |
+
"lm_backbone.model.layers.15.self_attn.k_proj.weight": "model-00004-of-00007.safetensors",
|
| 77 |
+
"lm_backbone.model.layers.15.self_attn.o_proj.weight": "model-00004-of-00007.safetensors",
|
| 78 |
+
"lm_backbone.model.layers.15.self_attn.q_proj.weight": "model-00004-of-00007.safetensors",
|
| 79 |
+
"lm_backbone.model.layers.15.self_attn.v_proj.weight": "model-00004-of-00007.safetensors",
|
| 80 |
+
"lm_backbone.model.layers.16.input_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 81 |
+
"lm_backbone.model.layers.16.mlp.down_proj.weight": "model-00004-of-00007.safetensors",
|
| 82 |
+
"lm_backbone.model.layers.16.mlp.gate_proj.weight": "model-00004-of-00007.safetensors",
|
| 83 |
+
"lm_backbone.model.layers.16.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
|
| 84 |
+
"lm_backbone.model.layers.16.post_attention_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 85 |
+
"lm_backbone.model.layers.16.self_attn.k_proj.weight": "model-00004-of-00007.safetensors",
|
| 86 |
+
"lm_backbone.model.layers.16.self_attn.o_proj.weight": "model-00004-of-00007.safetensors",
|
| 87 |
+
"lm_backbone.model.layers.16.self_attn.q_proj.weight": "model-00004-of-00007.safetensors",
|
| 88 |
+
"lm_backbone.model.layers.16.self_attn.v_proj.weight": "model-00004-of-00007.safetensors",
|
| 89 |
+
"lm_backbone.model.layers.17.input_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 90 |
+
"lm_backbone.model.layers.17.mlp.down_proj.weight": "model-00004-of-00007.safetensors",
|
| 91 |
+
"lm_backbone.model.layers.17.mlp.gate_proj.weight": "model-00004-of-00007.safetensors",
|
| 92 |
+
"lm_backbone.model.layers.17.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
|
| 93 |
+
"lm_backbone.model.layers.17.post_attention_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 94 |
+
"lm_backbone.model.layers.17.self_attn.k_proj.weight": "model-00004-of-00007.safetensors",
|
| 95 |
+
"lm_backbone.model.layers.17.self_attn.o_proj.weight": "model-00004-of-00007.safetensors",
|
| 96 |
+
"lm_backbone.model.layers.17.self_attn.q_proj.weight": "model-00004-of-00007.safetensors",
|
| 97 |
+
"lm_backbone.model.layers.17.self_attn.v_proj.weight": "model-00004-of-00007.safetensors",
|
| 98 |
+
"lm_backbone.model.layers.18.input_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 99 |
+
"lm_backbone.model.layers.18.mlp.down_proj.weight": "model-00004-of-00007.safetensors",
|
| 100 |
+
"lm_backbone.model.layers.18.mlp.gate_proj.weight": "model-00004-of-00007.safetensors",
|
| 101 |
+
"lm_backbone.model.layers.18.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
|
| 102 |
+
"lm_backbone.model.layers.18.post_attention_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 103 |
+
"lm_backbone.model.layers.18.self_attn.k_proj.weight": "model-00004-of-00007.safetensors",
|
| 104 |
+
"lm_backbone.model.layers.18.self_attn.o_proj.weight": "model-00004-of-00007.safetensors",
|
| 105 |
+
"lm_backbone.model.layers.18.self_attn.q_proj.weight": "model-00004-of-00007.safetensors",
|
| 106 |
+
"lm_backbone.model.layers.18.self_attn.v_proj.weight": "model-00004-of-00007.safetensors",
|
| 107 |
+
"lm_backbone.model.layers.19.input_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 108 |
+
"lm_backbone.model.layers.19.mlp.down_proj.weight": "model-00004-of-00007.safetensors",
|
| 109 |
+
"lm_backbone.model.layers.19.mlp.gate_proj.weight": "model-00004-of-00007.safetensors",
|
| 110 |
+
"lm_backbone.model.layers.19.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
|
| 111 |
+
"lm_backbone.model.layers.19.post_attention_layernorm.weight": "model-00004-of-00007.safetensors",
|
| 112 |
+
"lm_backbone.model.layers.19.self_attn.k_proj.weight": "model-00004-of-00007.safetensors",
|
| 113 |
+
"lm_backbone.model.layers.19.self_attn.o_proj.weight": "model-00004-of-00007.safetensors",
|
| 114 |
+
"lm_backbone.model.layers.19.self_attn.q_proj.weight": "model-00004-of-00007.safetensors",
|
| 115 |
+
"lm_backbone.model.layers.19.self_attn.v_proj.weight": "model-00004-of-00007.safetensors",
|
| 116 |
+
"lm_backbone.model.layers.2.input_layernorm.weight": "model-00001-of-00007.safetensors",
|
| 117 |
+
"lm_backbone.model.layers.2.mlp.down_proj.weight": "model-00001-of-00007.safetensors",
|
| 118 |
+
"lm_backbone.model.layers.2.mlp.gate_proj.weight": "model-00001-of-00007.safetensors",
|
| 119 |
+
"lm_backbone.model.layers.2.mlp.up_proj.weight": "model-00001-of-00007.safetensors",
|
| 120 |
+
"lm_backbone.model.layers.2.post_attention_layernorm.weight": "model-00001-of-00007.safetensors",
|
| 121 |
+
"lm_backbone.model.layers.2.self_attn.k_proj.weight": "model-00001-of-00007.safetensors",
|
| 122 |
+
"lm_backbone.model.layers.2.self_attn.o_proj.weight": "model-00001-of-00007.safetensors",
|
| 123 |
+
"lm_backbone.model.layers.2.self_attn.q_proj.weight": "model-00001-of-00007.safetensors",
|
| 124 |
+
"lm_backbone.model.layers.2.self_attn.v_proj.weight": "model-00001-of-00007.safetensors",
|
| 125 |
+
"lm_backbone.model.layers.20.input_layernorm.weight": "model-00005-of-00007.safetensors",
|
| 126 |
+
"lm_backbone.model.layers.20.mlp.down_proj.weight": "model-00005-of-00007.safetensors",
|
| 127 |
+
"lm_backbone.model.layers.20.mlp.gate_proj.weight": "model-00005-of-00007.safetensors",
|
| 128 |
+
"lm_backbone.model.layers.20.mlp.up_proj.weight": "model-00005-of-00007.safetensors",
|
| 129 |
+
"lm_backbone.model.layers.20.post_attention_layernorm.weight": "model-00005-of-00007.safetensors",
|
| 130 |
+
"lm_backbone.model.layers.20.self_attn.k_proj.weight": "model-00004-of-00007.safetensors",
|
| 131 |
+
"lm_backbone.model.layers.20.self_attn.o_proj.weight": "model-00004-of-00007.safetensors",
|
| 132 |
+
"lm_backbone.model.layers.20.self_attn.q_proj.weight": "model-00004-of-00007.safetensors",
|
| 133 |
+
"lm_backbone.model.layers.20.self_attn.v_proj.weight": "model-00004-of-00007.safetensors",
|
| 134 |
+
"lm_backbone.model.layers.21.input_layernorm.weight": "model-00005-of-00007.safetensors",
|
| 135 |
+
"lm_backbone.model.layers.21.mlp.down_proj.weight": "model-00005-of-00007.safetensors",
|
| 136 |
+
"lm_backbone.model.layers.21.mlp.gate_proj.weight": "model-00005-of-00007.safetensors",
|
| 137 |
+
"lm_backbone.model.layers.21.mlp.up_proj.weight": "model-00005-of-00007.safetensors",
|
| 138 |
+
"lm_backbone.model.layers.21.post_attention_layernorm.weight": "model-00005-of-00007.safetensors",
|
| 139 |
+
"lm_backbone.model.layers.21.self_attn.k_proj.weight": "model-00005-of-00007.safetensors",
|
| 140 |
+
"lm_backbone.model.layers.21.self_attn.o_proj.weight": "model-00005-of-00007.safetensors",
|
| 141 |
+
"lm_backbone.model.layers.21.self_attn.q_proj.weight": "model-00005-of-00007.safetensors",
|
| 142 |
+
"lm_backbone.model.layers.21.self_attn.v_proj.weight": "model-00005-of-00007.safetensors",
|
| 143 |
+
"lm_backbone.model.layers.22.input_layernorm.weight": "model-00005-of-00007.safetensors",
|
| 144 |
+
"lm_backbone.model.layers.22.mlp.down_proj.weight": "model-00005-of-00007.safetensors",
|
| 145 |
+
"lm_backbone.model.layers.22.mlp.gate_proj.weight": "model-00005-of-00007.safetensors",
|
| 146 |
+
"lm_backbone.model.layers.22.mlp.up_proj.weight": "model-00005-of-00007.safetensors",
|
| 147 |
+
"lm_backbone.model.layers.22.post_attention_layernorm.weight": "model-00005-of-00007.safetensors",
|
| 148 |
+
"lm_backbone.model.layers.22.self_attn.k_proj.weight": "model-00005-of-00007.safetensors",
|
| 149 |
+
"lm_backbone.model.layers.22.self_attn.o_proj.weight": "model-00005-of-00007.safetensors",
|
| 150 |
+
"lm_backbone.model.layers.22.self_attn.q_proj.weight": "model-00005-of-00007.safetensors",
|
| 151 |
+
"lm_backbone.model.layers.22.self_attn.v_proj.weight": "model-00005-of-00007.safetensors",
|
| 152 |
+
"lm_backbone.model.layers.23.input_layernorm.weight": "model-00005-of-00007.safetensors",
|
| 153 |
+
"lm_backbone.model.layers.23.mlp.down_proj.weight": "model-00005-of-00007.safetensors",
|
| 154 |
+
"lm_backbone.model.layers.23.mlp.gate_proj.weight": "model-00005-of-00007.safetensors",
|
| 155 |
+
"lm_backbone.model.layers.23.mlp.up_proj.weight": "model-00005-of-00007.safetensors",
|
| 156 |
+
"lm_backbone.model.layers.23.post_attention_layernorm.weight": "model-00005-of-00007.safetensors",
|
| 157 |
+
"lm_backbone.model.layers.23.self_attn.k_proj.weight": "model-00005-of-00007.safetensors",
|
| 158 |
+
"lm_backbone.model.layers.23.self_attn.o_proj.weight": "model-00005-of-00007.safetensors",
|
| 159 |
+
"lm_backbone.model.layers.23.self_attn.q_proj.weight": "model-00005-of-00007.safetensors",
|
| 160 |
+
"lm_backbone.model.layers.23.self_attn.v_proj.weight": "model-00005-of-00007.safetensors",
|
| 161 |
+
"lm_backbone.model.layers.24.input_layernorm.weight": "model-00005-of-00007.safetensors",
|
| 162 |
+
"lm_backbone.model.layers.24.mlp.down_proj.weight": "model-00005-of-00007.safetensors",
|
| 163 |
+
"lm_backbone.model.layers.24.mlp.gate_proj.weight": "model-00005-of-00007.safetensors",
|
| 164 |
+
"lm_backbone.model.layers.24.mlp.up_proj.weight": "model-00005-of-00007.safetensors",
|
| 165 |
+
"lm_backbone.model.layers.24.post_attention_layernorm.weight": "model-00005-of-00007.safetensors",
|
| 166 |
+
"lm_backbone.model.layers.24.self_attn.k_proj.weight": "model-00005-of-00007.safetensors",
|
| 167 |
+
"lm_backbone.model.layers.24.self_attn.o_proj.weight": "model-00005-of-00007.safetensors",
|
| 168 |
+
"lm_backbone.model.layers.24.self_attn.q_proj.weight": "model-00005-of-00007.safetensors",
|
| 169 |
+
"lm_backbone.model.layers.24.self_attn.v_proj.weight": "model-00005-of-00007.safetensors",
|
| 170 |
+
"lm_backbone.model.layers.25.input_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 171 |
+
"lm_backbone.model.layers.25.mlp.down_proj.weight": "model-00006-of-00007.safetensors",
|
| 172 |
+
"lm_backbone.model.layers.25.mlp.gate_proj.weight": "model-00005-of-00007.safetensors",
|
| 173 |
+
"lm_backbone.model.layers.25.mlp.up_proj.weight": "model-00005-of-00007.safetensors",
|
| 174 |
+
"lm_backbone.model.layers.25.post_attention_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 175 |
+
"lm_backbone.model.layers.25.self_attn.k_proj.weight": "model-00005-of-00007.safetensors",
|
| 176 |
+
"lm_backbone.model.layers.25.self_attn.o_proj.weight": "model-00005-of-00007.safetensors",
|
| 177 |
+
"lm_backbone.model.layers.25.self_attn.q_proj.weight": "model-00005-of-00007.safetensors",
|
| 178 |
+
"lm_backbone.model.layers.25.self_attn.v_proj.weight": "model-00005-of-00007.safetensors",
|
| 179 |
+
"lm_backbone.model.layers.26.input_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 180 |
+
"lm_backbone.model.layers.26.mlp.down_proj.weight": "model-00006-of-00007.safetensors",
|
| 181 |
+
"lm_backbone.model.layers.26.mlp.gate_proj.weight": "model-00006-of-00007.safetensors",
|
| 182 |
+
"lm_backbone.model.layers.26.mlp.up_proj.weight": "model-00006-of-00007.safetensors",
|
| 183 |
+
"lm_backbone.model.layers.26.post_attention_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 184 |
+
"lm_backbone.model.layers.26.self_attn.k_proj.weight": "model-00006-of-00007.safetensors",
|
| 185 |
+
"lm_backbone.model.layers.26.self_attn.o_proj.weight": "model-00006-of-00007.safetensors",
|
| 186 |
+
"lm_backbone.model.layers.26.self_attn.q_proj.weight": "model-00006-of-00007.safetensors",
|
| 187 |
+
"lm_backbone.model.layers.26.self_attn.v_proj.weight": "model-00006-of-00007.safetensors",
|
| 188 |
+
"lm_backbone.model.layers.27.input_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 189 |
+
"lm_backbone.model.layers.27.mlp.down_proj.weight": "model-00006-of-00007.safetensors",
|
| 190 |
+
"lm_backbone.model.layers.27.mlp.gate_proj.weight": "model-00006-of-00007.safetensors",
|
| 191 |
+
"lm_backbone.model.layers.27.mlp.up_proj.weight": "model-00006-of-00007.safetensors",
|
| 192 |
+
"lm_backbone.model.layers.27.post_attention_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 193 |
+
"lm_backbone.model.layers.27.self_attn.k_proj.weight": "model-00006-of-00007.safetensors",
|
| 194 |
+
"lm_backbone.model.layers.27.self_attn.o_proj.weight": "model-00006-of-00007.safetensors",
|
| 195 |
+
"lm_backbone.model.layers.27.self_attn.q_proj.weight": "model-00006-of-00007.safetensors",
|
| 196 |
+
"lm_backbone.model.layers.27.self_attn.v_proj.weight": "model-00006-of-00007.safetensors",
|
| 197 |
+
"lm_backbone.model.layers.28.input_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 198 |
+
"lm_backbone.model.layers.28.mlp.down_proj.weight": "model-00006-of-00007.safetensors",
|
| 199 |
+
"lm_backbone.model.layers.28.mlp.gate_proj.weight": "model-00006-of-00007.safetensors",
|
| 200 |
+
"lm_backbone.model.layers.28.mlp.up_proj.weight": "model-00006-of-00007.safetensors",
|
| 201 |
+
"lm_backbone.model.layers.28.post_attention_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 202 |
+
"lm_backbone.model.layers.28.self_attn.k_proj.weight": "model-00006-of-00007.safetensors",
|
| 203 |
+
"lm_backbone.model.layers.28.self_attn.o_proj.weight": "model-00006-of-00007.safetensors",
|
| 204 |
+
"lm_backbone.model.layers.28.self_attn.q_proj.weight": "model-00006-of-00007.safetensors",
|
| 205 |
+
"lm_backbone.model.layers.28.self_attn.v_proj.weight": "model-00006-of-00007.safetensors",
|
| 206 |
+
"lm_backbone.model.layers.29.input_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 207 |
+
"lm_backbone.model.layers.29.mlp.down_proj.weight": "model-00006-of-00007.safetensors",
|
| 208 |
+
"lm_backbone.model.layers.29.mlp.gate_proj.weight": "model-00006-of-00007.safetensors",
|
| 209 |
+
"lm_backbone.model.layers.29.mlp.up_proj.weight": "model-00006-of-00007.safetensors",
|
| 210 |
+
"lm_backbone.model.layers.29.post_attention_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 211 |
+
"lm_backbone.model.layers.29.self_attn.k_proj.weight": "model-00006-of-00007.safetensors",
|
| 212 |
+
"lm_backbone.model.layers.29.self_attn.o_proj.weight": "model-00006-of-00007.safetensors",
|
| 213 |
+
"lm_backbone.model.layers.29.self_attn.q_proj.weight": "model-00006-of-00007.safetensors",
|
| 214 |
+
"lm_backbone.model.layers.29.self_attn.v_proj.weight": "model-00006-of-00007.safetensors",
|
| 215 |
+
"lm_backbone.model.layers.3.input_layernorm.weight": "model-00002-of-00007.safetensors",
|
| 216 |
+
"lm_backbone.model.layers.3.mlp.down_proj.weight": "model-00002-of-00007.safetensors",
|
| 217 |
+
"lm_backbone.model.layers.3.mlp.gate_proj.weight": "model-00002-of-00007.safetensors",
|
| 218 |
+
"lm_backbone.model.layers.3.mlp.up_proj.weight": "model-00002-of-00007.safetensors",
|
| 219 |
+
"lm_backbone.model.layers.3.post_attention_layernorm.weight": "model-00002-of-00007.safetensors",
|
| 220 |
+
"lm_backbone.model.layers.3.self_attn.k_proj.weight": "model-00001-of-00007.safetensors",
|
| 221 |
+
"lm_backbone.model.layers.3.self_attn.o_proj.weight": "model-00001-of-00007.safetensors",
|
| 222 |
+
"lm_backbone.model.layers.3.self_attn.q_proj.weight": "model-00001-of-00007.safetensors",
|
| 223 |
+
"lm_backbone.model.layers.3.self_attn.v_proj.weight": "model-00001-of-00007.safetensors",
|
| 224 |
+
"lm_backbone.model.layers.30.input_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 225 |
+
"lm_backbone.model.layers.30.mlp.down_proj.weight": "model-00006-of-00007.safetensors",
|
| 226 |
+
"lm_backbone.model.layers.30.mlp.gate_proj.weight": "model-00006-of-00007.safetensors",
|
| 227 |
+
"lm_backbone.model.layers.30.mlp.up_proj.weight": "model-00006-of-00007.safetensors",
|
| 228 |
+
"lm_backbone.model.layers.30.post_attention_layernorm.weight": "model-00006-of-00007.safetensors",
|
| 229 |
+
"lm_backbone.model.layers.30.self_attn.k_proj.weight": "model-00006-of-00007.safetensors",
|
| 230 |
+
"lm_backbone.model.layers.30.self_attn.o_proj.weight": "model-00006-of-00007.safetensors",
|
| 231 |
+
"lm_backbone.model.layers.30.self_attn.q_proj.weight": "model-00006-of-00007.safetensors",
|
| 232 |
+
"lm_backbone.model.layers.30.self_attn.v_proj.weight": "model-00006-of-00007.safetensors",
|
| 233 |
+
"lm_backbone.model.layers.31.input_layernorm.weight": "model-00007-of-00007.safetensors",
|
| 234 |
+
"lm_backbone.model.layers.31.mlp.down_proj.weight": "model-00007-of-00007.safetensors",
|
| 235 |
+
"lm_backbone.model.layers.31.mlp.gate_proj.weight": "model-00006-of-00007.safetensors",
|
| 236 |
+
"lm_backbone.model.layers.31.mlp.up_proj.weight": "model-00007-of-00007.safetensors",
|
| 237 |
+
"lm_backbone.model.layers.31.post_attention_layernorm.weight": "model-00007-of-00007.safetensors",
|
| 238 |
+
"lm_backbone.model.layers.31.self_attn.k_proj.weight": "model-00006-of-00007.safetensors",
|
| 239 |
+
"lm_backbone.model.layers.31.self_attn.o_proj.weight": "model-00006-of-00007.safetensors",
|
| 240 |
+
"lm_backbone.model.layers.31.self_attn.q_proj.weight": "model-00006-of-00007.safetensors",
|
| 241 |
+
"lm_backbone.model.layers.31.self_attn.v_proj.weight": "model-00006-of-00007.safetensors",
|
| 242 |
+
"lm_backbone.model.layers.4.input_layernorm.weight": "model-00002-of-00007.safetensors",
|
| 243 |
+
"lm_backbone.model.layers.4.mlp.down_proj.weight": "model-00002-of-00007.safetensors",
|
| 244 |
+
"lm_backbone.model.layers.4.mlp.gate_proj.weight": "model-00002-of-00007.safetensors",
|
| 245 |
+
"lm_backbone.model.layers.4.mlp.up_proj.weight": "model-00002-of-00007.safetensors",
|
| 246 |
+
"lm_backbone.model.layers.4.post_attention_layernorm.weight": "model-00002-of-00007.safetensors",
|
| 247 |
+
"lm_backbone.model.layers.4.self_attn.k_proj.weight": "model-00002-of-00007.safetensors",
|
| 248 |
+
"lm_backbone.model.layers.4.self_attn.o_proj.weight": "model-00002-of-00007.safetensors",
|
| 249 |
+
"lm_backbone.model.layers.4.self_attn.q_proj.weight": "model-00002-of-00007.safetensors",
|
| 250 |
+
"lm_backbone.model.layers.4.self_attn.v_proj.weight": "model-00002-of-00007.safetensors",
|
| 251 |
+
"lm_backbone.model.layers.5.input_layernorm.weight": "model-00002-of-00007.safetensors",
|
| 252 |
+
"lm_backbone.model.layers.5.mlp.down_proj.weight": "model-00002-of-00007.safetensors",
|
| 253 |
+
"lm_backbone.model.layers.5.mlp.gate_proj.weight": "model-00002-of-00007.safetensors",
|
| 254 |
+
"lm_backbone.model.layers.5.mlp.up_proj.weight": "model-00002-of-00007.safetensors",
|
| 255 |
+
"lm_backbone.model.layers.5.post_attention_layernorm.weight": "model-00002-of-00007.safetensors",
|
| 256 |
+
"lm_backbone.model.layers.5.self_attn.k_proj.weight": "model-00002-of-00007.safetensors",
|
| 257 |
+
"lm_backbone.model.layers.5.self_attn.o_proj.weight": "model-00002-of-00007.safetensors",
|
| 258 |
+
"lm_backbone.model.layers.5.self_attn.q_proj.weight": "model-00002-of-00007.safetensors",
|
| 259 |
+
"lm_backbone.model.layers.5.self_attn.v_proj.weight": "model-00002-of-00007.safetensors",
|
| 260 |
+
"lm_backbone.model.layers.6.input_layernorm.weight": "model-00002-of-00007.safetensors",
|
| 261 |
+
"lm_backbone.model.layers.6.mlp.down_proj.weight": "model-00002-of-00007.safetensors",
|
| 262 |
+
"lm_backbone.model.layers.6.mlp.gate_proj.weight": "model-00002-of-00007.safetensors",
|
| 263 |
+
"lm_backbone.model.layers.6.mlp.up_proj.weight": "model-00002-of-00007.safetensors",
|
| 264 |
+
"lm_backbone.model.layers.6.post_attention_layernorm.weight": "model-00002-of-00007.safetensors",
|
| 265 |
+
"lm_backbone.model.layers.6.self_attn.k_proj.weight": "model-00002-of-00007.safetensors",
|
| 266 |
+
"lm_backbone.model.layers.6.self_attn.o_proj.weight": "model-00002-of-00007.safetensors",
|
| 267 |
+
"lm_backbone.model.layers.6.self_attn.q_proj.weight": "model-00002-of-00007.safetensors",
|
| 268 |
+
"lm_backbone.model.layers.6.self_attn.v_proj.weight": "model-00002-of-00007.safetensors",
|
| 269 |
+
"lm_backbone.model.layers.7.input_layernorm.weight": "model-00002-of-00007.safetensors",
|
| 270 |
+
"lm_backbone.model.layers.7.mlp.down_proj.weight": "model-00002-of-00007.safetensors",
|
| 271 |
+
"lm_backbone.model.layers.7.mlp.gate_proj.weight": "model-00002-of-00007.safetensors",
|
| 272 |
+
"lm_backbone.model.layers.7.mlp.up_proj.weight": "model-00002-of-00007.safetensors",
|
| 273 |
+
"lm_backbone.model.layers.7.post_attention_layernorm.weight": "model-00002-of-00007.safetensors",
|
| 274 |
+
"lm_backbone.model.layers.7.self_attn.k_proj.weight": "model-00002-of-00007.safetensors",
|
| 275 |
+
"lm_backbone.model.layers.7.self_attn.o_proj.weight": "model-00002-of-00007.safetensors",
|
| 276 |
+
"lm_backbone.model.layers.7.self_attn.q_proj.weight": "model-00002-of-00007.safetensors",
|
| 277 |
+
"lm_backbone.model.layers.7.self_attn.v_proj.weight": "model-00002-of-00007.safetensors",
|
| 278 |
+
"lm_backbone.model.layers.8.input_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 279 |
+
"lm_backbone.model.layers.8.mlp.down_proj.weight": "model-00003-of-00007.safetensors",
|
| 280 |
+
"lm_backbone.model.layers.8.mlp.gate_proj.weight": "model-00002-of-00007.safetensors",
|
| 281 |
+
"lm_backbone.model.layers.8.mlp.up_proj.weight": "model-00002-of-00007.safetensors",
|
| 282 |
+
"lm_backbone.model.layers.8.post_attention_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 283 |
+
"lm_backbone.model.layers.8.self_attn.k_proj.weight": "model-00002-of-00007.safetensors",
|
| 284 |
+
"lm_backbone.model.layers.8.self_attn.o_proj.weight": "model-00002-of-00007.safetensors",
|
| 285 |
+
"lm_backbone.model.layers.8.self_attn.q_proj.weight": "model-00002-of-00007.safetensors",
|
| 286 |
+
"lm_backbone.model.layers.8.self_attn.v_proj.weight": "model-00002-of-00007.safetensors",
|
| 287 |
+
"lm_backbone.model.layers.9.input_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 288 |
+
"lm_backbone.model.layers.9.mlp.down_proj.weight": "model-00003-of-00007.safetensors",
|
| 289 |
+
"lm_backbone.model.layers.9.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
|
| 290 |
+
"lm_backbone.model.layers.9.mlp.up_proj.weight": "model-00003-of-00007.safetensors",
|
| 291 |
+
"lm_backbone.model.layers.9.post_attention_layernorm.weight": "model-00003-of-00007.safetensors",
|
| 292 |
+
"lm_backbone.model.layers.9.self_attn.k_proj.weight": "model-00003-of-00007.safetensors",
|
| 293 |
+
"lm_backbone.model.layers.9.self_attn.o_proj.weight": "model-00003-of-00007.safetensors",
|
| 294 |
+
"lm_backbone.model.layers.9.self_attn.q_proj.weight": "model-00003-of-00007.safetensors",
|
| 295 |
+
"lm_backbone.model.layers.9.self_attn.v_proj.weight": "model-00003-of-00007.safetensors",
|
| 296 |
+
"lm_backbone.model.norm.weight": "model-00007-of-00007.safetensors",
|
| 297 |
+
"value_head.dense.bias": "model-00007-of-00007.safetensors",
|
| 298 |
+
"value_head.dense.weight": "model-00007-of-00007.safetensors",
|
| 299 |
+
"value_head.score.bias": "model-00007-of-00007.safetensors",
|
| 300 |
+
"value_head.score.weight": "model-00007-of-00007.safetensors"
|
| 301 |
+
}
|
| 302 |
+
}
|