Add files using upload-large-folder tool
Browse files- README.md +39 -0
- chat_template.jinja +1 -0
- config.json +96 -0
- configuration_ouro.py +222 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- model.safetensors.index.json +1219 -0
- modeling_ouro.py +594 -0
- special_tokens_map.json +42 -0
- tokenizer.json +0 -0
- tokenizer_config.json +168 -0
- vocab.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: mlx
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- looped-language-model
|
| 7 |
+
- reasoning
|
| 8 |
+
- recurrent-depth
|
| 9 |
+
- mlx
|
| 10 |
+
base_model: ByteDance/Ouro-2.6B
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# mlx-community/Ouro-2.6B-4bit
|
| 14 |
+
|
| 15 |
+
This model [mlx-community/Ouro-2.6B-4bit](https://huggingface.co/mlx-community/Ouro-2.6B-4bit) was
|
| 16 |
+
converted to MLX format from [ByteDance/Ouro-2.6B](https://huggingface.co/ByteDance/Ouro-2.6B)
|
| 17 |
+
using mlx-lm version **0.28.4**.
|
| 18 |
+
|
| 19 |
+
## Use with mlx
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
pip install mlx-lm
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
```python
|
| 26 |
+
from mlx_lm import load, generate
|
| 27 |
+
|
| 28 |
+
model, tokenizer = load("mlx-community/Ouro-2.6B-4bit")
|
| 29 |
+
|
| 30 |
+
prompt = "hello"
|
| 31 |
+
|
| 32 |
+
if tokenizer.chat_template is not None:
|
| 33 |
+
messages = [{"role": "user", "content": prompt}]
|
| 34 |
+
prompt = tokenizer.apply_chat_template(
|
| 35 |
+
messages, add_generation_prompt=True
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
| 39 |
+
```
|
chat_template.jinja
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{%- if messages[0]['role'] == 'system' -%}{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}{%- else -%}{{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{%- endif -%}{%- for message in messages -%}{%- if message.role == 'system' and loop.first -%}{# Skip #}{%- else -%}{{- '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n' }}{%- endif -%}{%- endfor -%}{%- if add_generation_prompt -%}{{- '<|im_start|>assistant\n' }}{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"OuroForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"auto_map": {
|
| 7 |
+
"AutoConfig": "configuration_ouro.OuroConfig",
|
| 8 |
+
"AutoModel": "modeling_ouro.OuroModel",
|
| 9 |
+
"AutoModelForCausalLM": "modeling_ouro.OuroForCausalLM"
|
| 10 |
+
},
|
| 11 |
+
"bos_token_id": 1,
|
| 12 |
+
"early_exit_threshold": 1.0,
|
| 13 |
+
"eos_token_id": 2,
|
| 14 |
+
"head_dim": 128,
|
| 15 |
+
"hidden_act": "silu",
|
| 16 |
+
"hidden_size": 2048,
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 5632,
|
| 19 |
+
"layer_types": [
|
| 20 |
+
"full_attention",
|
| 21 |
+
"full_attention",
|
| 22 |
+
"full_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"full_attention",
|
| 38 |
+
"full_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"full_attention",
|
| 41 |
+
"full_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"full_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"full_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"full_attention",
|
| 50 |
+
"full_attention",
|
| 51 |
+
"full_attention",
|
| 52 |
+
"full_attention",
|
| 53 |
+
"full_attention",
|
| 54 |
+
"full_attention",
|
| 55 |
+
"full_attention",
|
| 56 |
+
"full_attention",
|
| 57 |
+
"full_attention",
|
| 58 |
+
"full_attention",
|
| 59 |
+
"full_attention",
|
| 60 |
+
"full_attention",
|
| 61 |
+
"full_attention",
|
| 62 |
+
"full_attention",
|
| 63 |
+
"full_attention",
|
| 64 |
+
"full_attention",
|
| 65 |
+
"full_attention",
|
| 66 |
+
"full_attention",
|
| 67 |
+
"full_attention"
|
| 68 |
+
],
|
| 69 |
+
"max_position_embeddings": 65536,
|
| 70 |
+
"max_window_layers": 48,
|
| 71 |
+
"model_type": "ouro",
|
| 72 |
+
"num_attention_heads": 16,
|
| 73 |
+
"num_hidden_layers": 48,
|
| 74 |
+
"num_key_value_heads": 16,
|
| 75 |
+
"quantization": {
|
| 76 |
+
"group_size": 64,
|
| 77 |
+
"bits": 4,
|
| 78 |
+
"mode": "affine"
|
| 79 |
+
},
|
| 80 |
+
"quantization_config": {
|
| 81 |
+
"group_size": 64,
|
| 82 |
+
"bits": 4,
|
| 83 |
+
"mode": "affine"
|
| 84 |
+
},
|
| 85 |
+
"rms_norm_eps": 1e-06,
|
| 86 |
+
"rope_scaling": null,
|
| 87 |
+
"rope_theta": 1000000.0,
|
| 88 |
+
"sliding_window": null,
|
| 89 |
+
"tie_word_embeddings": false,
|
| 90 |
+
"torch_dtype": "bfloat16",
|
| 91 |
+
"total_ut_steps": 4,
|
| 92 |
+
"transformers_version": "4.55.0",
|
| 93 |
+
"use_cache": true,
|
| 94 |
+
"use_sliding_window": false,
|
| 95 |
+
"vocab_size": 49152
|
| 96 |
+
}
|
configuration_ouro.py
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding=utf-8
|
| 2 |
+
# Copyright 2024 The Qwen team, Alibaba Group 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 |
+
"""Ouro model configuration"""
|
| 16 |
+
|
| 17 |
+
from transformers.configuration_utils import PretrainedConfig, layer_type_validation
|
| 18 |
+
from transformers.modeling_rope_utils import rope_config_validation
|
| 19 |
+
from transformers.utils import logging
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
logger = logging.get_logger(__name__)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
class OuroConfig(PretrainedConfig):
|
| 26 |
+
r"""
|
| 27 |
+
This is the configuration class to store the configuration of a [`OuroModel`]. It is used to instantiate a
|
| 28 |
+
Ouro model according to the specified arguments, defining the model architecture. Instantiating a configuration
|
| 29 |
+
with the defaults will yield a similar configuration to that of
|
| 30 |
+
Ouro-7B-beta [Qwen/Ouro-7B-beta](https://huggingface.co/Qwen/Ouro-7B-beta).
|
| 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 |
+
|
| 36 |
+
Args:
|
| 37 |
+
vocab_size (`int`, *optional*, defaults to 151936):
|
| 38 |
+
Vocabulary size of the Ouro model. Defines the number of different tokens that can be represented by the
|
| 39 |
+
`inputs_ids` passed when calling [`OuroModel`]
|
| 40 |
+
hidden_size (`int`, *optional*, defaults to 4096):
|
| 41 |
+
Dimension of the hidden representations.
|
| 42 |
+
intermediate_size (`int`, *optional*, defaults to 22016):
|
| 43 |
+
Dimension of the MLP representations.
|
| 44 |
+
num_hidden_layers (`int`, *optional*, defaults to 32):
|
| 45 |
+
Number of hidden layers in the Transformer encoder.
|
| 46 |
+
num_attention_heads (`int`, *optional*, defaults to 32):
|
| 47 |
+
Number of attention heads for each attention layer in the Transformer encoder.
|
| 48 |
+
num_key_value_heads (`int`, *optional*, defaults to 32):
|
| 49 |
+
This is the number of key_value heads that should be used to implement Grouped Query Attention. If
|
| 50 |
+
`num_key_value_heads=num_attention_heads`, the model will use Multi Head Attention (MHA), if
|
| 51 |
+
`num_key_value_heads=1` the model will use Multi Query Attention (MQA) otherwise GQA is used. When
|
| 52 |
+
converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
|
| 53 |
+
by meanpooling all the original heads within that group. For more details, check out [this
|
| 54 |
+
paper](https://huggingface.co/papers/2305.13245). If it is not specified, will default to `32`.
|
| 55 |
+
hidden_act (`str` or `function`, *optional*, defaults to `"silu"`):
|
| 56 |
+
The non-linear activation function (function or string) in the decoder.
|
| 57 |
+
max_position_embeddings (`int`, *optional*, defaults to 32768):
|
| 58 |
+
The maximum sequence length that this model might ever be used with.
|
| 59 |
+
initializer_range (`float`, *optional*, defaults to 0.02):
|
| 60 |
+
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
|
| 61 |
+
rms_norm_eps (`float`, *optional*, defaults to 1e-06):
|
| 62 |
+
The epsilon used by the rms normalization layers.
|
| 63 |
+
use_cache (`bool`, *optional*, defaults to `True`):
|
| 64 |
+
Whether or not the model should return the last key/values attentions (not used by all models). Only
|
| 65 |
+
relevant if `config.is_decoder=True`.
|
| 66 |
+
tie_word_embeddings (`bool`, *optional*, defaults to `False`):
|
| 67 |
+
Whether the model's input and output word embeddings should be tied.
|
| 68 |
+
rope_theta (`float`, *optional*, defaults to 10000.0):
|
| 69 |
+
The base period of the RoPE embeddings.
|
| 70 |
+
rope_scaling (`Dict`, *optional*):
|
| 71 |
+
Dictionary containing the scaling configuration for the RoPE embeddings. NOTE: if you apply new rope type
|
| 72 |
+
and you expect the model to work on longer `max_position_embeddings`, we recommend you to update this value
|
| 73 |
+
accordingly.
|
| 74 |
+
Expected contents:
|
| 75 |
+
`rope_type` (`str`):
|
| 76 |
+
The sub-variant of RoPE to use. Can be one of ['default', 'linear', 'dynamic', 'yarn', 'longrope',
|
| 77 |
+
'llama3'], with 'default' being the original RoPE implementation.
|
| 78 |
+
`factor` (`float`, *optional*):
|
| 79 |
+
Used with all rope types except 'default'. The scaling factor to apply to the RoPE embeddings. In
|
| 80 |
+
most scaling types, a `factor` of x will enable the model to handle sequences of length x *
|
| 81 |
+
original maximum pre-trained length.
|
| 82 |
+
`original_max_position_embeddings` (`int`, *optional*):
|
| 83 |
+
Used with 'dynamic', 'longrope' and 'llama3'. The original max position embeddings used during
|
| 84 |
+
pretraining.
|
| 85 |
+
`attention_factor` (`float`, *optional*):
|
| 86 |
+
Used with 'yarn' and 'longrope'. The scaling factor to be applied on the attention
|
| 87 |
+
computation. If unspecified, it defaults to value recommended by the implementation, using the
|
| 88 |
+
`factor` field to infer the suggested value.
|
| 89 |
+
`beta_fast` (`float`, *optional*):
|
| 90 |
+
Only used with 'yarn'. Parameter to set the boundary for extrapolation (only) in the linear
|
| 91 |
+
ramp function. If unspecified, it defaults to 32.
|
| 92 |
+
`beta_slow` (`float`, *optional*):
|
| 93 |
+
Only used with 'yarn'. Parameter to set the boundary for interpolation (only) in the linear
|
| 94 |
+
ramp function. If unspecified, it defaults to 1.
|
| 95 |
+
`short_factor` (`list[float]`, *optional*):
|
| 96 |
+
Only used with 'longrope'. The scaling factor to be applied to short contexts (<
|
| 97 |
+
`original_max_position_embeddings`). Must be a list of numbers with the same length as the hidden
|
| 98 |
+
size divided by the number of attention heads divided by 2
|
| 99 |
+
`long_factor` (`list[float]`, *optional*):
|
| 100 |
+
Only used with 'longrope'. The scaling factor to be applied to long contexts (<
|
| 101 |
+
`original_max_position_embeddings`). Must be a list of numbers with the same length as the hidden
|
| 102 |
+
size divided by the number of attention heads divided by 2
|
| 103 |
+
`low_freq_factor` (`float`, *optional*):
|
| 104 |
+
Only used with 'llama3'. Scaling factor applied to low frequency components of the RoPE
|
| 105 |
+
`high_freq_factor` (`float`, *optional*):
|
| 106 |
+
Only used with 'llama3'. Scaling factor applied to high frequency components of the RoPE
|
| 107 |
+
use_sliding_window (`bool`, *optional*, defaults to `False`):
|
| 108 |
+
Whether to use sliding window attention.
|
| 109 |
+
sliding_window (`int`, *optional*, defaults to 4096):
|
| 110 |
+
Sliding window attention (SWA) window size. If not specified, will default to `4096`.
|
| 111 |
+
max_window_layers (`int`, *optional*, defaults to 28):
|
| 112 |
+
The number of layers using full attention. The first `max_window_layers` layers will use full attention, while any
|
| 113 |
+
additional layer afterwards will use SWA (Sliding Window Attention).
|
| 114 |
+
layer_types (`list`, *optional*):
|
| 115 |
+
Attention pattern for each layer.
|
| 116 |
+
attention_dropout (`float`, *optional*, defaults to 0.0):
|
| 117 |
+
The dropout ratio for the attention probabilities.
|
| 118 |
+
|
| 119 |
+
```python
|
| 120 |
+
>>> from transformers import OuroModel, OuroConfig
|
| 121 |
+
|
| 122 |
+
>>> # Initializing a Ouro style configuration
|
| 123 |
+
>>> configuration = OuroConfig()
|
| 124 |
+
|
| 125 |
+
>>> # Initializing a model from the Ouro-7B style configuration
|
| 126 |
+
>>> model = OuroModel(configuration)
|
| 127 |
+
|
| 128 |
+
>>> # Accessing the model configuration
|
| 129 |
+
>>> configuration = model.config
|
| 130 |
+
```"""
|
| 131 |
+
|
| 132 |
+
model_type = "ouro"
|
| 133 |
+
keys_to_ignore_at_inference = ["past_key_values"]
|
| 134 |
+
|
| 135 |
+
# Default tensor parallel plan for base model `Ouro`
|
| 136 |
+
base_model_tp_plan = {
|
| 137 |
+
"layers.*.self_attn.q_proj": "colwise",
|
| 138 |
+
"layers.*.self_attn.k_proj": "colwise",
|
| 139 |
+
"layers.*.self_attn.v_proj": "colwise",
|
| 140 |
+
"layers.*.self_attn.o_proj": "rowwise",
|
| 141 |
+
"layers.*.mlp.gate_proj": "colwise",
|
| 142 |
+
"layers.*.mlp.up_proj": "colwise",
|
| 143 |
+
"layers.*.mlp.down_proj": "rowwise",
|
| 144 |
+
}
|
| 145 |
+
base_model_pp_plan = {
|
| 146 |
+
"embed_tokens": (["input_ids"], ["inputs_embeds"]),
|
| 147 |
+
"layers": (["hidden_states", "attention_mask"], ["hidden_states"]),
|
| 148 |
+
"norm": (["hidden_states"], ["hidden_states"]),
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
def __init__(
|
| 152 |
+
self,
|
| 153 |
+
vocab_size=151936,
|
| 154 |
+
hidden_size=4096,
|
| 155 |
+
intermediate_size=22016,
|
| 156 |
+
num_hidden_layers=32,
|
| 157 |
+
num_attention_heads=32,
|
| 158 |
+
num_key_value_heads=32,
|
| 159 |
+
hidden_act="silu",
|
| 160 |
+
max_position_embeddings=32768,
|
| 161 |
+
initializer_range=0.02,
|
| 162 |
+
rms_norm_eps=1e-6,
|
| 163 |
+
use_cache=True,
|
| 164 |
+
tie_word_embeddings=False,
|
| 165 |
+
rope_theta=10000.0,
|
| 166 |
+
rope_scaling=None,
|
| 167 |
+
use_sliding_window=False,
|
| 168 |
+
sliding_window=4096,
|
| 169 |
+
max_window_layers=28,
|
| 170 |
+
layer_types=None,
|
| 171 |
+
attention_dropout=0.0,
|
| 172 |
+
total_ut_steps=4,
|
| 173 |
+
early_exit_threshold=1.0,
|
| 174 |
+
**kwargs,
|
| 175 |
+
):
|
| 176 |
+
self.vocab_size = vocab_size
|
| 177 |
+
self.max_position_embeddings = max_position_embeddings
|
| 178 |
+
self.hidden_size = hidden_size
|
| 179 |
+
self.intermediate_size = intermediate_size
|
| 180 |
+
self.num_hidden_layers = num_hidden_layers
|
| 181 |
+
self.num_attention_heads = num_attention_heads
|
| 182 |
+
self.use_sliding_window = use_sliding_window
|
| 183 |
+
self.sliding_window = sliding_window if self.use_sliding_window else None
|
| 184 |
+
self.max_window_layers = max_window_layers
|
| 185 |
+
|
| 186 |
+
# for backward compatibility
|
| 187 |
+
if num_key_value_heads is None:
|
| 188 |
+
num_key_value_heads = num_attention_heads
|
| 189 |
+
|
| 190 |
+
self.num_key_value_heads = num_key_value_heads
|
| 191 |
+
self.hidden_act = hidden_act
|
| 192 |
+
self.initializer_range = initializer_range
|
| 193 |
+
self.rms_norm_eps = rms_norm_eps
|
| 194 |
+
self.use_cache = use_cache
|
| 195 |
+
self.rope_theta = rope_theta
|
| 196 |
+
self.rope_scaling = rope_scaling
|
| 197 |
+
self.attention_dropout = attention_dropout
|
| 198 |
+
self.total_ut_steps = total_ut_steps
|
| 199 |
+
self.early_exit_threshold = early_exit_threshold
|
| 200 |
+
# Validate the correctness of rotary position embeddings parameters
|
| 201 |
+
# BC: if there is a 'type' field, move it to 'rope_type'.
|
| 202 |
+
if self.rope_scaling is not None and "type" in self.rope_scaling:
|
| 203 |
+
self.rope_scaling["rope_type"] = self.rope_scaling["type"]
|
| 204 |
+
rope_config_validation(self)
|
| 205 |
+
|
| 206 |
+
self.layer_types = layer_types
|
| 207 |
+
if self.layer_types is None:
|
| 208 |
+
self.layer_types = [
|
| 209 |
+
"sliding_attention"
|
| 210 |
+
if self.sliding_window is not None and i >= self.max_window_layers
|
| 211 |
+
else "full_attention"
|
| 212 |
+
for i in range(self.num_hidden_layers)
|
| 213 |
+
]
|
| 214 |
+
layer_type_validation(self.layer_types)
|
| 215 |
+
|
| 216 |
+
super().__init__(
|
| 217 |
+
tie_word_embeddings=tie_word_embeddings,
|
| 218 |
+
**kwargs,
|
| 219 |
+
)
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
__all__ = ["OuroConfig"]
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e366ca88c5100beeb25c0dca856e8259d43cf35c2778d14ac5a7efd37087025a
|
| 3 |
+
size 1501440935
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,1219 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 1501303938,
|
| 4 |
+
"total_parameters": 2667974657
|
| 5 |
+
},
|
| 6 |
+
"weight_map": {
|
| 7 |
+
"lm_head.biases": "model.safetensors",
|
| 8 |
+
"lm_head.scales": "model.safetensors",
|
| 9 |
+
"lm_head.weight": "model.safetensors",
|
| 10 |
+
"model.early_exit_gate.bias": "model.safetensors",
|
| 11 |
+
"model.early_exit_gate.biases": "model.safetensors",
|
| 12 |
+
"model.early_exit_gate.scales": "model.safetensors",
|
| 13 |
+
"model.early_exit_gate.weight": "model.safetensors",
|
| 14 |
+
"model.embed_tokens.biases": "model.safetensors",
|
| 15 |
+
"model.embed_tokens.scales": "model.safetensors",
|
| 16 |
+
"model.embed_tokens.weight": "model.safetensors",
|
| 17 |
+
"model.layers.0.input_layernorm.weight": "model.safetensors",
|
| 18 |
+
"model.layers.0.input_layernorm_2.weight": "model.safetensors",
|
| 19 |
+
"model.layers.0.mlp.down_proj.biases": "model.safetensors",
|
| 20 |
+
"model.layers.0.mlp.down_proj.scales": "model.safetensors",
|
| 21 |
+
"model.layers.0.mlp.down_proj.weight": "model.safetensors",
|
| 22 |
+
"model.layers.0.mlp.gate_proj.biases": "model.safetensors",
|
| 23 |
+
"model.layers.0.mlp.gate_proj.scales": "model.safetensors",
|
| 24 |
+
"model.layers.0.mlp.gate_proj.weight": "model.safetensors",
|
| 25 |
+
"model.layers.0.mlp.up_proj.biases": "model.safetensors",
|
| 26 |
+
"model.layers.0.mlp.up_proj.scales": "model.safetensors",
|
| 27 |
+
"model.layers.0.mlp.up_proj.weight": "model.safetensors",
|
| 28 |
+
"model.layers.0.post_attention_layernorm.weight": "model.safetensors",
|
| 29 |
+
"model.layers.0.post_attention_layernorm_2.weight": "model.safetensors",
|
| 30 |
+
"model.layers.0.self_attn.k_proj.biases": "model.safetensors",
|
| 31 |
+
"model.layers.0.self_attn.k_proj.scales": "model.safetensors",
|
| 32 |
+
"model.layers.0.self_attn.k_proj.weight": "model.safetensors",
|
| 33 |
+
"model.layers.0.self_attn.o_proj.biases": "model.safetensors",
|
| 34 |
+
"model.layers.0.self_attn.o_proj.scales": "model.safetensors",
|
| 35 |
+
"model.layers.0.self_attn.o_proj.weight": "model.safetensors",
|
| 36 |
+
"model.layers.0.self_attn.q_proj.biases": "model.safetensors",
|
| 37 |
+
"model.layers.0.self_attn.q_proj.scales": "model.safetensors",
|
| 38 |
+
"model.layers.0.self_attn.q_proj.weight": "model.safetensors",
|
| 39 |
+
"model.layers.0.self_attn.v_proj.biases": "model.safetensors",
|
| 40 |
+
"model.layers.0.self_attn.v_proj.scales": "model.safetensors",
|
| 41 |
+
"model.layers.0.self_attn.v_proj.weight": "model.safetensors",
|
| 42 |
+
"model.layers.1.input_layernorm.weight": "model.safetensors",
|
| 43 |
+
"model.layers.1.input_layernorm_2.weight": "model.safetensors",
|
| 44 |
+
"model.layers.1.mlp.down_proj.biases": "model.safetensors",
|
| 45 |
+
"model.layers.1.mlp.down_proj.scales": "model.safetensors",
|
| 46 |
+
"model.layers.1.mlp.down_proj.weight": "model.safetensors",
|
| 47 |
+
"model.layers.1.mlp.gate_proj.biases": "model.safetensors",
|
| 48 |
+
"model.layers.1.mlp.gate_proj.scales": "model.safetensors",
|
| 49 |
+
"model.layers.1.mlp.gate_proj.weight": "model.safetensors",
|
| 50 |
+
"model.layers.1.mlp.up_proj.biases": "model.safetensors",
|
| 51 |
+
"model.layers.1.mlp.up_proj.scales": "model.safetensors",
|
| 52 |
+
"model.layers.1.mlp.up_proj.weight": "model.safetensors",
|
| 53 |
+
"model.layers.1.post_attention_layernorm.weight": "model.safetensors",
|
| 54 |
+
"model.layers.1.post_attention_layernorm_2.weight": "model.safetensors",
|
| 55 |
+
"model.layers.1.self_attn.k_proj.biases": "model.safetensors",
|
| 56 |
+
"model.layers.1.self_attn.k_proj.scales": "model.safetensors",
|
| 57 |
+
"model.layers.1.self_attn.k_proj.weight": "model.safetensors",
|
| 58 |
+
"model.layers.1.self_attn.o_proj.biases": "model.safetensors",
|
| 59 |
+
"model.layers.1.self_attn.o_proj.scales": "model.safetensors",
|
| 60 |
+
"model.layers.1.self_attn.o_proj.weight": "model.safetensors",
|
| 61 |
+
"model.layers.1.self_attn.q_proj.biases": "model.safetensors",
|
| 62 |
+
"model.layers.1.self_attn.q_proj.scales": "model.safetensors",
|
| 63 |
+
"model.layers.1.self_attn.q_proj.weight": "model.safetensors",
|
| 64 |
+
"model.layers.1.self_attn.v_proj.biases": "model.safetensors",
|
| 65 |
+
"model.layers.1.self_attn.v_proj.scales": "model.safetensors",
|
| 66 |
+
"model.layers.1.self_attn.v_proj.weight": "model.safetensors",
|
| 67 |
+
"model.layers.10.input_layernorm.weight": "model.safetensors",
|
| 68 |
+
"model.layers.10.input_layernorm_2.weight": "model.safetensors",
|
| 69 |
+
"model.layers.10.mlp.down_proj.biases": "model.safetensors",
|
| 70 |
+
"model.layers.10.mlp.down_proj.scales": "model.safetensors",
|
| 71 |
+
"model.layers.10.mlp.down_proj.weight": "model.safetensors",
|
| 72 |
+
"model.layers.10.mlp.gate_proj.biases": "model.safetensors",
|
| 73 |
+
"model.layers.10.mlp.gate_proj.scales": "model.safetensors",
|
| 74 |
+
"model.layers.10.mlp.gate_proj.weight": "model.safetensors",
|
| 75 |
+
"model.layers.10.mlp.up_proj.biases": "model.safetensors",
|
| 76 |
+
"model.layers.10.mlp.up_proj.scales": "model.safetensors",
|
| 77 |
+
"model.layers.10.mlp.up_proj.weight": "model.safetensors",
|
| 78 |
+
"model.layers.10.post_attention_layernorm.weight": "model.safetensors",
|
| 79 |
+
"model.layers.10.post_attention_layernorm_2.weight": "model.safetensors",
|
| 80 |
+
"model.layers.10.self_attn.k_proj.biases": "model.safetensors",
|
| 81 |
+
"model.layers.10.self_attn.k_proj.scales": "model.safetensors",
|
| 82 |
+
"model.layers.10.self_attn.k_proj.weight": "model.safetensors",
|
| 83 |
+
"model.layers.10.self_attn.o_proj.biases": "model.safetensors",
|
| 84 |
+
"model.layers.10.self_attn.o_proj.scales": "model.safetensors",
|
| 85 |
+
"model.layers.10.self_attn.o_proj.weight": "model.safetensors",
|
| 86 |
+
"model.layers.10.self_attn.q_proj.biases": "model.safetensors",
|
| 87 |
+
"model.layers.10.self_attn.q_proj.scales": "model.safetensors",
|
| 88 |
+
"model.layers.10.self_attn.q_proj.weight": "model.safetensors",
|
| 89 |
+
"model.layers.10.self_attn.v_proj.biases": "model.safetensors",
|
| 90 |
+
"model.layers.10.self_attn.v_proj.scales": "model.safetensors",
|
| 91 |
+
"model.layers.10.self_attn.v_proj.weight": "model.safetensors",
|
| 92 |
+
"model.layers.11.input_layernorm.weight": "model.safetensors",
|
| 93 |
+
"model.layers.11.input_layernorm_2.weight": "model.safetensors",
|
| 94 |
+
"model.layers.11.mlp.down_proj.biases": "model.safetensors",
|
| 95 |
+
"model.layers.11.mlp.down_proj.scales": "model.safetensors",
|
| 96 |
+
"model.layers.11.mlp.down_proj.weight": "model.safetensors",
|
| 97 |
+
"model.layers.11.mlp.gate_proj.biases": "model.safetensors",
|
| 98 |
+
"model.layers.11.mlp.gate_proj.scales": "model.safetensors",
|
| 99 |
+
"model.layers.11.mlp.gate_proj.weight": "model.safetensors",
|
| 100 |
+
"model.layers.11.mlp.up_proj.biases": "model.safetensors",
|
| 101 |
+
"model.layers.11.mlp.up_proj.scales": "model.safetensors",
|
| 102 |
+
"model.layers.11.mlp.up_proj.weight": "model.safetensors",
|
| 103 |
+
"model.layers.11.post_attention_layernorm.weight": "model.safetensors",
|
| 104 |
+
"model.layers.11.post_attention_layernorm_2.weight": "model.safetensors",
|
| 105 |
+
"model.layers.11.self_attn.k_proj.biases": "model.safetensors",
|
| 106 |
+
"model.layers.11.self_attn.k_proj.scales": "model.safetensors",
|
| 107 |
+
"model.layers.11.self_attn.k_proj.weight": "model.safetensors",
|
| 108 |
+
"model.layers.11.self_attn.o_proj.biases": "model.safetensors",
|
| 109 |
+
"model.layers.11.self_attn.o_proj.scales": "model.safetensors",
|
| 110 |
+
"model.layers.11.self_attn.o_proj.weight": "model.safetensors",
|
| 111 |
+
"model.layers.11.self_attn.q_proj.biases": "model.safetensors",
|
| 112 |
+
"model.layers.11.self_attn.q_proj.scales": "model.safetensors",
|
| 113 |
+
"model.layers.11.self_attn.q_proj.weight": "model.safetensors",
|
| 114 |
+
"model.layers.11.self_attn.v_proj.biases": "model.safetensors",
|
| 115 |
+
"model.layers.11.self_attn.v_proj.scales": "model.safetensors",
|
| 116 |
+
"model.layers.11.self_attn.v_proj.weight": "model.safetensors",
|
| 117 |
+
"model.layers.12.input_layernorm.weight": "model.safetensors",
|
| 118 |
+
"model.layers.12.input_layernorm_2.weight": "model.safetensors",
|
| 119 |
+
"model.layers.12.mlp.down_proj.biases": "model.safetensors",
|
| 120 |
+
"model.layers.12.mlp.down_proj.scales": "model.safetensors",
|
| 121 |
+
"model.layers.12.mlp.down_proj.weight": "model.safetensors",
|
| 122 |
+
"model.layers.12.mlp.gate_proj.biases": "model.safetensors",
|
| 123 |
+
"model.layers.12.mlp.gate_proj.scales": "model.safetensors",
|
| 124 |
+
"model.layers.12.mlp.gate_proj.weight": "model.safetensors",
|
| 125 |
+
"model.layers.12.mlp.up_proj.biases": "model.safetensors",
|
| 126 |
+
"model.layers.12.mlp.up_proj.scales": "model.safetensors",
|
| 127 |
+
"model.layers.12.mlp.up_proj.weight": "model.safetensors",
|
| 128 |
+
"model.layers.12.post_attention_layernorm.weight": "model.safetensors",
|
| 129 |
+
"model.layers.12.post_attention_layernorm_2.weight": "model.safetensors",
|
| 130 |
+
"model.layers.12.self_attn.k_proj.biases": "model.safetensors",
|
| 131 |
+
"model.layers.12.self_attn.k_proj.scales": "model.safetensors",
|
| 132 |
+
"model.layers.12.self_attn.k_proj.weight": "model.safetensors",
|
| 133 |
+
"model.layers.12.self_attn.o_proj.biases": "model.safetensors",
|
| 134 |
+
"model.layers.12.self_attn.o_proj.scales": "model.safetensors",
|
| 135 |
+
"model.layers.12.self_attn.o_proj.weight": "model.safetensors",
|
| 136 |
+
"model.layers.12.self_attn.q_proj.biases": "model.safetensors",
|
| 137 |
+
"model.layers.12.self_attn.q_proj.scales": "model.safetensors",
|
| 138 |
+
"model.layers.12.self_attn.q_proj.weight": "model.safetensors",
|
| 139 |
+
"model.layers.12.self_attn.v_proj.biases": "model.safetensors",
|
| 140 |
+
"model.layers.12.self_attn.v_proj.scales": "model.safetensors",
|
| 141 |
+
"model.layers.12.self_attn.v_proj.weight": "model.safetensors",
|
| 142 |
+
"model.layers.13.input_layernorm.weight": "model.safetensors",
|
| 143 |
+
"model.layers.13.input_layernorm_2.weight": "model.safetensors",
|
| 144 |
+
"model.layers.13.mlp.down_proj.biases": "model.safetensors",
|
| 145 |
+
"model.layers.13.mlp.down_proj.scales": "model.safetensors",
|
| 146 |
+
"model.layers.13.mlp.down_proj.weight": "model.safetensors",
|
| 147 |
+
"model.layers.13.mlp.gate_proj.biases": "model.safetensors",
|
| 148 |
+
"model.layers.13.mlp.gate_proj.scales": "model.safetensors",
|
| 149 |
+
"model.layers.13.mlp.gate_proj.weight": "model.safetensors",
|
| 150 |
+
"model.layers.13.mlp.up_proj.biases": "model.safetensors",
|
| 151 |
+
"model.layers.13.mlp.up_proj.scales": "model.safetensors",
|
| 152 |
+
"model.layers.13.mlp.up_proj.weight": "model.safetensors",
|
| 153 |
+
"model.layers.13.post_attention_layernorm.weight": "model.safetensors",
|
| 154 |
+
"model.layers.13.post_attention_layernorm_2.weight": "model.safetensors",
|
| 155 |
+
"model.layers.13.self_attn.k_proj.biases": "model.safetensors",
|
| 156 |
+
"model.layers.13.self_attn.k_proj.scales": "model.safetensors",
|
| 157 |
+
"model.layers.13.self_attn.k_proj.weight": "model.safetensors",
|
| 158 |
+
"model.layers.13.self_attn.o_proj.biases": "model.safetensors",
|
| 159 |
+
"model.layers.13.self_attn.o_proj.scales": "model.safetensors",
|
| 160 |
+
"model.layers.13.self_attn.o_proj.weight": "model.safetensors",
|
| 161 |
+
"model.layers.13.self_attn.q_proj.biases": "model.safetensors",
|
| 162 |
+
"model.layers.13.self_attn.q_proj.scales": "model.safetensors",
|
| 163 |
+
"model.layers.13.self_attn.q_proj.weight": "model.safetensors",
|
| 164 |
+
"model.layers.13.self_attn.v_proj.biases": "model.safetensors",
|
| 165 |
+
"model.layers.13.self_attn.v_proj.scales": "model.safetensors",
|
| 166 |
+
"model.layers.13.self_attn.v_proj.weight": "model.safetensors",
|
| 167 |
+
"model.layers.14.input_layernorm.weight": "model.safetensors",
|
| 168 |
+
"model.layers.14.input_layernorm_2.weight": "model.safetensors",
|
| 169 |
+
"model.layers.14.mlp.down_proj.biases": "model.safetensors",
|
| 170 |
+
"model.layers.14.mlp.down_proj.scales": "model.safetensors",
|
| 171 |
+
"model.layers.14.mlp.down_proj.weight": "model.safetensors",
|
| 172 |
+
"model.layers.14.mlp.gate_proj.biases": "model.safetensors",
|
| 173 |
+
"model.layers.14.mlp.gate_proj.scales": "model.safetensors",
|
| 174 |
+
"model.layers.14.mlp.gate_proj.weight": "model.safetensors",
|
| 175 |
+
"model.layers.14.mlp.up_proj.biases": "model.safetensors",
|
| 176 |
+
"model.layers.14.mlp.up_proj.scales": "model.safetensors",
|
| 177 |
+
"model.layers.14.mlp.up_proj.weight": "model.safetensors",
|
| 178 |
+
"model.layers.14.post_attention_layernorm.weight": "model.safetensors",
|
| 179 |
+
"model.layers.14.post_attention_layernorm_2.weight": "model.safetensors",
|
| 180 |
+
"model.layers.14.self_attn.k_proj.biases": "model.safetensors",
|
| 181 |
+
"model.layers.14.self_attn.k_proj.scales": "model.safetensors",
|
| 182 |
+
"model.layers.14.self_attn.k_proj.weight": "model.safetensors",
|
| 183 |
+
"model.layers.14.self_attn.o_proj.biases": "model.safetensors",
|
| 184 |
+
"model.layers.14.self_attn.o_proj.scales": "model.safetensors",
|
| 185 |
+
"model.layers.14.self_attn.o_proj.weight": "model.safetensors",
|
| 186 |
+
"model.layers.14.self_attn.q_proj.biases": "model.safetensors",
|
| 187 |
+
"model.layers.14.self_attn.q_proj.scales": "model.safetensors",
|
| 188 |
+
"model.layers.14.self_attn.q_proj.weight": "model.safetensors",
|
| 189 |
+
"model.layers.14.self_attn.v_proj.biases": "model.safetensors",
|
| 190 |
+
"model.layers.14.self_attn.v_proj.scales": "model.safetensors",
|
| 191 |
+
"model.layers.14.self_attn.v_proj.weight": "model.safetensors",
|
| 192 |
+
"model.layers.15.input_layernorm.weight": "model.safetensors",
|
| 193 |
+
"model.layers.15.input_layernorm_2.weight": "model.safetensors",
|
| 194 |
+
"model.layers.15.mlp.down_proj.biases": "model.safetensors",
|
| 195 |
+
"model.layers.15.mlp.down_proj.scales": "model.safetensors",
|
| 196 |
+
"model.layers.15.mlp.down_proj.weight": "model.safetensors",
|
| 197 |
+
"model.layers.15.mlp.gate_proj.biases": "model.safetensors",
|
| 198 |
+
"model.layers.15.mlp.gate_proj.scales": "model.safetensors",
|
| 199 |
+
"model.layers.15.mlp.gate_proj.weight": "model.safetensors",
|
| 200 |
+
"model.layers.15.mlp.up_proj.biases": "model.safetensors",
|
| 201 |
+
"model.layers.15.mlp.up_proj.scales": "model.safetensors",
|
| 202 |
+
"model.layers.15.mlp.up_proj.weight": "model.safetensors",
|
| 203 |
+
"model.layers.15.post_attention_layernorm.weight": "model.safetensors",
|
| 204 |
+
"model.layers.15.post_attention_layernorm_2.weight": "model.safetensors",
|
| 205 |
+
"model.layers.15.self_attn.k_proj.biases": "model.safetensors",
|
| 206 |
+
"model.layers.15.self_attn.k_proj.scales": "model.safetensors",
|
| 207 |
+
"model.layers.15.self_attn.k_proj.weight": "model.safetensors",
|
| 208 |
+
"model.layers.15.self_attn.o_proj.biases": "model.safetensors",
|
| 209 |
+
"model.layers.15.self_attn.o_proj.scales": "model.safetensors",
|
| 210 |
+
"model.layers.15.self_attn.o_proj.weight": "model.safetensors",
|
| 211 |
+
"model.layers.15.self_attn.q_proj.biases": "model.safetensors",
|
| 212 |
+
"model.layers.15.self_attn.q_proj.scales": "model.safetensors",
|
| 213 |
+
"model.layers.15.self_attn.q_proj.weight": "model.safetensors",
|
| 214 |
+
"model.layers.15.self_attn.v_proj.biases": "model.safetensors",
|
| 215 |
+
"model.layers.15.self_attn.v_proj.scales": "model.safetensors",
|
| 216 |
+
"model.layers.15.self_attn.v_proj.weight": "model.safetensors",
|
| 217 |
+
"model.layers.16.input_layernorm.weight": "model.safetensors",
|
| 218 |
+
"model.layers.16.input_layernorm_2.weight": "model.safetensors",
|
| 219 |
+
"model.layers.16.mlp.down_proj.biases": "model.safetensors",
|
| 220 |
+
"model.layers.16.mlp.down_proj.scales": "model.safetensors",
|
| 221 |
+
"model.layers.16.mlp.down_proj.weight": "model.safetensors",
|
| 222 |
+
"model.layers.16.mlp.gate_proj.biases": "model.safetensors",
|
| 223 |
+
"model.layers.16.mlp.gate_proj.scales": "model.safetensors",
|
| 224 |
+
"model.layers.16.mlp.gate_proj.weight": "model.safetensors",
|
| 225 |
+
"model.layers.16.mlp.up_proj.biases": "model.safetensors",
|
| 226 |
+
"model.layers.16.mlp.up_proj.scales": "model.safetensors",
|
| 227 |
+
"model.layers.16.mlp.up_proj.weight": "model.safetensors",
|
| 228 |
+
"model.layers.16.post_attention_layernorm.weight": "model.safetensors",
|
| 229 |
+
"model.layers.16.post_attention_layernorm_2.weight": "model.safetensors",
|
| 230 |
+
"model.layers.16.self_attn.k_proj.biases": "model.safetensors",
|
| 231 |
+
"model.layers.16.self_attn.k_proj.scales": "model.safetensors",
|
| 232 |
+
"model.layers.16.self_attn.k_proj.weight": "model.safetensors",
|
| 233 |
+
"model.layers.16.self_attn.o_proj.biases": "model.safetensors",
|
| 234 |
+
"model.layers.16.self_attn.o_proj.scales": "model.safetensors",
|
| 235 |
+
"model.layers.16.self_attn.o_proj.weight": "model.safetensors",
|
| 236 |
+
"model.layers.16.self_attn.q_proj.biases": "model.safetensors",
|
| 237 |
+
"model.layers.16.self_attn.q_proj.scales": "model.safetensors",
|
| 238 |
+
"model.layers.16.self_attn.q_proj.weight": "model.safetensors",
|
| 239 |
+
"model.layers.16.self_attn.v_proj.biases": "model.safetensors",
|
| 240 |
+
"model.layers.16.self_attn.v_proj.scales": "model.safetensors",
|
| 241 |
+
"model.layers.16.self_attn.v_proj.weight": "model.safetensors",
|
| 242 |
+
"model.layers.17.input_layernorm.weight": "model.safetensors",
|
| 243 |
+
"model.layers.17.input_layernorm_2.weight": "model.safetensors",
|
| 244 |
+
"model.layers.17.mlp.down_proj.biases": "model.safetensors",
|
| 245 |
+
"model.layers.17.mlp.down_proj.scales": "model.safetensors",
|
| 246 |
+
"model.layers.17.mlp.down_proj.weight": "model.safetensors",
|
| 247 |
+
"model.layers.17.mlp.gate_proj.biases": "model.safetensors",
|
| 248 |
+
"model.layers.17.mlp.gate_proj.scales": "model.safetensors",
|
| 249 |
+
"model.layers.17.mlp.gate_proj.weight": "model.safetensors",
|
| 250 |
+
"model.layers.17.mlp.up_proj.biases": "model.safetensors",
|
| 251 |
+
"model.layers.17.mlp.up_proj.scales": "model.safetensors",
|
| 252 |
+
"model.layers.17.mlp.up_proj.weight": "model.safetensors",
|
| 253 |
+
"model.layers.17.post_attention_layernorm.weight": "model.safetensors",
|
| 254 |
+
"model.layers.17.post_attention_layernorm_2.weight": "model.safetensors",
|
| 255 |
+
"model.layers.17.self_attn.k_proj.biases": "model.safetensors",
|
| 256 |
+
"model.layers.17.self_attn.k_proj.scales": "model.safetensors",
|
| 257 |
+
"model.layers.17.self_attn.k_proj.weight": "model.safetensors",
|
| 258 |
+
"model.layers.17.self_attn.o_proj.biases": "model.safetensors",
|
| 259 |
+
"model.layers.17.self_attn.o_proj.scales": "model.safetensors",
|
| 260 |
+
"model.layers.17.self_attn.o_proj.weight": "model.safetensors",
|
| 261 |
+
"model.layers.17.self_attn.q_proj.biases": "model.safetensors",
|
| 262 |
+
"model.layers.17.self_attn.q_proj.scales": "model.safetensors",
|
| 263 |
+
"model.layers.17.self_attn.q_proj.weight": "model.safetensors",
|
| 264 |
+
"model.layers.17.self_attn.v_proj.biases": "model.safetensors",
|
| 265 |
+
"model.layers.17.self_attn.v_proj.scales": "model.safetensors",
|
| 266 |
+
"model.layers.17.self_attn.v_proj.weight": "model.safetensors",
|
| 267 |
+
"model.layers.18.input_layernorm.weight": "model.safetensors",
|
| 268 |
+
"model.layers.18.input_layernorm_2.weight": "model.safetensors",
|
| 269 |
+
"model.layers.18.mlp.down_proj.biases": "model.safetensors",
|
| 270 |
+
"model.layers.18.mlp.down_proj.scales": "model.safetensors",
|
| 271 |
+
"model.layers.18.mlp.down_proj.weight": "model.safetensors",
|
| 272 |
+
"model.layers.18.mlp.gate_proj.biases": "model.safetensors",
|
| 273 |
+
"model.layers.18.mlp.gate_proj.scales": "model.safetensors",
|
| 274 |
+
"model.layers.18.mlp.gate_proj.weight": "model.safetensors",
|
| 275 |
+
"model.layers.18.mlp.up_proj.biases": "model.safetensors",
|
| 276 |
+
"model.layers.18.mlp.up_proj.scales": "model.safetensors",
|
| 277 |
+
"model.layers.18.mlp.up_proj.weight": "model.safetensors",
|
| 278 |
+
"model.layers.18.post_attention_layernorm.weight": "model.safetensors",
|
| 279 |
+
"model.layers.18.post_attention_layernorm_2.weight": "model.safetensors",
|
| 280 |
+
"model.layers.18.self_attn.k_proj.biases": "model.safetensors",
|
| 281 |
+
"model.layers.18.self_attn.k_proj.scales": "model.safetensors",
|
| 282 |
+
"model.layers.18.self_attn.k_proj.weight": "model.safetensors",
|
| 283 |
+
"model.layers.18.self_attn.o_proj.biases": "model.safetensors",
|
| 284 |
+
"model.layers.18.self_attn.o_proj.scales": "model.safetensors",
|
| 285 |
+
"model.layers.18.self_attn.o_proj.weight": "model.safetensors",
|
| 286 |
+
"model.layers.18.self_attn.q_proj.biases": "model.safetensors",
|
| 287 |
+
"model.layers.18.self_attn.q_proj.scales": "model.safetensors",
|
| 288 |
+
"model.layers.18.self_attn.q_proj.weight": "model.safetensors",
|
| 289 |
+
"model.layers.18.self_attn.v_proj.biases": "model.safetensors",
|
| 290 |
+
"model.layers.18.self_attn.v_proj.scales": "model.safetensors",
|
| 291 |
+
"model.layers.18.self_attn.v_proj.weight": "model.safetensors",
|
| 292 |
+
"model.layers.19.input_layernorm.weight": "model.safetensors",
|
| 293 |
+
"model.layers.19.input_layernorm_2.weight": "model.safetensors",
|
| 294 |
+
"model.layers.19.mlp.down_proj.biases": "model.safetensors",
|
| 295 |
+
"model.layers.19.mlp.down_proj.scales": "model.safetensors",
|
| 296 |
+
"model.layers.19.mlp.down_proj.weight": "model.safetensors",
|
| 297 |
+
"model.layers.19.mlp.gate_proj.biases": "model.safetensors",
|
| 298 |
+
"model.layers.19.mlp.gate_proj.scales": "model.safetensors",
|
| 299 |
+
"model.layers.19.mlp.gate_proj.weight": "model.safetensors",
|
| 300 |
+
"model.layers.19.mlp.up_proj.biases": "model.safetensors",
|
| 301 |
+
"model.layers.19.mlp.up_proj.scales": "model.safetensors",
|
| 302 |
+
"model.layers.19.mlp.up_proj.weight": "model.safetensors",
|
| 303 |
+
"model.layers.19.post_attention_layernorm.weight": "model.safetensors",
|
| 304 |
+
"model.layers.19.post_attention_layernorm_2.weight": "model.safetensors",
|
| 305 |
+
"model.layers.19.self_attn.k_proj.biases": "model.safetensors",
|
| 306 |
+
"model.layers.19.self_attn.k_proj.scales": "model.safetensors",
|
| 307 |
+
"model.layers.19.self_attn.k_proj.weight": "model.safetensors",
|
| 308 |
+
"model.layers.19.self_attn.o_proj.biases": "model.safetensors",
|
| 309 |
+
"model.layers.19.self_attn.o_proj.scales": "model.safetensors",
|
| 310 |
+
"model.layers.19.self_attn.o_proj.weight": "model.safetensors",
|
| 311 |
+
"model.layers.19.self_attn.q_proj.biases": "model.safetensors",
|
| 312 |
+
"model.layers.19.self_attn.q_proj.scales": "model.safetensors",
|
| 313 |
+
"model.layers.19.self_attn.q_proj.weight": "model.safetensors",
|
| 314 |
+
"model.layers.19.self_attn.v_proj.biases": "model.safetensors",
|
| 315 |
+
"model.layers.19.self_attn.v_proj.scales": "model.safetensors",
|
| 316 |
+
"model.layers.19.self_attn.v_proj.weight": "model.safetensors",
|
| 317 |
+
"model.layers.2.input_layernorm.weight": "model.safetensors",
|
| 318 |
+
"model.layers.2.input_layernorm_2.weight": "model.safetensors",
|
| 319 |
+
"model.layers.2.mlp.down_proj.biases": "model.safetensors",
|
| 320 |
+
"model.layers.2.mlp.down_proj.scales": "model.safetensors",
|
| 321 |
+
"model.layers.2.mlp.down_proj.weight": "model.safetensors",
|
| 322 |
+
"model.layers.2.mlp.gate_proj.biases": "model.safetensors",
|
| 323 |
+
"model.layers.2.mlp.gate_proj.scales": "model.safetensors",
|
| 324 |
+
"model.layers.2.mlp.gate_proj.weight": "model.safetensors",
|
| 325 |
+
"model.layers.2.mlp.up_proj.biases": "model.safetensors",
|
| 326 |
+
"model.layers.2.mlp.up_proj.scales": "model.safetensors",
|
| 327 |
+
"model.layers.2.mlp.up_proj.weight": "model.safetensors",
|
| 328 |
+
"model.layers.2.post_attention_layernorm.weight": "model.safetensors",
|
| 329 |
+
"model.layers.2.post_attention_layernorm_2.weight": "model.safetensors",
|
| 330 |
+
"model.layers.2.self_attn.k_proj.biases": "model.safetensors",
|
| 331 |
+
"model.layers.2.self_attn.k_proj.scales": "model.safetensors",
|
| 332 |
+
"model.layers.2.self_attn.k_proj.weight": "model.safetensors",
|
| 333 |
+
"model.layers.2.self_attn.o_proj.biases": "model.safetensors",
|
| 334 |
+
"model.layers.2.self_attn.o_proj.scales": "model.safetensors",
|
| 335 |
+
"model.layers.2.self_attn.o_proj.weight": "model.safetensors",
|
| 336 |
+
"model.layers.2.self_attn.q_proj.biases": "model.safetensors",
|
| 337 |
+
"model.layers.2.self_attn.q_proj.scales": "model.safetensors",
|
| 338 |
+
"model.layers.2.self_attn.q_proj.weight": "model.safetensors",
|
| 339 |
+
"model.layers.2.self_attn.v_proj.biases": "model.safetensors",
|
| 340 |
+
"model.layers.2.self_attn.v_proj.scales": "model.safetensors",
|
| 341 |
+
"model.layers.2.self_attn.v_proj.weight": "model.safetensors",
|
| 342 |
+
"model.layers.20.input_layernorm.weight": "model.safetensors",
|
| 343 |
+
"model.layers.20.input_layernorm_2.weight": "model.safetensors",
|
| 344 |
+
"model.layers.20.mlp.down_proj.biases": "model.safetensors",
|
| 345 |
+
"model.layers.20.mlp.down_proj.scales": "model.safetensors",
|
| 346 |
+
"model.layers.20.mlp.down_proj.weight": "model.safetensors",
|
| 347 |
+
"model.layers.20.mlp.gate_proj.biases": "model.safetensors",
|
| 348 |
+
"model.layers.20.mlp.gate_proj.scales": "model.safetensors",
|
| 349 |
+
"model.layers.20.mlp.gate_proj.weight": "model.safetensors",
|
| 350 |
+
"model.layers.20.mlp.up_proj.biases": "model.safetensors",
|
| 351 |
+
"model.layers.20.mlp.up_proj.scales": "model.safetensors",
|
| 352 |
+
"model.layers.20.mlp.up_proj.weight": "model.safetensors",
|
| 353 |
+
"model.layers.20.post_attention_layernorm.weight": "model.safetensors",
|
| 354 |
+
"model.layers.20.post_attention_layernorm_2.weight": "model.safetensors",
|
| 355 |
+
"model.layers.20.self_attn.k_proj.biases": "model.safetensors",
|
| 356 |
+
"model.layers.20.self_attn.k_proj.scales": "model.safetensors",
|
| 357 |
+
"model.layers.20.self_attn.k_proj.weight": "model.safetensors",
|
| 358 |
+
"model.layers.20.self_attn.o_proj.biases": "model.safetensors",
|
| 359 |
+
"model.layers.20.self_attn.o_proj.scales": "model.safetensors",
|
| 360 |
+
"model.layers.20.self_attn.o_proj.weight": "model.safetensors",
|
| 361 |
+
"model.layers.20.self_attn.q_proj.biases": "model.safetensors",
|
| 362 |
+
"model.layers.20.self_attn.q_proj.scales": "model.safetensors",
|
| 363 |
+
"model.layers.20.self_attn.q_proj.weight": "model.safetensors",
|
| 364 |
+
"model.layers.20.self_attn.v_proj.biases": "model.safetensors",
|
| 365 |
+
"model.layers.20.self_attn.v_proj.scales": "model.safetensors",
|
| 366 |
+
"model.layers.20.self_attn.v_proj.weight": "model.safetensors",
|
| 367 |
+
"model.layers.21.input_layernorm.weight": "model.safetensors",
|
| 368 |
+
"model.layers.21.input_layernorm_2.weight": "model.safetensors",
|
| 369 |
+
"model.layers.21.mlp.down_proj.biases": "model.safetensors",
|
| 370 |
+
"model.layers.21.mlp.down_proj.scales": "model.safetensors",
|
| 371 |
+
"model.layers.21.mlp.down_proj.weight": "model.safetensors",
|
| 372 |
+
"model.layers.21.mlp.gate_proj.biases": "model.safetensors",
|
| 373 |
+
"model.layers.21.mlp.gate_proj.scales": "model.safetensors",
|
| 374 |
+
"model.layers.21.mlp.gate_proj.weight": "model.safetensors",
|
| 375 |
+
"model.layers.21.mlp.up_proj.biases": "model.safetensors",
|
| 376 |
+
"model.layers.21.mlp.up_proj.scales": "model.safetensors",
|
| 377 |
+
"model.layers.21.mlp.up_proj.weight": "model.safetensors",
|
| 378 |
+
"model.layers.21.post_attention_layernorm.weight": "model.safetensors",
|
| 379 |
+
"model.layers.21.post_attention_layernorm_2.weight": "model.safetensors",
|
| 380 |
+
"model.layers.21.self_attn.k_proj.biases": "model.safetensors",
|
| 381 |
+
"model.layers.21.self_attn.k_proj.scales": "model.safetensors",
|
| 382 |
+
"model.layers.21.self_attn.k_proj.weight": "model.safetensors",
|
| 383 |
+
"model.layers.21.self_attn.o_proj.biases": "model.safetensors",
|
| 384 |
+
"model.layers.21.self_attn.o_proj.scales": "model.safetensors",
|
| 385 |
+
"model.layers.21.self_attn.o_proj.weight": "model.safetensors",
|
| 386 |
+
"model.layers.21.self_attn.q_proj.biases": "model.safetensors",
|
| 387 |
+
"model.layers.21.self_attn.q_proj.scales": "model.safetensors",
|
| 388 |
+
"model.layers.21.self_attn.q_proj.weight": "model.safetensors",
|
| 389 |
+
"model.layers.21.self_attn.v_proj.biases": "model.safetensors",
|
| 390 |
+
"model.layers.21.self_attn.v_proj.scales": "model.safetensors",
|
| 391 |
+
"model.layers.21.self_attn.v_proj.weight": "model.safetensors",
|
| 392 |
+
"model.layers.22.input_layernorm.weight": "model.safetensors",
|
| 393 |
+
"model.layers.22.input_layernorm_2.weight": "model.safetensors",
|
| 394 |
+
"model.layers.22.mlp.down_proj.biases": "model.safetensors",
|
| 395 |
+
"model.layers.22.mlp.down_proj.scales": "model.safetensors",
|
| 396 |
+
"model.layers.22.mlp.down_proj.weight": "model.safetensors",
|
| 397 |
+
"model.layers.22.mlp.gate_proj.biases": "model.safetensors",
|
| 398 |
+
"model.layers.22.mlp.gate_proj.scales": "model.safetensors",
|
| 399 |
+
"model.layers.22.mlp.gate_proj.weight": "model.safetensors",
|
| 400 |
+
"model.layers.22.mlp.up_proj.biases": "model.safetensors",
|
| 401 |
+
"model.layers.22.mlp.up_proj.scales": "model.safetensors",
|
| 402 |
+
"model.layers.22.mlp.up_proj.weight": "model.safetensors",
|
| 403 |
+
"model.layers.22.post_attention_layernorm.weight": "model.safetensors",
|
| 404 |
+
"model.layers.22.post_attention_layernorm_2.weight": "model.safetensors",
|
| 405 |
+
"model.layers.22.self_attn.k_proj.biases": "model.safetensors",
|
| 406 |
+
"model.layers.22.self_attn.k_proj.scales": "model.safetensors",
|
| 407 |
+
"model.layers.22.self_attn.k_proj.weight": "model.safetensors",
|
| 408 |
+
"model.layers.22.self_attn.o_proj.biases": "model.safetensors",
|
| 409 |
+
"model.layers.22.self_attn.o_proj.scales": "model.safetensors",
|
| 410 |
+
"model.layers.22.self_attn.o_proj.weight": "model.safetensors",
|
| 411 |
+
"model.layers.22.self_attn.q_proj.biases": "model.safetensors",
|
| 412 |
+
"model.layers.22.self_attn.q_proj.scales": "model.safetensors",
|
| 413 |
+
"model.layers.22.self_attn.q_proj.weight": "model.safetensors",
|
| 414 |
+
"model.layers.22.self_attn.v_proj.biases": "model.safetensors",
|
| 415 |
+
"model.layers.22.self_attn.v_proj.scales": "model.safetensors",
|
| 416 |
+
"model.layers.22.self_attn.v_proj.weight": "model.safetensors",
|
| 417 |
+
"model.layers.23.input_layernorm.weight": "model.safetensors",
|
| 418 |
+
"model.layers.23.input_layernorm_2.weight": "model.safetensors",
|
| 419 |
+
"model.layers.23.mlp.down_proj.biases": "model.safetensors",
|
| 420 |
+
"model.layers.23.mlp.down_proj.scales": "model.safetensors",
|
| 421 |
+
"model.layers.23.mlp.down_proj.weight": "model.safetensors",
|
| 422 |
+
"model.layers.23.mlp.gate_proj.biases": "model.safetensors",
|
| 423 |
+
"model.layers.23.mlp.gate_proj.scales": "model.safetensors",
|
| 424 |
+
"model.layers.23.mlp.gate_proj.weight": "model.safetensors",
|
| 425 |
+
"model.layers.23.mlp.up_proj.biases": "model.safetensors",
|
| 426 |
+
"model.layers.23.mlp.up_proj.scales": "model.safetensors",
|
| 427 |
+
"model.layers.23.mlp.up_proj.weight": "model.safetensors",
|
| 428 |
+
"model.layers.23.post_attention_layernorm.weight": "model.safetensors",
|
| 429 |
+
"model.layers.23.post_attention_layernorm_2.weight": "model.safetensors",
|
| 430 |
+
"model.layers.23.self_attn.k_proj.biases": "model.safetensors",
|
| 431 |
+
"model.layers.23.self_attn.k_proj.scales": "model.safetensors",
|
| 432 |
+
"model.layers.23.self_attn.k_proj.weight": "model.safetensors",
|
| 433 |
+
"model.layers.23.self_attn.o_proj.biases": "model.safetensors",
|
| 434 |
+
"model.layers.23.self_attn.o_proj.scales": "model.safetensors",
|
| 435 |
+
"model.layers.23.self_attn.o_proj.weight": "model.safetensors",
|
| 436 |
+
"model.layers.23.self_attn.q_proj.biases": "model.safetensors",
|
| 437 |
+
"model.layers.23.self_attn.q_proj.scales": "model.safetensors",
|
| 438 |
+
"model.layers.23.self_attn.q_proj.weight": "model.safetensors",
|
| 439 |
+
"model.layers.23.self_attn.v_proj.biases": "model.safetensors",
|
| 440 |
+
"model.layers.23.self_attn.v_proj.scales": "model.safetensors",
|
| 441 |
+
"model.layers.23.self_attn.v_proj.weight": "model.safetensors",
|
| 442 |
+
"model.layers.24.input_layernorm.weight": "model.safetensors",
|
| 443 |
+
"model.layers.24.input_layernorm_2.weight": "model.safetensors",
|
| 444 |
+
"model.layers.24.mlp.down_proj.biases": "model.safetensors",
|
| 445 |
+
"model.layers.24.mlp.down_proj.scales": "model.safetensors",
|
| 446 |
+
"model.layers.24.mlp.down_proj.weight": "model.safetensors",
|
| 447 |
+
"model.layers.24.mlp.gate_proj.biases": "model.safetensors",
|
| 448 |
+
"model.layers.24.mlp.gate_proj.scales": "model.safetensors",
|
| 449 |
+
"model.layers.24.mlp.gate_proj.weight": "model.safetensors",
|
| 450 |
+
"model.layers.24.mlp.up_proj.biases": "model.safetensors",
|
| 451 |
+
"model.layers.24.mlp.up_proj.scales": "model.safetensors",
|
| 452 |
+
"model.layers.24.mlp.up_proj.weight": "model.safetensors",
|
| 453 |
+
"model.layers.24.post_attention_layernorm.weight": "model.safetensors",
|
| 454 |
+
"model.layers.24.post_attention_layernorm_2.weight": "model.safetensors",
|
| 455 |
+
"model.layers.24.self_attn.k_proj.biases": "model.safetensors",
|
| 456 |
+
"model.layers.24.self_attn.k_proj.scales": "model.safetensors",
|
| 457 |
+
"model.layers.24.self_attn.k_proj.weight": "model.safetensors",
|
| 458 |
+
"model.layers.24.self_attn.o_proj.biases": "model.safetensors",
|
| 459 |
+
"model.layers.24.self_attn.o_proj.scales": "model.safetensors",
|
| 460 |
+
"model.layers.24.self_attn.o_proj.weight": "model.safetensors",
|
| 461 |
+
"model.layers.24.self_attn.q_proj.biases": "model.safetensors",
|
| 462 |
+
"model.layers.24.self_attn.q_proj.scales": "model.safetensors",
|
| 463 |
+
"model.layers.24.self_attn.q_proj.weight": "model.safetensors",
|
| 464 |
+
"model.layers.24.self_attn.v_proj.biases": "model.safetensors",
|
| 465 |
+
"model.layers.24.self_attn.v_proj.scales": "model.safetensors",
|
| 466 |
+
"model.layers.24.self_attn.v_proj.weight": "model.safetensors",
|
| 467 |
+
"model.layers.25.input_layernorm.weight": "model.safetensors",
|
| 468 |
+
"model.layers.25.input_layernorm_2.weight": "model.safetensors",
|
| 469 |
+
"model.layers.25.mlp.down_proj.biases": "model.safetensors",
|
| 470 |
+
"model.layers.25.mlp.down_proj.scales": "model.safetensors",
|
| 471 |
+
"model.layers.25.mlp.down_proj.weight": "model.safetensors",
|
| 472 |
+
"model.layers.25.mlp.gate_proj.biases": "model.safetensors",
|
| 473 |
+
"model.layers.25.mlp.gate_proj.scales": "model.safetensors",
|
| 474 |
+
"model.layers.25.mlp.gate_proj.weight": "model.safetensors",
|
| 475 |
+
"model.layers.25.mlp.up_proj.biases": "model.safetensors",
|
| 476 |
+
"model.layers.25.mlp.up_proj.scales": "model.safetensors",
|
| 477 |
+
"model.layers.25.mlp.up_proj.weight": "model.safetensors",
|
| 478 |
+
"model.layers.25.post_attention_layernorm.weight": "model.safetensors",
|
| 479 |
+
"model.layers.25.post_attention_layernorm_2.weight": "model.safetensors",
|
| 480 |
+
"model.layers.25.self_attn.k_proj.biases": "model.safetensors",
|
| 481 |
+
"model.layers.25.self_attn.k_proj.scales": "model.safetensors",
|
| 482 |
+
"model.layers.25.self_attn.k_proj.weight": "model.safetensors",
|
| 483 |
+
"model.layers.25.self_attn.o_proj.biases": "model.safetensors",
|
| 484 |
+
"model.layers.25.self_attn.o_proj.scales": "model.safetensors",
|
| 485 |
+
"model.layers.25.self_attn.o_proj.weight": "model.safetensors",
|
| 486 |
+
"model.layers.25.self_attn.q_proj.biases": "model.safetensors",
|
| 487 |
+
"model.layers.25.self_attn.q_proj.scales": "model.safetensors",
|
| 488 |
+
"model.layers.25.self_attn.q_proj.weight": "model.safetensors",
|
| 489 |
+
"model.layers.25.self_attn.v_proj.biases": "model.safetensors",
|
| 490 |
+
"model.layers.25.self_attn.v_proj.scales": "model.safetensors",
|
| 491 |
+
"model.layers.25.self_attn.v_proj.weight": "model.safetensors",
|
| 492 |
+
"model.layers.26.input_layernorm.weight": "model.safetensors",
|
| 493 |
+
"model.layers.26.input_layernorm_2.weight": "model.safetensors",
|
| 494 |
+
"model.layers.26.mlp.down_proj.biases": "model.safetensors",
|
| 495 |
+
"model.layers.26.mlp.down_proj.scales": "model.safetensors",
|
| 496 |
+
"model.layers.26.mlp.down_proj.weight": "model.safetensors",
|
| 497 |
+
"model.layers.26.mlp.gate_proj.biases": "model.safetensors",
|
| 498 |
+
"model.layers.26.mlp.gate_proj.scales": "model.safetensors",
|
| 499 |
+
"model.layers.26.mlp.gate_proj.weight": "model.safetensors",
|
| 500 |
+
"model.layers.26.mlp.up_proj.biases": "model.safetensors",
|
| 501 |
+
"model.layers.26.mlp.up_proj.scales": "model.safetensors",
|
| 502 |
+
"model.layers.26.mlp.up_proj.weight": "model.safetensors",
|
| 503 |
+
"model.layers.26.post_attention_layernorm.weight": "model.safetensors",
|
| 504 |
+
"model.layers.26.post_attention_layernorm_2.weight": "model.safetensors",
|
| 505 |
+
"model.layers.26.self_attn.k_proj.biases": "model.safetensors",
|
| 506 |
+
"model.layers.26.self_attn.k_proj.scales": "model.safetensors",
|
| 507 |
+
"model.layers.26.self_attn.k_proj.weight": "model.safetensors",
|
| 508 |
+
"model.layers.26.self_attn.o_proj.biases": "model.safetensors",
|
| 509 |
+
"model.layers.26.self_attn.o_proj.scales": "model.safetensors",
|
| 510 |
+
"model.layers.26.self_attn.o_proj.weight": "model.safetensors",
|
| 511 |
+
"model.layers.26.self_attn.q_proj.biases": "model.safetensors",
|
| 512 |
+
"model.layers.26.self_attn.q_proj.scales": "model.safetensors",
|
| 513 |
+
"model.layers.26.self_attn.q_proj.weight": "model.safetensors",
|
| 514 |
+
"model.layers.26.self_attn.v_proj.biases": "model.safetensors",
|
| 515 |
+
"model.layers.26.self_attn.v_proj.scales": "model.safetensors",
|
| 516 |
+
"model.layers.26.self_attn.v_proj.weight": "model.safetensors",
|
| 517 |
+
"model.layers.27.input_layernorm.weight": "model.safetensors",
|
| 518 |
+
"model.layers.27.input_layernorm_2.weight": "model.safetensors",
|
| 519 |
+
"model.layers.27.mlp.down_proj.biases": "model.safetensors",
|
| 520 |
+
"model.layers.27.mlp.down_proj.scales": "model.safetensors",
|
| 521 |
+
"model.layers.27.mlp.down_proj.weight": "model.safetensors",
|
| 522 |
+
"model.layers.27.mlp.gate_proj.biases": "model.safetensors",
|
| 523 |
+
"model.layers.27.mlp.gate_proj.scales": "model.safetensors",
|
| 524 |
+
"model.layers.27.mlp.gate_proj.weight": "model.safetensors",
|
| 525 |
+
"model.layers.27.mlp.up_proj.biases": "model.safetensors",
|
| 526 |
+
"model.layers.27.mlp.up_proj.scales": "model.safetensors",
|
| 527 |
+
"model.layers.27.mlp.up_proj.weight": "model.safetensors",
|
| 528 |
+
"model.layers.27.post_attention_layernorm.weight": "model.safetensors",
|
| 529 |
+
"model.layers.27.post_attention_layernorm_2.weight": "model.safetensors",
|
| 530 |
+
"model.layers.27.self_attn.k_proj.biases": "model.safetensors",
|
| 531 |
+
"model.layers.27.self_attn.k_proj.scales": "model.safetensors",
|
| 532 |
+
"model.layers.27.self_attn.k_proj.weight": "model.safetensors",
|
| 533 |
+
"model.layers.27.self_attn.o_proj.biases": "model.safetensors",
|
| 534 |
+
"model.layers.27.self_attn.o_proj.scales": "model.safetensors",
|
| 535 |
+
"model.layers.27.self_attn.o_proj.weight": "model.safetensors",
|
| 536 |
+
"model.layers.27.self_attn.q_proj.biases": "model.safetensors",
|
| 537 |
+
"model.layers.27.self_attn.q_proj.scales": "model.safetensors",
|
| 538 |
+
"model.layers.27.self_attn.q_proj.weight": "model.safetensors",
|
| 539 |
+
"model.layers.27.self_attn.v_proj.biases": "model.safetensors",
|
| 540 |
+
"model.layers.27.self_attn.v_proj.scales": "model.safetensors",
|
| 541 |
+
"model.layers.27.self_attn.v_proj.weight": "model.safetensors",
|
| 542 |
+
"model.layers.28.input_layernorm.weight": "model.safetensors",
|
| 543 |
+
"model.layers.28.input_layernorm_2.weight": "model.safetensors",
|
| 544 |
+
"model.layers.28.mlp.down_proj.biases": "model.safetensors",
|
| 545 |
+
"model.layers.28.mlp.down_proj.scales": "model.safetensors",
|
| 546 |
+
"model.layers.28.mlp.down_proj.weight": "model.safetensors",
|
| 547 |
+
"model.layers.28.mlp.gate_proj.biases": "model.safetensors",
|
| 548 |
+
"model.layers.28.mlp.gate_proj.scales": "model.safetensors",
|
| 549 |
+
"model.layers.28.mlp.gate_proj.weight": "model.safetensors",
|
| 550 |
+
"model.layers.28.mlp.up_proj.biases": "model.safetensors",
|
| 551 |
+
"model.layers.28.mlp.up_proj.scales": "model.safetensors",
|
| 552 |
+
"model.layers.28.mlp.up_proj.weight": "model.safetensors",
|
| 553 |
+
"model.layers.28.post_attention_layernorm.weight": "model.safetensors",
|
| 554 |
+
"model.layers.28.post_attention_layernorm_2.weight": "model.safetensors",
|
| 555 |
+
"model.layers.28.self_attn.k_proj.biases": "model.safetensors",
|
| 556 |
+
"model.layers.28.self_attn.k_proj.scales": "model.safetensors",
|
| 557 |
+
"model.layers.28.self_attn.k_proj.weight": "model.safetensors",
|
| 558 |
+
"model.layers.28.self_attn.o_proj.biases": "model.safetensors",
|
| 559 |
+
"model.layers.28.self_attn.o_proj.scales": "model.safetensors",
|
| 560 |
+
"model.layers.28.self_attn.o_proj.weight": "model.safetensors",
|
| 561 |
+
"model.layers.28.self_attn.q_proj.biases": "model.safetensors",
|
| 562 |
+
"model.layers.28.self_attn.q_proj.scales": "model.safetensors",
|
| 563 |
+
"model.layers.28.self_attn.q_proj.weight": "model.safetensors",
|
| 564 |
+
"model.layers.28.self_attn.v_proj.biases": "model.safetensors",
|
| 565 |
+
"model.layers.28.self_attn.v_proj.scales": "model.safetensors",
|
| 566 |
+
"model.layers.28.self_attn.v_proj.weight": "model.safetensors",
|
| 567 |
+
"model.layers.29.input_layernorm.weight": "model.safetensors",
|
| 568 |
+
"model.layers.29.input_layernorm_2.weight": "model.safetensors",
|
| 569 |
+
"model.layers.29.mlp.down_proj.biases": "model.safetensors",
|
| 570 |
+
"model.layers.29.mlp.down_proj.scales": "model.safetensors",
|
| 571 |
+
"model.layers.29.mlp.down_proj.weight": "model.safetensors",
|
| 572 |
+
"model.layers.29.mlp.gate_proj.biases": "model.safetensors",
|
| 573 |
+
"model.layers.29.mlp.gate_proj.scales": "model.safetensors",
|
| 574 |
+
"model.layers.29.mlp.gate_proj.weight": "model.safetensors",
|
| 575 |
+
"model.layers.29.mlp.up_proj.biases": "model.safetensors",
|
| 576 |
+
"model.layers.29.mlp.up_proj.scales": "model.safetensors",
|
| 577 |
+
"model.layers.29.mlp.up_proj.weight": "model.safetensors",
|
| 578 |
+
"model.layers.29.post_attention_layernorm.weight": "model.safetensors",
|
| 579 |
+
"model.layers.29.post_attention_layernorm_2.weight": "model.safetensors",
|
| 580 |
+
"model.layers.29.self_attn.k_proj.biases": "model.safetensors",
|
| 581 |
+
"model.layers.29.self_attn.k_proj.scales": "model.safetensors",
|
| 582 |
+
"model.layers.29.self_attn.k_proj.weight": "model.safetensors",
|
| 583 |
+
"model.layers.29.self_attn.o_proj.biases": "model.safetensors",
|
| 584 |
+
"model.layers.29.self_attn.o_proj.scales": "model.safetensors",
|
| 585 |
+
"model.layers.29.self_attn.o_proj.weight": "model.safetensors",
|
| 586 |
+
"model.layers.29.self_attn.q_proj.biases": "model.safetensors",
|
| 587 |
+
"model.layers.29.self_attn.q_proj.scales": "model.safetensors",
|
| 588 |
+
"model.layers.29.self_attn.q_proj.weight": "model.safetensors",
|
| 589 |
+
"model.layers.29.self_attn.v_proj.biases": "model.safetensors",
|
| 590 |
+
"model.layers.29.self_attn.v_proj.scales": "model.safetensors",
|
| 591 |
+
"model.layers.29.self_attn.v_proj.weight": "model.safetensors",
|
| 592 |
+
"model.layers.3.input_layernorm.weight": "model.safetensors",
|
| 593 |
+
"model.layers.3.input_layernorm_2.weight": "model.safetensors",
|
| 594 |
+
"model.layers.3.mlp.down_proj.biases": "model.safetensors",
|
| 595 |
+
"model.layers.3.mlp.down_proj.scales": "model.safetensors",
|
| 596 |
+
"model.layers.3.mlp.down_proj.weight": "model.safetensors",
|
| 597 |
+
"model.layers.3.mlp.gate_proj.biases": "model.safetensors",
|
| 598 |
+
"model.layers.3.mlp.gate_proj.scales": "model.safetensors",
|
| 599 |
+
"model.layers.3.mlp.gate_proj.weight": "model.safetensors",
|
| 600 |
+
"model.layers.3.mlp.up_proj.biases": "model.safetensors",
|
| 601 |
+
"model.layers.3.mlp.up_proj.scales": "model.safetensors",
|
| 602 |
+
"model.layers.3.mlp.up_proj.weight": "model.safetensors",
|
| 603 |
+
"model.layers.3.post_attention_layernorm.weight": "model.safetensors",
|
| 604 |
+
"model.layers.3.post_attention_layernorm_2.weight": "model.safetensors",
|
| 605 |
+
"model.layers.3.self_attn.k_proj.biases": "model.safetensors",
|
| 606 |
+
"model.layers.3.self_attn.k_proj.scales": "model.safetensors",
|
| 607 |
+
"model.layers.3.self_attn.k_proj.weight": "model.safetensors",
|
| 608 |
+
"model.layers.3.self_attn.o_proj.biases": "model.safetensors",
|
| 609 |
+
"model.layers.3.self_attn.o_proj.scales": "model.safetensors",
|
| 610 |
+
"model.layers.3.self_attn.o_proj.weight": "model.safetensors",
|
| 611 |
+
"model.layers.3.self_attn.q_proj.biases": "model.safetensors",
|
| 612 |
+
"model.layers.3.self_attn.q_proj.scales": "model.safetensors",
|
| 613 |
+
"model.layers.3.self_attn.q_proj.weight": "model.safetensors",
|
| 614 |
+
"model.layers.3.self_attn.v_proj.biases": "model.safetensors",
|
| 615 |
+
"model.layers.3.self_attn.v_proj.scales": "model.safetensors",
|
| 616 |
+
"model.layers.3.self_attn.v_proj.weight": "model.safetensors",
|
| 617 |
+
"model.layers.30.input_layernorm.weight": "model.safetensors",
|
| 618 |
+
"model.layers.30.input_layernorm_2.weight": "model.safetensors",
|
| 619 |
+
"model.layers.30.mlp.down_proj.biases": "model.safetensors",
|
| 620 |
+
"model.layers.30.mlp.down_proj.scales": "model.safetensors",
|
| 621 |
+
"model.layers.30.mlp.down_proj.weight": "model.safetensors",
|
| 622 |
+
"model.layers.30.mlp.gate_proj.biases": "model.safetensors",
|
| 623 |
+
"model.layers.30.mlp.gate_proj.scales": "model.safetensors",
|
| 624 |
+
"model.layers.30.mlp.gate_proj.weight": "model.safetensors",
|
| 625 |
+
"model.layers.30.mlp.up_proj.biases": "model.safetensors",
|
| 626 |
+
"model.layers.30.mlp.up_proj.scales": "model.safetensors",
|
| 627 |
+
"model.layers.30.mlp.up_proj.weight": "model.safetensors",
|
| 628 |
+
"model.layers.30.post_attention_layernorm.weight": "model.safetensors",
|
| 629 |
+
"model.layers.30.post_attention_layernorm_2.weight": "model.safetensors",
|
| 630 |
+
"model.layers.30.self_attn.k_proj.biases": "model.safetensors",
|
| 631 |
+
"model.layers.30.self_attn.k_proj.scales": "model.safetensors",
|
| 632 |
+
"model.layers.30.self_attn.k_proj.weight": "model.safetensors",
|
| 633 |
+
"model.layers.30.self_attn.o_proj.biases": "model.safetensors",
|
| 634 |
+
"model.layers.30.self_attn.o_proj.scales": "model.safetensors",
|
| 635 |
+
"model.layers.30.self_attn.o_proj.weight": "model.safetensors",
|
| 636 |
+
"model.layers.30.self_attn.q_proj.biases": "model.safetensors",
|
| 637 |
+
"model.layers.30.self_attn.q_proj.scales": "model.safetensors",
|
| 638 |
+
"model.layers.30.self_attn.q_proj.weight": "model.safetensors",
|
| 639 |
+
"model.layers.30.self_attn.v_proj.biases": "model.safetensors",
|
| 640 |
+
"model.layers.30.self_attn.v_proj.scales": "model.safetensors",
|
| 641 |
+
"model.layers.30.self_attn.v_proj.weight": "model.safetensors",
|
| 642 |
+
"model.layers.31.input_layernorm.weight": "model.safetensors",
|
| 643 |
+
"model.layers.31.input_layernorm_2.weight": "model.safetensors",
|
| 644 |
+
"model.layers.31.mlp.down_proj.biases": "model.safetensors",
|
| 645 |
+
"model.layers.31.mlp.down_proj.scales": "model.safetensors",
|
| 646 |
+
"model.layers.31.mlp.down_proj.weight": "model.safetensors",
|
| 647 |
+
"model.layers.31.mlp.gate_proj.biases": "model.safetensors",
|
| 648 |
+
"model.layers.31.mlp.gate_proj.scales": "model.safetensors",
|
| 649 |
+
"model.layers.31.mlp.gate_proj.weight": "model.safetensors",
|
| 650 |
+
"model.layers.31.mlp.up_proj.biases": "model.safetensors",
|
| 651 |
+
"model.layers.31.mlp.up_proj.scales": "model.safetensors",
|
| 652 |
+
"model.layers.31.mlp.up_proj.weight": "model.safetensors",
|
| 653 |
+
"model.layers.31.post_attention_layernorm.weight": "model.safetensors",
|
| 654 |
+
"model.layers.31.post_attention_layernorm_2.weight": "model.safetensors",
|
| 655 |
+
"model.layers.31.self_attn.k_proj.biases": "model.safetensors",
|
| 656 |
+
"model.layers.31.self_attn.k_proj.scales": "model.safetensors",
|
| 657 |
+
"model.layers.31.self_attn.k_proj.weight": "model.safetensors",
|
| 658 |
+
"model.layers.31.self_attn.o_proj.biases": "model.safetensors",
|
| 659 |
+
"model.layers.31.self_attn.o_proj.scales": "model.safetensors",
|
| 660 |
+
"model.layers.31.self_attn.o_proj.weight": "model.safetensors",
|
| 661 |
+
"model.layers.31.self_attn.q_proj.biases": "model.safetensors",
|
| 662 |
+
"model.layers.31.self_attn.q_proj.scales": "model.safetensors",
|
| 663 |
+
"model.layers.31.self_attn.q_proj.weight": "model.safetensors",
|
| 664 |
+
"model.layers.31.self_attn.v_proj.biases": "model.safetensors",
|
| 665 |
+
"model.layers.31.self_attn.v_proj.scales": "model.safetensors",
|
| 666 |
+
"model.layers.31.self_attn.v_proj.weight": "model.safetensors",
|
| 667 |
+
"model.layers.32.input_layernorm.weight": "model.safetensors",
|
| 668 |
+
"model.layers.32.input_layernorm_2.weight": "model.safetensors",
|
| 669 |
+
"model.layers.32.mlp.down_proj.biases": "model.safetensors",
|
| 670 |
+
"model.layers.32.mlp.down_proj.scales": "model.safetensors",
|
| 671 |
+
"model.layers.32.mlp.down_proj.weight": "model.safetensors",
|
| 672 |
+
"model.layers.32.mlp.gate_proj.biases": "model.safetensors",
|
| 673 |
+
"model.layers.32.mlp.gate_proj.scales": "model.safetensors",
|
| 674 |
+
"model.layers.32.mlp.gate_proj.weight": "model.safetensors",
|
| 675 |
+
"model.layers.32.mlp.up_proj.biases": "model.safetensors",
|
| 676 |
+
"model.layers.32.mlp.up_proj.scales": "model.safetensors",
|
| 677 |
+
"model.layers.32.mlp.up_proj.weight": "model.safetensors",
|
| 678 |
+
"model.layers.32.post_attention_layernorm.weight": "model.safetensors",
|
| 679 |
+
"model.layers.32.post_attention_layernorm_2.weight": "model.safetensors",
|
| 680 |
+
"model.layers.32.self_attn.k_proj.biases": "model.safetensors",
|
| 681 |
+
"model.layers.32.self_attn.k_proj.scales": "model.safetensors",
|
| 682 |
+
"model.layers.32.self_attn.k_proj.weight": "model.safetensors",
|
| 683 |
+
"model.layers.32.self_attn.o_proj.biases": "model.safetensors",
|
| 684 |
+
"model.layers.32.self_attn.o_proj.scales": "model.safetensors",
|
| 685 |
+
"model.layers.32.self_attn.o_proj.weight": "model.safetensors",
|
| 686 |
+
"model.layers.32.self_attn.q_proj.biases": "model.safetensors",
|
| 687 |
+
"model.layers.32.self_attn.q_proj.scales": "model.safetensors",
|
| 688 |
+
"model.layers.32.self_attn.q_proj.weight": "model.safetensors",
|
| 689 |
+
"model.layers.32.self_attn.v_proj.biases": "model.safetensors",
|
| 690 |
+
"model.layers.32.self_attn.v_proj.scales": "model.safetensors",
|
| 691 |
+
"model.layers.32.self_attn.v_proj.weight": "model.safetensors",
|
| 692 |
+
"model.layers.33.input_layernorm.weight": "model.safetensors",
|
| 693 |
+
"model.layers.33.input_layernorm_2.weight": "model.safetensors",
|
| 694 |
+
"model.layers.33.mlp.down_proj.biases": "model.safetensors",
|
| 695 |
+
"model.layers.33.mlp.down_proj.scales": "model.safetensors",
|
| 696 |
+
"model.layers.33.mlp.down_proj.weight": "model.safetensors",
|
| 697 |
+
"model.layers.33.mlp.gate_proj.biases": "model.safetensors",
|
| 698 |
+
"model.layers.33.mlp.gate_proj.scales": "model.safetensors",
|
| 699 |
+
"model.layers.33.mlp.gate_proj.weight": "model.safetensors",
|
| 700 |
+
"model.layers.33.mlp.up_proj.biases": "model.safetensors",
|
| 701 |
+
"model.layers.33.mlp.up_proj.scales": "model.safetensors",
|
| 702 |
+
"model.layers.33.mlp.up_proj.weight": "model.safetensors",
|
| 703 |
+
"model.layers.33.post_attention_layernorm.weight": "model.safetensors",
|
| 704 |
+
"model.layers.33.post_attention_layernorm_2.weight": "model.safetensors",
|
| 705 |
+
"model.layers.33.self_attn.k_proj.biases": "model.safetensors",
|
| 706 |
+
"model.layers.33.self_attn.k_proj.scales": "model.safetensors",
|
| 707 |
+
"model.layers.33.self_attn.k_proj.weight": "model.safetensors",
|
| 708 |
+
"model.layers.33.self_attn.o_proj.biases": "model.safetensors",
|
| 709 |
+
"model.layers.33.self_attn.o_proj.scales": "model.safetensors",
|
| 710 |
+
"model.layers.33.self_attn.o_proj.weight": "model.safetensors",
|
| 711 |
+
"model.layers.33.self_attn.q_proj.biases": "model.safetensors",
|
| 712 |
+
"model.layers.33.self_attn.q_proj.scales": "model.safetensors",
|
| 713 |
+
"model.layers.33.self_attn.q_proj.weight": "model.safetensors",
|
| 714 |
+
"model.layers.33.self_attn.v_proj.biases": "model.safetensors",
|
| 715 |
+
"model.layers.33.self_attn.v_proj.scales": "model.safetensors",
|
| 716 |
+
"model.layers.33.self_attn.v_proj.weight": "model.safetensors",
|
| 717 |
+
"model.layers.34.input_layernorm.weight": "model.safetensors",
|
| 718 |
+
"model.layers.34.input_layernorm_2.weight": "model.safetensors",
|
| 719 |
+
"model.layers.34.mlp.down_proj.biases": "model.safetensors",
|
| 720 |
+
"model.layers.34.mlp.down_proj.scales": "model.safetensors",
|
| 721 |
+
"model.layers.34.mlp.down_proj.weight": "model.safetensors",
|
| 722 |
+
"model.layers.34.mlp.gate_proj.biases": "model.safetensors",
|
| 723 |
+
"model.layers.34.mlp.gate_proj.scales": "model.safetensors",
|
| 724 |
+
"model.layers.34.mlp.gate_proj.weight": "model.safetensors",
|
| 725 |
+
"model.layers.34.mlp.up_proj.biases": "model.safetensors",
|
| 726 |
+
"model.layers.34.mlp.up_proj.scales": "model.safetensors",
|
| 727 |
+
"model.layers.34.mlp.up_proj.weight": "model.safetensors",
|
| 728 |
+
"model.layers.34.post_attention_layernorm.weight": "model.safetensors",
|
| 729 |
+
"model.layers.34.post_attention_layernorm_2.weight": "model.safetensors",
|
| 730 |
+
"model.layers.34.self_attn.k_proj.biases": "model.safetensors",
|
| 731 |
+
"model.layers.34.self_attn.k_proj.scales": "model.safetensors",
|
| 732 |
+
"model.layers.34.self_attn.k_proj.weight": "model.safetensors",
|
| 733 |
+
"model.layers.34.self_attn.o_proj.biases": "model.safetensors",
|
| 734 |
+
"model.layers.34.self_attn.o_proj.scales": "model.safetensors",
|
| 735 |
+
"model.layers.34.self_attn.o_proj.weight": "model.safetensors",
|
| 736 |
+
"model.layers.34.self_attn.q_proj.biases": "model.safetensors",
|
| 737 |
+
"model.layers.34.self_attn.q_proj.scales": "model.safetensors",
|
| 738 |
+
"model.layers.34.self_attn.q_proj.weight": "model.safetensors",
|
| 739 |
+
"model.layers.34.self_attn.v_proj.biases": "model.safetensors",
|
| 740 |
+
"model.layers.34.self_attn.v_proj.scales": "model.safetensors",
|
| 741 |
+
"model.layers.34.self_attn.v_proj.weight": "model.safetensors",
|
| 742 |
+
"model.layers.35.input_layernorm.weight": "model.safetensors",
|
| 743 |
+
"model.layers.35.input_layernorm_2.weight": "model.safetensors",
|
| 744 |
+
"model.layers.35.mlp.down_proj.biases": "model.safetensors",
|
| 745 |
+
"model.layers.35.mlp.down_proj.scales": "model.safetensors",
|
| 746 |
+
"model.layers.35.mlp.down_proj.weight": "model.safetensors",
|
| 747 |
+
"model.layers.35.mlp.gate_proj.biases": "model.safetensors",
|
| 748 |
+
"model.layers.35.mlp.gate_proj.scales": "model.safetensors",
|
| 749 |
+
"model.layers.35.mlp.gate_proj.weight": "model.safetensors",
|
| 750 |
+
"model.layers.35.mlp.up_proj.biases": "model.safetensors",
|
| 751 |
+
"model.layers.35.mlp.up_proj.scales": "model.safetensors",
|
| 752 |
+
"model.layers.35.mlp.up_proj.weight": "model.safetensors",
|
| 753 |
+
"model.layers.35.post_attention_layernorm.weight": "model.safetensors",
|
| 754 |
+
"model.layers.35.post_attention_layernorm_2.weight": "model.safetensors",
|
| 755 |
+
"model.layers.35.self_attn.k_proj.biases": "model.safetensors",
|
| 756 |
+
"model.layers.35.self_attn.k_proj.scales": "model.safetensors",
|
| 757 |
+
"model.layers.35.self_attn.k_proj.weight": "model.safetensors",
|
| 758 |
+
"model.layers.35.self_attn.o_proj.biases": "model.safetensors",
|
| 759 |
+
"model.layers.35.self_attn.o_proj.scales": "model.safetensors",
|
| 760 |
+
"model.layers.35.self_attn.o_proj.weight": "model.safetensors",
|
| 761 |
+
"model.layers.35.self_attn.q_proj.biases": "model.safetensors",
|
| 762 |
+
"model.layers.35.self_attn.q_proj.scales": "model.safetensors",
|
| 763 |
+
"model.layers.35.self_attn.q_proj.weight": "model.safetensors",
|
| 764 |
+
"model.layers.35.self_attn.v_proj.biases": "model.safetensors",
|
| 765 |
+
"model.layers.35.self_attn.v_proj.scales": "model.safetensors",
|
| 766 |
+
"model.layers.35.self_attn.v_proj.weight": "model.safetensors",
|
| 767 |
+
"model.layers.36.input_layernorm.weight": "model.safetensors",
|
| 768 |
+
"model.layers.36.input_layernorm_2.weight": "model.safetensors",
|
| 769 |
+
"model.layers.36.mlp.down_proj.biases": "model.safetensors",
|
| 770 |
+
"model.layers.36.mlp.down_proj.scales": "model.safetensors",
|
| 771 |
+
"model.layers.36.mlp.down_proj.weight": "model.safetensors",
|
| 772 |
+
"model.layers.36.mlp.gate_proj.biases": "model.safetensors",
|
| 773 |
+
"model.layers.36.mlp.gate_proj.scales": "model.safetensors",
|
| 774 |
+
"model.layers.36.mlp.gate_proj.weight": "model.safetensors",
|
| 775 |
+
"model.layers.36.mlp.up_proj.biases": "model.safetensors",
|
| 776 |
+
"model.layers.36.mlp.up_proj.scales": "model.safetensors",
|
| 777 |
+
"model.layers.36.mlp.up_proj.weight": "model.safetensors",
|
| 778 |
+
"model.layers.36.post_attention_layernorm.weight": "model.safetensors",
|
| 779 |
+
"model.layers.36.post_attention_layernorm_2.weight": "model.safetensors",
|
| 780 |
+
"model.layers.36.self_attn.k_proj.biases": "model.safetensors",
|
| 781 |
+
"model.layers.36.self_attn.k_proj.scales": "model.safetensors",
|
| 782 |
+
"model.layers.36.self_attn.k_proj.weight": "model.safetensors",
|
| 783 |
+
"model.layers.36.self_attn.o_proj.biases": "model.safetensors",
|
| 784 |
+
"model.layers.36.self_attn.o_proj.scales": "model.safetensors",
|
| 785 |
+
"model.layers.36.self_attn.o_proj.weight": "model.safetensors",
|
| 786 |
+
"model.layers.36.self_attn.q_proj.biases": "model.safetensors",
|
| 787 |
+
"model.layers.36.self_attn.q_proj.scales": "model.safetensors",
|
| 788 |
+
"model.layers.36.self_attn.q_proj.weight": "model.safetensors",
|
| 789 |
+
"model.layers.36.self_attn.v_proj.biases": "model.safetensors",
|
| 790 |
+
"model.layers.36.self_attn.v_proj.scales": "model.safetensors",
|
| 791 |
+
"model.layers.36.self_attn.v_proj.weight": "model.safetensors",
|
| 792 |
+
"model.layers.37.input_layernorm.weight": "model.safetensors",
|
| 793 |
+
"model.layers.37.input_layernorm_2.weight": "model.safetensors",
|
| 794 |
+
"model.layers.37.mlp.down_proj.biases": "model.safetensors",
|
| 795 |
+
"model.layers.37.mlp.down_proj.scales": "model.safetensors",
|
| 796 |
+
"model.layers.37.mlp.down_proj.weight": "model.safetensors",
|
| 797 |
+
"model.layers.37.mlp.gate_proj.biases": "model.safetensors",
|
| 798 |
+
"model.layers.37.mlp.gate_proj.scales": "model.safetensors",
|
| 799 |
+
"model.layers.37.mlp.gate_proj.weight": "model.safetensors",
|
| 800 |
+
"model.layers.37.mlp.up_proj.biases": "model.safetensors",
|
| 801 |
+
"model.layers.37.mlp.up_proj.scales": "model.safetensors",
|
| 802 |
+
"model.layers.37.mlp.up_proj.weight": "model.safetensors",
|
| 803 |
+
"model.layers.37.post_attention_layernorm.weight": "model.safetensors",
|
| 804 |
+
"model.layers.37.post_attention_layernorm_2.weight": "model.safetensors",
|
| 805 |
+
"model.layers.37.self_attn.k_proj.biases": "model.safetensors",
|
| 806 |
+
"model.layers.37.self_attn.k_proj.scales": "model.safetensors",
|
| 807 |
+
"model.layers.37.self_attn.k_proj.weight": "model.safetensors",
|
| 808 |
+
"model.layers.37.self_attn.o_proj.biases": "model.safetensors",
|
| 809 |
+
"model.layers.37.self_attn.o_proj.scales": "model.safetensors",
|
| 810 |
+
"model.layers.37.self_attn.o_proj.weight": "model.safetensors",
|
| 811 |
+
"model.layers.37.self_attn.q_proj.biases": "model.safetensors",
|
| 812 |
+
"model.layers.37.self_attn.q_proj.scales": "model.safetensors",
|
| 813 |
+
"model.layers.37.self_attn.q_proj.weight": "model.safetensors",
|
| 814 |
+
"model.layers.37.self_attn.v_proj.biases": "model.safetensors",
|
| 815 |
+
"model.layers.37.self_attn.v_proj.scales": "model.safetensors",
|
| 816 |
+
"model.layers.37.self_attn.v_proj.weight": "model.safetensors",
|
| 817 |
+
"model.layers.38.input_layernorm.weight": "model.safetensors",
|
| 818 |
+
"model.layers.38.input_layernorm_2.weight": "model.safetensors",
|
| 819 |
+
"model.layers.38.mlp.down_proj.biases": "model.safetensors",
|
| 820 |
+
"model.layers.38.mlp.down_proj.scales": "model.safetensors",
|
| 821 |
+
"model.layers.38.mlp.down_proj.weight": "model.safetensors",
|
| 822 |
+
"model.layers.38.mlp.gate_proj.biases": "model.safetensors",
|
| 823 |
+
"model.layers.38.mlp.gate_proj.scales": "model.safetensors",
|
| 824 |
+
"model.layers.38.mlp.gate_proj.weight": "model.safetensors",
|
| 825 |
+
"model.layers.38.mlp.up_proj.biases": "model.safetensors",
|
| 826 |
+
"model.layers.38.mlp.up_proj.scales": "model.safetensors",
|
| 827 |
+
"model.layers.38.mlp.up_proj.weight": "model.safetensors",
|
| 828 |
+
"model.layers.38.post_attention_layernorm.weight": "model.safetensors",
|
| 829 |
+
"model.layers.38.post_attention_layernorm_2.weight": "model.safetensors",
|
| 830 |
+
"model.layers.38.self_attn.k_proj.biases": "model.safetensors",
|
| 831 |
+
"model.layers.38.self_attn.k_proj.scales": "model.safetensors",
|
| 832 |
+
"model.layers.38.self_attn.k_proj.weight": "model.safetensors",
|
| 833 |
+
"model.layers.38.self_attn.o_proj.biases": "model.safetensors",
|
| 834 |
+
"model.layers.38.self_attn.o_proj.scales": "model.safetensors",
|
| 835 |
+
"model.layers.38.self_attn.o_proj.weight": "model.safetensors",
|
| 836 |
+
"model.layers.38.self_attn.q_proj.biases": "model.safetensors",
|
| 837 |
+
"model.layers.38.self_attn.q_proj.scales": "model.safetensors",
|
| 838 |
+
"model.layers.38.self_attn.q_proj.weight": "model.safetensors",
|
| 839 |
+
"model.layers.38.self_attn.v_proj.biases": "model.safetensors",
|
| 840 |
+
"model.layers.38.self_attn.v_proj.scales": "model.safetensors",
|
| 841 |
+
"model.layers.38.self_attn.v_proj.weight": "model.safetensors",
|
| 842 |
+
"model.layers.39.input_layernorm.weight": "model.safetensors",
|
| 843 |
+
"model.layers.39.input_layernorm_2.weight": "model.safetensors",
|
| 844 |
+
"model.layers.39.mlp.down_proj.biases": "model.safetensors",
|
| 845 |
+
"model.layers.39.mlp.down_proj.scales": "model.safetensors",
|
| 846 |
+
"model.layers.39.mlp.down_proj.weight": "model.safetensors",
|
| 847 |
+
"model.layers.39.mlp.gate_proj.biases": "model.safetensors",
|
| 848 |
+
"model.layers.39.mlp.gate_proj.scales": "model.safetensors",
|
| 849 |
+
"model.layers.39.mlp.gate_proj.weight": "model.safetensors",
|
| 850 |
+
"model.layers.39.mlp.up_proj.biases": "model.safetensors",
|
| 851 |
+
"model.layers.39.mlp.up_proj.scales": "model.safetensors",
|
| 852 |
+
"model.layers.39.mlp.up_proj.weight": "model.safetensors",
|
| 853 |
+
"model.layers.39.post_attention_layernorm.weight": "model.safetensors",
|
| 854 |
+
"model.layers.39.post_attention_layernorm_2.weight": "model.safetensors",
|
| 855 |
+
"model.layers.39.self_attn.k_proj.biases": "model.safetensors",
|
| 856 |
+
"model.layers.39.self_attn.k_proj.scales": "model.safetensors",
|
| 857 |
+
"model.layers.39.self_attn.k_proj.weight": "model.safetensors",
|
| 858 |
+
"model.layers.39.self_attn.o_proj.biases": "model.safetensors",
|
| 859 |
+
"model.layers.39.self_attn.o_proj.scales": "model.safetensors",
|
| 860 |
+
"model.layers.39.self_attn.o_proj.weight": "model.safetensors",
|
| 861 |
+
"model.layers.39.self_attn.q_proj.biases": "model.safetensors",
|
| 862 |
+
"model.layers.39.self_attn.q_proj.scales": "model.safetensors",
|
| 863 |
+
"model.layers.39.self_attn.q_proj.weight": "model.safetensors",
|
| 864 |
+
"model.layers.39.self_attn.v_proj.biases": "model.safetensors",
|
| 865 |
+
"model.layers.39.self_attn.v_proj.scales": "model.safetensors",
|
| 866 |
+
"model.layers.39.self_attn.v_proj.weight": "model.safetensors",
|
| 867 |
+
"model.layers.4.input_layernorm.weight": "model.safetensors",
|
| 868 |
+
"model.layers.4.input_layernorm_2.weight": "model.safetensors",
|
| 869 |
+
"model.layers.4.mlp.down_proj.biases": "model.safetensors",
|
| 870 |
+
"model.layers.4.mlp.down_proj.scales": "model.safetensors",
|
| 871 |
+
"model.layers.4.mlp.down_proj.weight": "model.safetensors",
|
| 872 |
+
"model.layers.4.mlp.gate_proj.biases": "model.safetensors",
|
| 873 |
+
"model.layers.4.mlp.gate_proj.scales": "model.safetensors",
|
| 874 |
+
"model.layers.4.mlp.gate_proj.weight": "model.safetensors",
|
| 875 |
+
"model.layers.4.mlp.up_proj.biases": "model.safetensors",
|
| 876 |
+
"model.layers.4.mlp.up_proj.scales": "model.safetensors",
|
| 877 |
+
"model.layers.4.mlp.up_proj.weight": "model.safetensors",
|
| 878 |
+
"model.layers.4.post_attention_layernorm.weight": "model.safetensors",
|
| 879 |
+
"model.layers.4.post_attention_layernorm_2.weight": "model.safetensors",
|
| 880 |
+
"model.layers.4.self_attn.k_proj.biases": "model.safetensors",
|
| 881 |
+
"model.layers.4.self_attn.k_proj.scales": "model.safetensors",
|
| 882 |
+
"model.layers.4.self_attn.k_proj.weight": "model.safetensors",
|
| 883 |
+
"model.layers.4.self_attn.o_proj.biases": "model.safetensors",
|
| 884 |
+
"model.layers.4.self_attn.o_proj.scales": "model.safetensors",
|
| 885 |
+
"model.layers.4.self_attn.o_proj.weight": "model.safetensors",
|
| 886 |
+
"model.layers.4.self_attn.q_proj.biases": "model.safetensors",
|
| 887 |
+
"model.layers.4.self_attn.q_proj.scales": "model.safetensors",
|
| 888 |
+
"model.layers.4.self_attn.q_proj.weight": "model.safetensors",
|
| 889 |
+
"model.layers.4.self_attn.v_proj.biases": "model.safetensors",
|
| 890 |
+
"model.layers.4.self_attn.v_proj.scales": "model.safetensors",
|
| 891 |
+
"model.layers.4.self_attn.v_proj.weight": "model.safetensors",
|
| 892 |
+
"model.layers.40.input_layernorm.weight": "model.safetensors",
|
| 893 |
+
"model.layers.40.input_layernorm_2.weight": "model.safetensors",
|
| 894 |
+
"model.layers.40.mlp.down_proj.biases": "model.safetensors",
|
| 895 |
+
"model.layers.40.mlp.down_proj.scales": "model.safetensors",
|
| 896 |
+
"model.layers.40.mlp.down_proj.weight": "model.safetensors",
|
| 897 |
+
"model.layers.40.mlp.gate_proj.biases": "model.safetensors",
|
| 898 |
+
"model.layers.40.mlp.gate_proj.scales": "model.safetensors",
|
| 899 |
+
"model.layers.40.mlp.gate_proj.weight": "model.safetensors",
|
| 900 |
+
"model.layers.40.mlp.up_proj.biases": "model.safetensors",
|
| 901 |
+
"model.layers.40.mlp.up_proj.scales": "model.safetensors",
|
| 902 |
+
"model.layers.40.mlp.up_proj.weight": "model.safetensors",
|
| 903 |
+
"model.layers.40.post_attention_layernorm.weight": "model.safetensors",
|
| 904 |
+
"model.layers.40.post_attention_layernorm_2.weight": "model.safetensors",
|
| 905 |
+
"model.layers.40.self_attn.k_proj.biases": "model.safetensors",
|
| 906 |
+
"model.layers.40.self_attn.k_proj.scales": "model.safetensors",
|
| 907 |
+
"model.layers.40.self_attn.k_proj.weight": "model.safetensors",
|
| 908 |
+
"model.layers.40.self_attn.o_proj.biases": "model.safetensors",
|
| 909 |
+
"model.layers.40.self_attn.o_proj.scales": "model.safetensors",
|
| 910 |
+
"model.layers.40.self_attn.o_proj.weight": "model.safetensors",
|
| 911 |
+
"model.layers.40.self_attn.q_proj.biases": "model.safetensors",
|
| 912 |
+
"model.layers.40.self_attn.q_proj.scales": "model.safetensors",
|
| 913 |
+
"model.layers.40.self_attn.q_proj.weight": "model.safetensors",
|
| 914 |
+
"model.layers.40.self_attn.v_proj.biases": "model.safetensors",
|
| 915 |
+
"model.layers.40.self_attn.v_proj.scales": "model.safetensors",
|
| 916 |
+
"model.layers.40.self_attn.v_proj.weight": "model.safetensors",
|
| 917 |
+
"model.layers.41.input_layernorm.weight": "model.safetensors",
|
| 918 |
+
"model.layers.41.input_layernorm_2.weight": "model.safetensors",
|
| 919 |
+
"model.layers.41.mlp.down_proj.biases": "model.safetensors",
|
| 920 |
+
"model.layers.41.mlp.down_proj.scales": "model.safetensors",
|
| 921 |
+
"model.layers.41.mlp.down_proj.weight": "model.safetensors",
|
| 922 |
+
"model.layers.41.mlp.gate_proj.biases": "model.safetensors",
|
| 923 |
+
"model.layers.41.mlp.gate_proj.scales": "model.safetensors",
|
| 924 |
+
"model.layers.41.mlp.gate_proj.weight": "model.safetensors",
|
| 925 |
+
"model.layers.41.mlp.up_proj.biases": "model.safetensors",
|
| 926 |
+
"model.layers.41.mlp.up_proj.scales": "model.safetensors",
|
| 927 |
+
"model.layers.41.mlp.up_proj.weight": "model.safetensors",
|
| 928 |
+
"model.layers.41.post_attention_layernorm.weight": "model.safetensors",
|
| 929 |
+
"model.layers.41.post_attention_layernorm_2.weight": "model.safetensors",
|
| 930 |
+
"model.layers.41.self_attn.k_proj.biases": "model.safetensors",
|
| 931 |
+
"model.layers.41.self_attn.k_proj.scales": "model.safetensors",
|
| 932 |
+
"model.layers.41.self_attn.k_proj.weight": "model.safetensors",
|
| 933 |
+
"model.layers.41.self_attn.o_proj.biases": "model.safetensors",
|
| 934 |
+
"model.layers.41.self_attn.o_proj.scales": "model.safetensors",
|
| 935 |
+
"model.layers.41.self_attn.o_proj.weight": "model.safetensors",
|
| 936 |
+
"model.layers.41.self_attn.q_proj.biases": "model.safetensors",
|
| 937 |
+
"model.layers.41.self_attn.q_proj.scales": "model.safetensors",
|
| 938 |
+
"model.layers.41.self_attn.q_proj.weight": "model.safetensors",
|
| 939 |
+
"model.layers.41.self_attn.v_proj.biases": "model.safetensors",
|
| 940 |
+
"model.layers.41.self_attn.v_proj.scales": "model.safetensors",
|
| 941 |
+
"model.layers.41.self_attn.v_proj.weight": "model.safetensors",
|
| 942 |
+
"model.layers.42.input_layernorm.weight": "model.safetensors",
|
| 943 |
+
"model.layers.42.input_layernorm_2.weight": "model.safetensors",
|
| 944 |
+
"model.layers.42.mlp.down_proj.biases": "model.safetensors",
|
| 945 |
+
"model.layers.42.mlp.down_proj.scales": "model.safetensors",
|
| 946 |
+
"model.layers.42.mlp.down_proj.weight": "model.safetensors",
|
| 947 |
+
"model.layers.42.mlp.gate_proj.biases": "model.safetensors",
|
| 948 |
+
"model.layers.42.mlp.gate_proj.scales": "model.safetensors",
|
| 949 |
+
"model.layers.42.mlp.gate_proj.weight": "model.safetensors",
|
| 950 |
+
"model.layers.42.mlp.up_proj.biases": "model.safetensors",
|
| 951 |
+
"model.layers.42.mlp.up_proj.scales": "model.safetensors",
|
| 952 |
+
"model.layers.42.mlp.up_proj.weight": "model.safetensors",
|
| 953 |
+
"model.layers.42.post_attention_layernorm.weight": "model.safetensors",
|
| 954 |
+
"model.layers.42.post_attention_layernorm_2.weight": "model.safetensors",
|
| 955 |
+
"model.layers.42.self_attn.k_proj.biases": "model.safetensors",
|
| 956 |
+
"model.layers.42.self_attn.k_proj.scales": "model.safetensors",
|
| 957 |
+
"model.layers.42.self_attn.k_proj.weight": "model.safetensors",
|
| 958 |
+
"model.layers.42.self_attn.o_proj.biases": "model.safetensors",
|
| 959 |
+
"model.layers.42.self_attn.o_proj.scales": "model.safetensors",
|
| 960 |
+
"model.layers.42.self_attn.o_proj.weight": "model.safetensors",
|
| 961 |
+
"model.layers.42.self_attn.q_proj.biases": "model.safetensors",
|
| 962 |
+
"model.layers.42.self_attn.q_proj.scales": "model.safetensors",
|
| 963 |
+
"model.layers.42.self_attn.q_proj.weight": "model.safetensors",
|
| 964 |
+
"model.layers.42.self_attn.v_proj.biases": "model.safetensors",
|
| 965 |
+
"model.layers.42.self_attn.v_proj.scales": "model.safetensors",
|
| 966 |
+
"model.layers.42.self_attn.v_proj.weight": "model.safetensors",
|
| 967 |
+
"model.layers.43.input_layernorm.weight": "model.safetensors",
|
| 968 |
+
"model.layers.43.input_layernorm_2.weight": "model.safetensors",
|
| 969 |
+
"model.layers.43.mlp.down_proj.biases": "model.safetensors",
|
| 970 |
+
"model.layers.43.mlp.down_proj.scales": "model.safetensors",
|
| 971 |
+
"model.layers.43.mlp.down_proj.weight": "model.safetensors",
|
| 972 |
+
"model.layers.43.mlp.gate_proj.biases": "model.safetensors",
|
| 973 |
+
"model.layers.43.mlp.gate_proj.scales": "model.safetensors",
|
| 974 |
+
"model.layers.43.mlp.gate_proj.weight": "model.safetensors",
|
| 975 |
+
"model.layers.43.mlp.up_proj.biases": "model.safetensors",
|
| 976 |
+
"model.layers.43.mlp.up_proj.scales": "model.safetensors",
|
| 977 |
+
"model.layers.43.mlp.up_proj.weight": "model.safetensors",
|
| 978 |
+
"model.layers.43.post_attention_layernorm.weight": "model.safetensors",
|
| 979 |
+
"model.layers.43.post_attention_layernorm_2.weight": "model.safetensors",
|
| 980 |
+
"model.layers.43.self_attn.k_proj.biases": "model.safetensors",
|
| 981 |
+
"model.layers.43.self_attn.k_proj.scales": "model.safetensors",
|
| 982 |
+
"model.layers.43.self_attn.k_proj.weight": "model.safetensors",
|
| 983 |
+
"model.layers.43.self_attn.o_proj.biases": "model.safetensors",
|
| 984 |
+
"model.layers.43.self_attn.o_proj.scales": "model.safetensors",
|
| 985 |
+
"model.layers.43.self_attn.o_proj.weight": "model.safetensors",
|
| 986 |
+
"model.layers.43.self_attn.q_proj.biases": "model.safetensors",
|
| 987 |
+
"model.layers.43.self_attn.q_proj.scales": "model.safetensors",
|
| 988 |
+
"model.layers.43.self_attn.q_proj.weight": "model.safetensors",
|
| 989 |
+
"model.layers.43.self_attn.v_proj.biases": "model.safetensors",
|
| 990 |
+
"model.layers.43.self_attn.v_proj.scales": "model.safetensors",
|
| 991 |
+
"model.layers.43.self_attn.v_proj.weight": "model.safetensors",
|
| 992 |
+
"model.layers.44.input_layernorm.weight": "model.safetensors",
|
| 993 |
+
"model.layers.44.input_layernorm_2.weight": "model.safetensors",
|
| 994 |
+
"model.layers.44.mlp.down_proj.biases": "model.safetensors",
|
| 995 |
+
"model.layers.44.mlp.down_proj.scales": "model.safetensors",
|
| 996 |
+
"model.layers.44.mlp.down_proj.weight": "model.safetensors",
|
| 997 |
+
"model.layers.44.mlp.gate_proj.biases": "model.safetensors",
|
| 998 |
+
"model.layers.44.mlp.gate_proj.scales": "model.safetensors",
|
| 999 |
+
"model.layers.44.mlp.gate_proj.weight": "model.safetensors",
|
| 1000 |
+
"model.layers.44.mlp.up_proj.biases": "model.safetensors",
|
| 1001 |
+
"model.layers.44.mlp.up_proj.scales": "model.safetensors",
|
| 1002 |
+
"model.layers.44.mlp.up_proj.weight": "model.safetensors",
|
| 1003 |
+
"model.layers.44.post_attention_layernorm.weight": "model.safetensors",
|
| 1004 |
+
"model.layers.44.post_attention_layernorm_2.weight": "model.safetensors",
|
| 1005 |
+
"model.layers.44.self_attn.k_proj.biases": "model.safetensors",
|
| 1006 |
+
"model.layers.44.self_attn.k_proj.scales": "model.safetensors",
|
| 1007 |
+
"model.layers.44.self_attn.k_proj.weight": "model.safetensors",
|
| 1008 |
+
"model.layers.44.self_attn.o_proj.biases": "model.safetensors",
|
| 1009 |
+
"model.layers.44.self_attn.o_proj.scales": "model.safetensors",
|
| 1010 |
+
"model.layers.44.self_attn.o_proj.weight": "model.safetensors",
|
| 1011 |
+
"model.layers.44.self_attn.q_proj.biases": "model.safetensors",
|
| 1012 |
+
"model.layers.44.self_attn.q_proj.scales": "model.safetensors",
|
| 1013 |
+
"model.layers.44.self_attn.q_proj.weight": "model.safetensors",
|
| 1014 |
+
"model.layers.44.self_attn.v_proj.biases": "model.safetensors",
|
| 1015 |
+
"model.layers.44.self_attn.v_proj.scales": "model.safetensors",
|
| 1016 |
+
"model.layers.44.self_attn.v_proj.weight": "model.safetensors",
|
| 1017 |
+
"model.layers.45.input_layernorm.weight": "model.safetensors",
|
| 1018 |
+
"model.layers.45.input_layernorm_2.weight": "model.safetensors",
|
| 1019 |
+
"model.layers.45.mlp.down_proj.biases": "model.safetensors",
|
| 1020 |
+
"model.layers.45.mlp.down_proj.scales": "model.safetensors",
|
| 1021 |
+
"model.layers.45.mlp.down_proj.weight": "model.safetensors",
|
| 1022 |
+
"model.layers.45.mlp.gate_proj.biases": "model.safetensors",
|
| 1023 |
+
"model.layers.45.mlp.gate_proj.scales": "model.safetensors",
|
| 1024 |
+
"model.layers.45.mlp.gate_proj.weight": "model.safetensors",
|
| 1025 |
+
"model.layers.45.mlp.up_proj.biases": "model.safetensors",
|
| 1026 |
+
"model.layers.45.mlp.up_proj.scales": "model.safetensors",
|
| 1027 |
+
"model.layers.45.mlp.up_proj.weight": "model.safetensors",
|
| 1028 |
+
"model.layers.45.post_attention_layernorm.weight": "model.safetensors",
|
| 1029 |
+
"model.layers.45.post_attention_layernorm_2.weight": "model.safetensors",
|
| 1030 |
+
"model.layers.45.self_attn.k_proj.biases": "model.safetensors",
|
| 1031 |
+
"model.layers.45.self_attn.k_proj.scales": "model.safetensors",
|
| 1032 |
+
"model.layers.45.self_attn.k_proj.weight": "model.safetensors",
|
| 1033 |
+
"model.layers.45.self_attn.o_proj.biases": "model.safetensors",
|
| 1034 |
+
"model.layers.45.self_attn.o_proj.scales": "model.safetensors",
|
| 1035 |
+
"model.layers.45.self_attn.o_proj.weight": "model.safetensors",
|
| 1036 |
+
"model.layers.45.self_attn.q_proj.biases": "model.safetensors",
|
| 1037 |
+
"model.layers.45.self_attn.q_proj.scales": "model.safetensors",
|
| 1038 |
+
"model.layers.45.self_attn.q_proj.weight": "model.safetensors",
|
| 1039 |
+
"model.layers.45.self_attn.v_proj.biases": "model.safetensors",
|
| 1040 |
+
"model.layers.45.self_attn.v_proj.scales": "model.safetensors",
|
| 1041 |
+
"model.layers.45.self_attn.v_proj.weight": "model.safetensors",
|
| 1042 |
+
"model.layers.46.input_layernorm.weight": "model.safetensors",
|
| 1043 |
+
"model.layers.46.input_layernorm_2.weight": "model.safetensors",
|
| 1044 |
+
"model.layers.46.mlp.down_proj.biases": "model.safetensors",
|
| 1045 |
+
"model.layers.46.mlp.down_proj.scales": "model.safetensors",
|
| 1046 |
+
"model.layers.46.mlp.down_proj.weight": "model.safetensors",
|
| 1047 |
+
"model.layers.46.mlp.gate_proj.biases": "model.safetensors",
|
| 1048 |
+
"model.layers.46.mlp.gate_proj.scales": "model.safetensors",
|
| 1049 |
+
"model.layers.46.mlp.gate_proj.weight": "model.safetensors",
|
| 1050 |
+
"model.layers.46.mlp.up_proj.biases": "model.safetensors",
|
| 1051 |
+
"model.layers.46.mlp.up_proj.scales": "model.safetensors",
|
| 1052 |
+
"model.layers.46.mlp.up_proj.weight": "model.safetensors",
|
| 1053 |
+
"model.layers.46.post_attention_layernorm.weight": "model.safetensors",
|
| 1054 |
+
"model.layers.46.post_attention_layernorm_2.weight": "model.safetensors",
|
| 1055 |
+
"model.layers.46.self_attn.k_proj.biases": "model.safetensors",
|
| 1056 |
+
"model.layers.46.self_attn.k_proj.scales": "model.safetensors",
|
| 1057 |
+
"model.layers.46.self_attn.k_proj.weight": "model.safetensors",
|
| 1058 |
+
"model.layers.46.self_attn.o_proj.biases": "model.safetensors",
|
| 1059 |
+
"model.layers.46.self_attn.o_proj.scales": "model.safetensors",
|
| 1060 |
+
"model.layers.46.self_attn.o_proj.weight": "model.safetensors",
|
| 1061 |
+
"model.layers.46.self_attn.q_proj.biases": "model.safetensors",
|
| 1062 |
+
"model.layers.46.self_attn.q_proj.scales": "model.safetensors",
|
| 1063 |
+
"model.layers.46.self_attn.q_proj.weight": "model.safetensors",
|
| 1064 |
+
"model.layers.46.self_attn.v_proj.biases": "model.safetensors",
|
| 1065 |
+
"model.layers.46.self_attn.v_proj.scales": "model.safetensors",
|
| 1066 |
+
"model.layers.46.self_attn.v_proj.weight": "model.safetensors",
|
| 1067 |
+
"model.layers.47.input_layernorm.weight": "model.safetensors",
|
| 1068 |
+
"model.layers.47.input_layernorm_2.weight": "model.safetensors",
|
| 1069 |
+
"model.layers.47.mlp.down_proj.biases": "model.safetensors",
|
| 1070 |
+
"model.layers.47.mlp.down_proj.scales": "model.safetensors",
|
| 1071 |
+
"model.layers.47.mlp.down_proj.weight": "model.safetensors",
|
| 1072 |
+
"model.layers.47.mlp.gate_proj.biases": "model.safetensors",
|
| 1073 |
+
"model.layers.47.mlp.gate_proj.scales": "model.safetensors",
|
| 1074 |
+
"model.layers.47.mlp.gate_proj.weight": "model.safetensors",
|
| 1075 |
+
"model.layers.47.mlp.up_proj.biases": "model.safetensors",
|
| 1076 |
+
"model.layers.47.mlp.up_proj.scales": "model.safetensors",
|
| 1077 |
+
"model.layers.47.mlp.up_proj.weight": "model.safetensors",
|
| 1078 |
+
"model.layers.47.post_attention_layernorm.weight": "model.safetensors",
|
| 1079 |
+
"model.layers.47.post_attention_layernorm_2.weight": "model.safetensors",
|
| 1080 |
+
"model.layers.47.self_attn.k_proj.biases": "model.safetensors",
|
| 1081 |
+
"model.layers.47.self_attn.k_proj.scales": "model.safetensors",
|
| 1082 |
+
"model.layers.47.self_attn.k_proj.weight": "model.safetensors",
|
| 1083 |
+
"model.layers.47.self_attn.o_proj.biases": "model.safetensors",
|
| 1084 |
+
"model.layers.47.self_attn.o_proj.scales": "model.safetensors",
|
| 1085 |
+
"model.layers.47.self_attn.o_proj.weight": "model.safetensors",
|
| 1086 |
+
"model.layers.47.self_attn.q_proj.biases": "model.safetensors",
|
| 1087 |
+
"model.layers.47.self_attn.q_proj.scales": "model.safetensors",
|
| 1088 |
+
"model.layers.47.self_attn.q_proj.weight": "model.safetensors",
|
| 1089 |
+
"model.layers.47.self_attn.v_proj.biases": "model.safetensors",
|
| 1090 |
+
"model.layers.47.self_attn.v_proj.scales": "model.safetensors",
|
| 1091 |
+
"model.layers.47.self_attn.v_proj.weight": "model.safetensors",
|
| 1092 |
+
"model.layers.5.input_layernorm.weight": "model.safetensors",
|
| 1093 |
+
"model.layers.5.input_layernorm_2.weight": "model.safetensors",
|
| 1094 |
+
"model.layers.5.mlp.down_proj.biases": "model.safetensors",
|
| 1095 |
+
"model.layers.5.mlp.down_proj.scales": "model.safetensors",
|
| 1096 |
+
"model.layers.5.mlp.down_proj.weight": "model.safetensors",
|
| 1097 |
+
"model.layers.5.mlp.gate_proj.biases": "model.safetensors",
|
| 1098 |
+
"model.layers.5.mlp.gate_proj.scales": "model.safetensors",
|
| 1099 |
+
"model.layers.5.mlp.gate_proj.weight": "model.safetensors",
|
| 1100 |
+
"model.layers.5.mlp.up_proj.biases": "model.safetensors",
|
| 1101 |
+
"model.layers.5.mlp.up_proj.scales": "model.safetensors",
|
| 1102 |
+
"model.layers.5.mlp.up_proj.weight": "model.safetensors",
|
| 1103 |
+
"model.layers.5.post_attention_layernorm.weight": "model.safetensors",
|
| 1104 |
+
"model.layers.5.post_attention_layernorm_2.weight": "model.safetensors",
|
| 1105 |
+
"model.layers.5.self_attn.k_proj.biases": "model.safetensors",
|
| 1106 |
+
"model.layers.5.self_attn.k_proj.scales": "model.safetensors",
|
| 1107 |
+
"model.layers.5.self_attn.k_proj.weight": "model.safetensors",
|
| 1108 |
+
"model.layers.5.self_attn.o_proj.biases": "model.safetensors",
|
| 1109 |
+
"model.layers.5.self_attn.o_proj.scales": "model.safetensors",
|
| 1110 |
+
"model.layers.5.self_attn.o_proj.weight": "model.safetensors",
|
| 1111 |
+
"model.layers.5.self_attn.q_proj.biases": "model.safetensors",
|
| 1112 |
+
"model.layers.5.self_attn.q_proj.scales": "model.safetensors",
|
| 1113 |
+
"model.layers.5.self_attn.q_proj.weight": "model.safetensors",
|
| 1114 |
+
"model.layers.5.self_attn.v_proj.biases": "model.safetensors",
|
| 1115 |
+
"model.layers.5.self_attn.v_proj.scales": "model.safetensors",
|
| 1116 |
+
"model.layers.5.self_attn.v_proj.weight": "model.safetensors",
|
| 1117 |
+
"model.layers.6.input_layernorm.weight": "model.safetensors",
|
| 1118 |
+
"model.layers.6.input_layernorm_2.weight": "model.safetensors",
|
| 1119 |
+
"model.layers.6.mlp.down_proj.biases": "model.safetensors",
|
| 1120 |
+
"model.layers.6.mlp.down_proj.scales": "model.safetensors",
|
| 1121 |
+
"model.layers.6.mlp.down_proj.weight": "model.safetensors",
|
| 1122 |
+
"model.layers.6.mlp.gate_proj.biases": "model.safetensors",
|
| 1123 |
+
"model.layers.6.mlp.gate_proj.scales": "model.safetensors",
|
| 1124 |
+
"model.layers.6.mlp.gate_proj.weight": "model.safetensors",
|
| 1125 |
+
"model.layers.6.mlp.up_proj.biases": "model.safetensors",
|
| 1126 |
+
"model.layers.6.mlp.up_proj.scales": "model.safetensors",
|
| 1127 |
+
"model.layers.6.mlp.up_proj.weight": "model.safetensors",
|
| 1128 |
+
"model.layers.6.post_attention_layernorm.weight": "model.safetensors",
|
| 1129 |
+
"model.layers.6.post_attention_layernorm_2.weight": "model.safetensors",
|
| 1130 |
+
"model.layers.6.self_attn.k_proj.biases": "model.safetensors",
|
| 1131 |
+
"model.layers.6.self_attn.k_proj.scales": "model.safetensors",
|
| 1132 |
+
"model.layers.6.self_attn.k_proj.weight": "model.safetensors",
|
| 1133 |
+
"model.layers.6.self_attn.o_proj.biases": "model.safetensors",
|
| 1134 |
+
"model.layers.6.self_attn.o_proj.scales": "model.safetensors",
|
| 1135 |
+
"model.layers.6.self_attn.o_proj.weight": "model.safetensors",
|
| 1136 |
+
"model.layers.6.self_attn.q_proj.biases": "model.safetensors",
|
| 1137 |
+
"model.layers.6.self_attn.q_proj.scales": "model.safetensors",
|
| 1138 |
+
"model.layers.6.self_attn.q_proj.weight": "model.safetensors",
|
| 1139 |
+
"model.layers.6.self_attn.v_proj.biases": "model.safetensors",
|
| 1140 |
+
"model.layers.6.self_attn.v_proj.scales": "model.safetensors",
|
| 1141 |
+
"model.layers.6.self_attn.v_proj.weight": "model.safetensors",
|
| 1142 |
+
"model.layers.7.input_layernorm.weight": "model.safetensors",
|
| 1143 |
+
"model.layers.7.input_layernorm_2.weight": "model.safetensors",
|
| 1144 |
+
"model.layers.7.mlp.down_proj.biases": "model.safetensors",
|
| 1145 |
+
"model.layers.7.mlp.down_proj.scales": "model.safetensors",
|
| 1146 |
+
"model.layers.7.mlp.down_proj.weight": "model.safetensors",
|
| 1147 |
+
"model.layers.7.mlp.gate_proj.biases": "model.safetensors",
|
| 1148 |
+
"model.layers.7.mlp.gate_proj.scales": "model.safetensors",
|
| 1149 |
+
"model.layers.7.mlp.gate_proj.weight": "model.safetensors",
|
| 1150 |
+
"model.layers.7.mlp.up_proj.biases": "model.safetensors",
|
| 1151 |
+
"model.layers.7.mlp.up_proj.scales": "model.safetensors",
|
| 1152 |
+
"model.layers.7.mlp.up_proj.weight": "model.safetensors",
|
| 1153 |
+
"model.layers.7.post_attention_layernorm.weight": "model.safetensors",
|
| 1154 |
+
"model.layers.7.post_attention_layernorm_2.weight": "model.safetensors",
|
| 1155 |
+
"model.layers.7.self_attn.k_proj.biases": "model.safetensors",
|
| 1156 |
+
"model.layers.7.self_attn.k_proj.scales": "model.safetensors",
|
| 1157 |
+
"model.layers.7.self_attn.k_proj.weight": "model.safetensors",
|
| 1158 |
+
"model.layers.7.self_attn.o_proj.biases": "model.safetensors",
|
| 1159 |
+
"model.layers.7.self_attn.o_proj.scales": "model.safetensors",
|
| 1160 |
+
"model.layers.7.self_attn.o_proj.weight": "model.safetensors",
|
| 1161 |
+
"model.layers.7.self_attn.q_proj.biases": "model.safetensors",
|
| 1162 |
+
"model.layers.7.self_attn.q_proj.scales": "model.safetensors",
|
| 1163 |
+
"model.layers.7.self_attn.q_proj.weight": "model.safetensors",
|
| 1164 |
+
"model.layers.7.self_attn.v_proj.biases": "model.safetensors",
|
| 1165 |
+
"model.layers.7.self_attn.v_proj.scales": "model.safetensors",
|
| 1166 |
+
"model.layers.7.self_attn.v_proj.weight": "model.safetensors",
|
| 1167 |
+
"model.layers.8.input_layernorm.weight": "model.safetensors",
|
| 1168 |
+
"model.layers.8.input_layernorm_2.weight": "model.safetensors",
|
| 1169 |
+
"model.layers.8.mlp.down_proj.biases": "model.safetensors",
|
| 1170 |
+
"model.layers.8.mlp.down_proj.scales": "model.safetensors",
|
| 1171 |
+
"model.layers.8.mlp.down_proj.weight": "model.safetensors",
|
| 1172 |
+
"model.layers.8.mlp.gate_proj.biases": "model.safetensors",
|
| 1173 |
+
"model.layers.8.mlp.gate_proj.scales": "model.safetensors",
|
| 1174 |
+
"model.layers.8.mlp.gate_proj.weight": "model.safetensors",
|
| 1175 |
+
"model.layers.8.mlp.up_proj.biases": "model.safetensors",
|
| 1176 |
+
"model.layers.8.mlp.up_proj.scales": "model.safetensors",
|
| 1177 |
+
"model.layers.8.mlp.up_proj.weight": "model.safetensors",
|
| 1178 |
+
"model.layers.8.post_attention_layernorm.weight": "model.safetensors",
|
| 1179 |
+
"model.layers.8.post_attention_layernorm_2.weight": "model.safetensors",
|
| 1180 |
+
"model.layers.8.self_attn.k_proj.biases": "model.safetensors",
|
| 1181 |
+
"model.layers.8.self_attn.k_proj.scales": "model.safetensors",
|
| 1182 |
+
"model.layers.8.self_attn.k_proj.weight": "model.safetensors",
|
| 1183 |
+
"model.layers.8.self_attn.o_proj.biases": "model.safetensors",
|
| 1184 |
+
"model.layers.8.self_attn.o_proj.scales": "model.safetensors",
|
| 1185 |
+
"model.layers.8.self_attn.o_proj.weight": "model.safetensors",
|
| 1186 |
+
"model.layers.8.self_attn.q_proj.biases": "model.safetensors",
|
| 1187 |
+
"model.layers.8.self_attn.q_proj.scales": "model.safetensors",
|
| 1188 |
+
"model.layers.8.self_attn.q_proj.weight": "model.safetensors",
|
| 1189 |
+
"model.layers.8.self_attn.v_proj.biases": "model.safetensors",
|
| 1190 |
+
"model.layers.8.self_attn.v_proj.scales": "model.safetensors",
|
| 1191 |
+
"model.layers.8.self_attn.v_proj.weight": "model.safetensors",
|
| 1192 |
+
"model.layers.9.input_layernorm.weight": "model.safetensors",
|
| 1193 |
+
"model.layers.9.input_layernorm_2.weight": "model.safetensors",
|
| 1194 |
+
"model.layers.9.mlp.down_proj.biases": "model.safetensors",
|
| 1195 |
+
"model.layers.9.mlp.down_proj.scales": "model.safetensors",
|
| 1196 |
+
"model.layers.9.mlp.down_proj.weight": "model.safetensors",
|
| 1197 |
+
"model.layers.9.mlp.gate_proj.biases": "model.safetensors",
|
| 1198 |
+
"model.layers.9.mlp.gate_proj.scales": "model.safetensors",
|
| 1199 |
+
"model.layers.9.mlp.gate_proj.weight": "model.safetensors",
|
| 1200 |
+
"model.layers.9.mlp.up_proj.biases": "model.safetensors",
|
| 1201 |
+
"model.layers.9.mlp.up_proj.scales": "model.safetensors",
|
| 1202 |
+
"model.layers.9.mlp.up_proj.weight": "model.safetensors",
|
| 1203 |
+
"model.layers.9.post_attention_layernorm.weight": "model.safetensors",
|
| 1204 |
+
"model.layers.9.post_attention_layernorm_2.weight": "model.safetensors",
|
| 1205 |
+
"model.layers.9.self_attn.k_proj.biases": "model.safetensors",
|
| 1206 |
+
"model.layers.9.self_attn.k_proj.scales": "model.safetensors",
|
| 1207 |
+
"model.layers.9.self_attn.k_proj.weight": "model.safetensors",
|
| 1208 |
+
"model.layers.9.self_attn.o_proj.biases": "model.safetensors",
|
| 1209 |
+
"model.layers.9.self_attn.o_proj.scales": "model.safetensors",
|
| 1210 |
+
"model.layers.9.self_attn.o_proj.weight": "model.safetensors",
|
| 1211 |
+
"model.layers.9.self_attn.q_proj.biases": "model.safetensors",
|
| 1212 |
+
"model.layers.9.self_attn.q_proj.scales": "model.safetensors",
|
| 1213 |
+
"model.layers.9.self_attn.q_proj.weight": "model.safetensors",
|
| 1214 |
+
"model.layers.9.self_attn.v_proj.biases": "model.safetensors",
|
| 1215 |
+
"model.layers.9.self_attn.v_proj.scales": "model.safetensors",
|
| 1216 |
+
"model.layers.9.self_attn.v_proj.weight": "model.safetensors",
|
| 1217 |
+
"model.norm.weight": "model.safetensors"
|
| 1218 |
+
}
|
| 1219 |
+
}
|
modeling_ouro.py
ADDED
|
@@ -0,0 +1,594 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Callable, Optional, Union
|
| 2 |
+
|
| 3 |
+
import torch
|
| 4 |
+
from torch import nn
|
| 5 |
+
|
| 6 |
+
from transformers.activations import ACT2FN
|
| 7 |
+
from transformers.cache_utils import Cache, DynamicCache
|
| 8 |
+
from transformers.generation import GenerationMixin
|
| 9 |
+
from transformers.integrations import use_kernel_forward_from_hub
|
| 10 |
+
from transformers.masking_utils import create_causal_mask, create_sliding_window_causal_mask
|
| 11 |
+
from transformers.modeling_flash_attention_utils import FlashAttentionKwargs
|
| 12 |
+
from transformers.modeling_layers import (
|
| 13 |
+
GenericForQuestionAnswering,
|
| 14 |
+
GenericForSequenceClassification,
|
| 15 |
+
GenericForTokenClassification,
|
| 16 |
+
GradientCheckpointingLayer,
|
| 17 |
+
)
|
| 18 |
+
from transformers.modeling_outputs import BaseModelOutputWithPast, CausalLMOutputWithPast
|
| 19 |
+
from transformers.modeling_rope_utils import ROPE_INIT_FUNCTIONS, dynamic_rope_update
|
| 20 |
+
from transformers.modeling_utils import ALL_ATTENTION_FUNCTIONS, PreTrainedModel
|
| 21 |
+
from transformers.processing_utils import Unpack
|
| 22 |
+
from transformers.utils import TransformersKwargs, auto_docstring, can_return_tuple
|
| 23 |
+
from transformers.utils.generic import check_model_inputs
|
| 24 |
+
from .configuration_ouro import OuroConfig
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
class OuroMLP(nn.Module):
|
| 28 |
+
def __init__(self, config):
|
| 29 |
+
super().__init__()
|
| 30 |
+
self.config = config
|
| 31 |
+
self.hidden_size = config.hidden_size
|
| 32 |
+
self.intermediate_size = config.intermediate_size
|
| 33 |
+
self.gate_proj = nn.Linear(self.hidden_size, self.intermediate_size, bias=False)
|
| 34 |
+
self.up_proj = nn.Linear(self.hidden_size, self.intermediate_size, bias=False)
|
| 35 |
+
self.down_proj = nn.Linear(self.intermediate_size, self.hidden_size, bias=False)
|
| 36 |
+
self.act_fn = ACT2FN[config.hidden_act]
|
| 37 |
+
|
| 38 |
+
def forward(self, x):
|
| 39 |
+
down_proj = self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))
|
| 40 |
+
return down_proj
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def rotate_half(x):
|
| 44 |
+
"""Rotates half the hidden dims of the input."""
|
| 45 |
+
x1 = x[..., : x.shape[-1] // 2]
|
| 46 |
+
x2 = x[..., x.shape[-1] // 2 :]
|
| 47 |
+
return torch.cat((-x2, x1), dim=-1)
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def apply_rotary_pos_emb(q, k, cos, sin, position_ids=None, unsqueeze_dim=1):
|
| 51 |
+
"""Applies Rotary Position Embedding to the query and key tensors.
|
| 52 |
+
|
| 53 |
+
Args:
|
| 54 |
+
q (`torch.Tensor`): The query tensor.
|
| 55 |
+
k (`torch.Tensor`): The key tensor.
|
| 56 |
+
cos (`torch.Tensor`): The cosine part of the rotary embedding.
|
| 57 |
+
sin (`torch.Tensor`): The sine part of the rotary embedding.
|
| 58 |
+
position_ids (`torch.Tensor`, *optional*):
|
| 59 |
+
Deprecated and unused.
|
| 60 |
+
unsqueeze_dim (`int`, *optional*, defaults to 1):
|
| 61 |
+
The 'unsqueeze_dim' argument specifies the dimension along which to unsqueeze cos[position_ids] and
|
| 62 |
+
sin[position_ids] so that they can be properly broadcasted to the dimensions of q and k. For example, note
|
| 63 |
+
that cos[position_ids] and sin[position_ids] have the shape [batch_size, seq_len, head_dim]. Then, if q and
|
| 64 |
+
k have the shape [batch_size, heads, seq_len, head_dim], then setting unsqueeze_dim=1 makes
|
| 65 |
+
cos[position_ids] and sin[position_ids] broadcastable to the shapes of q and k. Similarly, if q and k have
|
| 66 |
+
the shape [batch_size, seq_len, heads, head_dim], then set unsqueeze_dim=2.
|
| 67 |
+
Returns:
|
| 68 |
+
`tuple(torch.Tensor)` comprising of the query and key tensors rotated using the Rotary Position Embedding.
|
| 69 |
+
"""
|
| 70 |
+
cos = cos.unsqueeze(unsqueeze_dim)
|
| 71 |
+
sin = sin.unsqueeze(unsqueeze_dim)
|
| 72 |
+
q_embed = (q * cos) + (rotate_half(q) * sin)
|
| 73 |
+
k_embed = (k * cos) + (rotate_half(k) * sin)
|
| 74 |
+
return q_embed, k_embed
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def repeat_kv(hidden_states: torch.Tensor, n_rep: int) -> torch.Tensor:
|
| 78 |
+
"""
|
| 79 |
+
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch,
|
| 80 |
+
num_key_value_heads, seqlen, head_dim) to (batch, num_attention_heads, seqlen, head_dim)
|
| 81 |
+
"""
|
| 82 |
+
batch, num_key_value_heads, slen, head_dim = hidden_states.shape
|
| 83 |
+
if n_rep == 1:
|
| 84 |
+
return hidden_states
|
| 85 |
+
hidden_states = hidden_states[:, :, None, :, :].expand(batch, num_key_value_heads, n_rep, slen, head_dim)
|
| 86 |
+
return hidden_states.reshape(batch, num_key_value_heads * n_rep, slen, head_dim)
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def eager_attention_forward(
|
| 90 |
+
module: nn.Module,
|
| 91 |
+
query: torch.Tensor,
|
| 92 |
+
key: torch.Tensor,
|
| 93 |
+
value: torch.Tensor,
|
| 94 |
+
attention_mask: Optional[torch.Tensor],
|
| 95 |
+
scaling: float,
|
| 96 |
+
dropout: float = 0.0,
|
| 97 |
+
**kwargs: Unpack[TransformersKwargs],
|
| 98 |
+
):
|
| 99 |
+
key_states = repeat_kv(key, module.num_key_value_groups)
|
| 100 |
+
value_states = repeat_kv(value, module.num_key_value_groups)
|
| 101 |
+
|
| 102 |
+
attn_weights = torch.matmul(query, key_states.transpose(2, 3)) * scaling
|
| 103 |
+
if attention_mask is not None:
|
| 104 |
+
causal_mask = attention_mask[:, :, :, : key_states.shape[-2]]
|
| 105 |
+
attn_weights = attn_weights + causal_mask
|
| 106 |
+
|
| 107 |
+
attn_weights = nn.functional.softmax(attn_weights, dim=-1, dtype=torch.float32).to(query.dtype)
|
| 108 |
+
attn_weights = nn.functional.dropout(attn_weights, p=dropout, training=module.training)
|
| 109 |
+
attn_output = torch.matmul(attn_weights, value_states)
|
| 110 |
+
attn_output = attn_output.transpose(1, 2).contiguous()
|
| 111 |
+
|
| 112 |
+
return attn_output, attn_weights
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
class OuroAttention(nn.Module):
|
| 116 |
+
"""Multi-headed attention from 'Attention Is All You Need' paper"""
|
| 117 |
+
|
| 118 |
+
def __init__(self, config: OuroConfig, layer_idx: int):
|
| 119 |
+
super().__init__()
|
| 120 |
+
self.config = config
|
| 121 |
+
self.layer_idx = layer_idx
|
| 122 |
+
self.head_dim = getattr(config, "head_dim", config.hidden_size // config.num_attention_heads)
|
| 123 |
+
self.num_key_value_groups = config.num_attention_heads // config.num_key_value_heads
|
| 124 |
+
self.scaling = self.head_dim**-0.5
|
| 125 |
+
self.attention_dropout = config.attention_dropout
|
| 126 |
+
self.is_causal = True
|
| 127 |
+
self.q_proj = nn.Linear(config.hidden_size, config.num_attention_heads * self.head_dim, bias=False)
|
| 128 |
+
self.k_proj = nn.Linear(config.hidden_size, config.num_key_value_heads * self.head_dim, bias=False)
|
| 129 |
+
self.v_proj = nn.Linear(config.hidden_size, config.num_key_value_heads * self.head_dim, bias=False)
|
| 130 |
+
self.o_proj = nn.Linear(config.num_attention_heads * self.head_dim, config.hidden_size, bias=False)
|
| 131 |
+
self.sliding_window = config.sliding_window if config.layer_types[layer_idx] == "sliding_attention" else None
|
| 132 |
+
|
| 133 |
+
def forward(
|
| 134 |
+
self,
|
| 135 |
+
hidden_states: torch.Tensor,
|
| 136 |
+
position_embeddings: tuple[torch.Tensor, torch.Tensor],
|
| 137 |
+
attention_mask: Optional[torch.Tensor],
|
| 138 |
+
past_key_value: Optional[Cache] = None,
|
| 139 |
+
cache_position: Optional[torch.LongTensor] = None,
|
| 140 |
+
current_ut: int = 0,
|
| 141 |
+
**kwargs: Unpack[FlashAttentionKwargs],
|
| 142 |
+
) -> tuple[torch.Tensor, Optional[torch.Tensor], Optional[tuple[torch.Tensor]]]:
|
| 143 |
+
input_shape = hidden_states.shape[:-1]
|
| 144 |
+
hidden_shape = (*input_shape, -1, self.head_dim)
|
| 145 |
+
|
| 146 |
+
query_states = self.q_proj(hidden_states).view(hidden_shape).transpose(1, 2)
|
| 147 |
+
key_states = self.k_proj(hidden_states).view(hidden_shape).transpose(1, 2)
|
| 148 |
+
value_states = self.v_proj(hidden_states).view(hidden_shape).transpose(1, 2)
|
| 149 |
+
|
| 150 |
+
cos, sin = position_embeddings
|
| 151 |
+
query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin)
|
| 152 |
+
|
| 153 |
+
if past_key_value is not None:
|
| 154 |
+
# sin and cos are specific to RoPE models; cache_position needed for the static cache
|
| 155 |
+
cache_kwargs = {"sin": sin, "cos": cos, "cache_position": cache_position}
|
| 156 |
+
key_states, value_states = past_key_value.update(key_states, value_states, current_ut * self.config.num_hidden_layers + self.layer_idx, cache_kwargs)
|
| 157 |
+
|
| 158 |
+
attention_interface: Callable = eager_attention_forward
|
| 159 |
+
if self.config._attn_implementation != "eager":
|
| 160 |
+
attention_interface = ALL_ATTENTION_FUNCTIONS[self.config._attn_implementation]
|
| 161 |
+
|
| 162 |
+
attn_output, attn_weights = attention_interface(
|
| 163 |
+
self,
|
| 164 |
+
query_states,
|
| 165 |
+
key_states,
|
| 166 |
+
value_states,
|
| 167 |
+
attention_mask,
|
| 168 |
+
dropout=0.0 if not self.training else self.attention_dropout,
|
| 169 |
+
scaling=self.scaling,
|
| 170 |
+
sliding_window=self.sliding_window, # main diff with Llama
|
| 171 |
+
**kwargs,
|
| 172 |
+
)
|
| 173 |
+
|
| 174 |
+
attn_output = attn_output.reshape(*input_shape, -1).contiguous()
|
| 175 |
+
attn_output = self.o_proj(attn_output)
|
| 176 |
+
return attn_output, attn_weights
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
@use_kernel_forward_from_hub("RMSNorm")
|
| 180 |
+
class OuroRMSNorm(nn.Module):
|
| 181 |
+
def __init__(self, hidden_size, eps=1e-6):
|
| 182 |
+
"""
|
| 183 |
+
OuroRMSNorm is equivalent to T5LayerNorm
|
| 184 |
+
"""
|
| 185 |
+
super().__init__()
|
| 186 |
+
self.weight = nn.Parameter(torch.ones(hidden_size))
|
| 187 |
+
self.variance_epsilon = eps
|
| 188 |
+
|
| 189 |
+
def forward(self, hidden_states):
|
| 190 |
+
input_dtype = hidden_states.dtype
|
| 191 |
+
hidden_states = hidden_states.to(torch.float32)
|
| 192 |
+
variance = hidden_states.pow(2).mean(-1, keepdim=True)
|
| 193 |
+
hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon)
|
| 194 |
+
return self.weight * hidden_states.to(input_dtype)
|
| 195 |
+
|
| 196 |
+
def extra_repr(self):
|
| 197 |
+
return f"{tuple(self.weight.shape)}, eps={self.variance_epsilon}"
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
class OuroDecoderLayer(GradientCheckpointingLayer):
|
| 201 |
+
def __init__(self, config: OuroConfig, layer_idx: int):
|
| 202 |
+
super().__init__()
|
| 203 |
+
self.hidden_size = config.hidden_size
|
| 204 |
+
|
| 205 |
+
self.self_attn = OuroAttention(config=config, layer_idx=layer_idx)
|
| 206 |
+
|
| 207 |
+
self.mlp = OuroMLP(config)
|
| 208 |
+
self.input_layernorm = OuroRMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 209 |
+
self.input_layernorm_2 = OuroRMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 210 |
+
self.post_attention_layernorm = OuroRMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 211 |
+
self.post_attention_layernorm_2 = OuroRMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 212 |
+
self.attention_type = config.layer_types[layer_idx]
|
| 213 |
+
|
| 214 |
+
def forward(
|
| 215 |
+
self,
|
| 216 |
+
hidden_states: torch.Tensor,
|
| 217 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 218 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 219 |
+
past_key_value: Optional[Cache] = None,
|
| 220 |
+
use_cache: Optional[bool] = False,
|
| 221 |
+
cache_position: Optional[torch.LongTensor] = None,
|
| 222 |
+
position_embeddings: Optional[tuple[torch.Tensor, torch.Tensor]] = None, # necessary, but kept here for BC
|
| 223 |
+
**kwargs: Unpack[TransformersKwargs],
|
| 224 |
+
) -> tuple[torch.Tensor]:
|
| 225 |
+
residual = hidden_states
|
| 226 |
+
hidden_states = self.input_layernorm(hidden_states)
|
| 227 |
+
# Self Attention
|
| 228 |
+
hidden_states, _ = self.self_attn(
|
| 229 |
+
hidden_states=hidden_states,
|
| 230 |
+
attention_mask=attention_mask,
|
| 231 |
+
position_ids=position_ids,
|
| 232 |
+
past_key_value=past_key_value,
|
| 233 |
+
use_cache=use_cache,
|
| 234 |
+
cache_position=cache_position,
|
| 235 |
+
position_embeddings=position_embeddings,
|
| 236 |
+
**kwargs,
|
| 237 |
+
)
|
| 238 |
+
hidden_states = self.input_layernorm_2(hidden_states)
|
| 239 |
+
hidden_states = residual + hidden_states
|
| 240 |
+
|
| 241 |
+
# Fully Connected
|
| 242 |
+
residual = hidden_states
|
| 243 |
+
hidden_states = self.post_attention_layernorm(hidden_states)
|
| 244 |
+
hidden_states = self.mlp(hidden_states)
|
| 245 |
+
hidden_states = self.post_attention_layernorm_2(hidden_states)
|
| 246 |
+
hidden_states = residual + hidden_states
|
| 247 |
+
return hidden_states
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
@auto_docstring
|
| 251 |
+
class OuroPreTrainedModel(PreTrainedModel):
|
| 252 |
+
config: OuroConfig
|
| 253 |
+
base_model_prefix = "model"
|
| 254 |
+
supports_gradient_checkpointing = True
|
| 255 |
+
_no_split_modules = ["OuroDecoderLayer"]
|
| 256 |
+
_skip_keys_device_placement = ["past_key_values"]
|
| 257 |
+
_supports_flash_attn = True
|
| 258 |
+
_supports_sdpa = True
|
| 259 |
+
_supports_flex_attn = True
|
| 260 |
+
|
| 261 |
+
_can_compile_fullgraph = True
|
| 262 |
+
_supports_attention_backend = True
|
| 263 |
+
_can_record_outputs = {
|
| 264 |
+
"hidden_states": OuroDecoderLayer,
|
| 265 |
+
"attentions": OuroAttention,
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
class OuroRotaryEmbedding(nn.Module):
|
| 270 |
+
def __init__(self, config: OuroConfig, device=None):
|
| 271 |
+
super().__init__()
|
| 272 |
+
# BC: "rope_type" was originally "type"
|
| 273 |
+
if hasattr(config, "rope_scaling") and isinstance(config.rope_scaling, dict):
|
| 274 |
+
self.rope_type = config.rope_scaling.get("rope_type", config.rope_scaling.get("type"))
|
| 275 |
+
else:
|
| 276 |
+
self.rope_type = "default"
|
| 277 |
+
self.max_seq_len_cached = config.max_position_embeddings
|
| 278 |
+
self.original_max_seq_len = config.max_position_embeddings
|
| 279 |
+
|
| 280 |
+
self.config = config
|
| 281 |
+
self.rope_init_fn = ROPE_INIT_FUNCTIONS[self.rope_type]
|
| 282 |
+
|
| 283 |
+
inv_freq, self.attention_scaling = self.rope_init_fn(self.config, device)
|
| 284 |
+
self.register_buffer("inv_freq", inv_freq, persistent=False)
|
| 285 |
+
self.original_inv_freq = self.inv_freq
|
| 286 |
+
|
| 287 |
+
@torch.no_grad()
|
| 288 |
+
@dynamic_rope_update # power user: used with advanced RoPE types (e.g. dynamic rope)
|
| 289 |
+
def forward(self, x, position_ids):
|
| 290 |
+
inv_freq_expanded = self.inv_freq[None, :, None].float().expand(position_ids.shape[0], -1, 1).to(x.device)
|
| 291 |
+
position_ids_expanded = position_ids[:, None, :].float()
|
| 292 |
+
|
| 293 |
+
device_type = x.device.type if isinstance(x.device.type, str) and x.device.type != "mps" else "cpu"
|
| 294 |
+
with torch.autocast(device_type=device_type, enabled=False): # Force float32
|
| 295 |
+
freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2)
|
| 296 |
+
emb = torch.cat((freqs, freqs), dim=-1)
|
| 297 |
+
cos = emb.cos() * self.attention_scaling
|
| 298 |
+
sin = emb.sin() * self.attention_scaling
|
| 299 |
+
|
| 300 |
+
return cos.to(dtype=x.dtype), sin.to(dtype=x.dtype)
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
@auto_docstring
|
| 304 |
+
class OuroModel(OuroPreTrainedModel):
|
| 305 |
+
def __init__(self, config: OuroConfig):
|
| 306 |
+
super().__init__(config)
|
| 307 |
+
self.padding_idx = config.pad_token_id
|
| 308 |
+
self.vocab_size = config.vocab_size
|
| 309 |
+
|
| 310 |
+
self.embed_tokens = nn.Embedding(config.vocab_size, config.hidden_size, self.padding_idx)
|
| 311 |
+
self.layers = nn.ModuleList(
|
| 312 |
+
[OuroDecoderLayer(config, layer_idx) for layer_idx in range(config.num_hidden_layers)]
|
| 313 |
+
)
|
| 314 |
+
self.norm = OuroRMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 315 |
+
self.rotary_emb = OuroRotaryEmbedding(config=config)
|
| 316 |
+
self.gradient_checkpointing = False
|
| 317 |
+
self.has_sliding_layers = "sliding_attention" in self.config.layer_types
|
| 318 |
+
self.total_ut_steps = getattr(self.config, "total_ut_steps", 4)
|
| 319 |
+
self.early_exit_gate = nn.Linear(config.hidden_size, 1)
|
| 320 |
+
# Initialize weights and apply final processing
|
| 321 |
+
self.post_init()
|
| 322 |
+
|
| 323 |
+
@check_model_inputs
|
| 324 |
+
@auto_docstring
|
| 325 |
+
def forward(
|
| 326 |
+
self,
|
| 327 |
+
input_ids: Optional[torch.LongTensor] = None,
|
| 328 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 329 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 330 |
+
past_key_values: Optional[Cache] = None,
|
| 331 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 332 |
+
use_cache: Optional[bool] = None,
|
| 333 |
+
cache_position: Optional[torch.LongTensor] = None,
|
| 334 |
+
**kwargs: Unpack[TransformersKwargs],
|
| 335 |
+
) -> BaseModelOutputWithPast:
|
| 336 |
+
if (input_ids is None) ^ (inputs_embeds is not None):
|
| 337 |
+
raise ValueError("You must specify exactly one of input_ids or inputs_embeds")
|
| 338 |
+
|
| 339 |
+
if inputs_embeds is None:
|
| 340 |
+
inputs_embeds = self.embed_tokens(input_ids)
|
| 341 |
+
|
| 342 |
+
if use_cache and past_key_values is None:
|
| 343 |
+
past_key_values = DynamicCache()
|
| 344 |
+
|
| 345 |
+
if cache_position is None:
|
| 346 |
+
past_seen_tokens = past_key_values.get_seq_length() if past_key_values is not None else 0
|
| 347 |
+
cache_position = torch.arange(
|
| 348 |
+
past_seen_tokens, past_seen_tokens + inputs_embeds.shape[1], device=inputs_embeds.device
|
| 349 |
+
)
|
| 350 |
+
|
| 351 |
+
if position_ids is None:
|
| 352 |
+
position_ids = cache_position.unsqueeze(0)
|
| 353 |
+
|
| 354 |
+
# It may already have been prepared by e.g. `generate`
|
| 355 |
+
if not isinstance(causal_mask_mapping := attention_mask, dict):
|
| 356 |
+
# Prepare mask arguments
|
| 357 |
+
mask_kwargs = {
|
| 358 |
+
"config": self.config,
|
| 359 |
+
"input_embeds": inputs_embeds,
|
| 360 |
+
"attention_mask": attention_mask,
|
| 361 |
+
"cache_position": cache_position,
|
| 362 |
+
"past_key_values": past_key_values,
|
| 363 |
+
"position_ids": position_ids,
|
| 364 |
+
}
|
| 365 |
+
# Create the masks
|
| 366 |
+
causal_mask_mapping = {
|
| 367 |
+
"full_attention": create_causal_mask(**mask_kwargs),
|
| 368 |
+
}
|
| 369 |
+
# The sliding window alternating layers are not always activated depending on the config
|
| 370 |
+
if self.has_sliding_layers:
|
| 371 |
+
causal_mask_mapping["sliding_attention"] = create_sliding_window_causal_mask(**mask_kwargs)
|
| 372 |
+
|
| 373 |
+
hidden_states = inputs_embeds
|
| 374 |
+
|
| 375 |
+
# create position embeddings to be shared across the decoder layers
|
| 376 |
+
position_embeddings = self.rotary_emb(hidden_states, position_ids)
|
| 377 |
+
hidden_states_list = []
|
| 378 |
+
gate_list = []
|
| 379 |
+
|
| 380 |
+
for current_ut in range(self.total_ut_steps):
|
| 381 |
+
for decoder_layer in self.layers[: self.config.num_hidden_layers]:
|
| 382 |
+
hidden_states = decoder_layer(
|
| 383 |
+
hidden_states,
|
| 384 |
+
attention_mask=causal_mask_mapping[decoder_layer.attention_type],
|
| 385 |
+
position_ids=position_ids,
|
| 386 |
+
past_key_value=past_key_values,
|
| 387 |
+
use_cache=use_cache,
|
| 388 |
+
cache_position=cache_position,
|
| 389 |
+
position_embeddings=position_embeddings,
|
| 390 |
+
current_ut=current_ut,
|
| 391 |
+
**kwargs,
|
| 392 |
+
)
|
| 393 |
+
|
| 394 |
+
hidden_states = self.norm(hidden_states)
|
| 395 |
+
hidden_states_list.append(hidden_states)
|
| 396 |
+
gate_list.append(self.early_exit_gate(hidden_states))
|
| 397 |
+
|
| 398 |
+
return BaseModelOutputWithPast(
|
| 399 |
+
last_hidden_state=hidden_states,
|
| 400 |
+
past_key_values=past_key_values if use_cache else None,
|
| 401 |
+
), hidden_states_list, gate_list
|
| 402 |
+
|
| 403 |
+
|
| 404 |
+
@auto_docstring
|
| 405 |
+
class OuroForCausalLM(OuroPreTrainedModel, GenerationMixin):
|
| 406 |
+
_tied_weights_keys = ["lm_head.weight"]
|
| 407 |
+
_tp_plan = {"lm_head": "colwise_rep"}
|
| 408 |
+
_pp_plan = {"lm_head": (["hidden_states"], ["logits"])}
|
| 409 |
+
|
| 410 |
+
def __init__(self, config):
|
| 411 |
+
super().__init__(config)
|
| 412 |
+
self.model = OuroModel(config)
|
| 413 |
+
self.vocab_size = config.vocab_size
|
| 414 |
+
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
|
| 415 |
+
|
| 416 |
+
# 分块大小配置
|
| 417 |
+
self.chunk_size = getattr(config, 'chunk_size', 2) # 默认分块大小为2
|
| 418 |
+
self.early_exit_step = getattr(config, "early_exit_step", None)
|
| 419 |
+
self.early_exit_threshold = getattr(config, "early_exit_threshold", None)
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
# Initialize weights and apply final processing
|
| 423 |
+
self.post_init()
|
| 424 |
+
|
| 425 |
+
def set_decoder(self, decoder):
|
| 426 |
+
self.model = decoder
|
| 427 |
+
|
| 428 |
+
def get_decoder(self):
|
| 429 |
+
return self.model
|
| 430 |
+
|
| 431 |
+
@can_return_tuple
|
| 432 |
+
@auto_docstring
|
| 433 |
+
def forward(
|
| 434 |
+
self,
|
| 435 |
+
input_ids: Optional[torch.LongTensor] = None,
|
| 436 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 437 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 438 |
+
past_key_values: Optional[Cache] = None,
|
| 439 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 440 |
+
labels: Optional[torch.LongTensor] = None,
|
| 441 |
+
use_cache: Optional[bool] = None,
|
| 442 |
+
cache_position: Optional[torch.LongTensor] = None,
|
| 443 |
+
logits_to_keep: Union[int, torch.Tensor] = 0,
|
| 444 |
+
use_weighted_exit: Optional[bool] = False, # 控制是否使用加权 early exit
|
| 445 |
+
exit_at_step: Optional[int] = None,
|
| 446 |
+
exit_threshold: Optional[float] = None,
|
| 447 |
+
**kwargs: Unpack[TransformersKwargs],
|
| 448 |
+
) -> CausalLMOutputWithPast:
|
| 449 |
+
r"""
|
| 450 |
+
Args:
|
| 451 |
+
use_weighted_exit (`bool`, *optional*, defaults to `False`):
|
| 452 |
+
Whether to use weighted early exit. If `True`, the logits from all UT steps will be
|
| 453 |
+
averaged according to the exit probability distribution.
|
| 454 |
+
exit_at_step (`int`, *optional*):
|
| 455 |
+
Specifies which UT step to exit at. If set, the model will directly use the hidden states
|
| 456 |
+
from this step to generate logits, ignoring other exit strategies.
|
| 457 |
+
exit_threshold (`float`, *optional*):
|
| 458 |
+
The cumulative probability threshold for early exit. When the cumulative exit probability
|
| 459 |
+
reaches this threshold, the model will exit at that step.
|
| 460 |
+
|
| 461 |
+
Example:
|
| 462 |
+
|
| 463 |
+
```python
|
| 464 |
+
>>> from transformers import AutoTokenizer, OuroForCausalLM
|
| 465 |
+
|
| 466 |
+
>>> prompt = "Hey, are you conscious? Can you talk to me?"
|
| 467 |
+
>>> inputs = tokenizer(prompt, return_tensors="pt")
|
| 468 |
+
|
| 469 |
+
>>> # Generate
|
| 470 |
+
>>> generate_ids = model.generate(inputs.input_ids, max_length=30)
|
| 471 |
+
>>> tokenizer.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
|
| 472 |
+
"Hey, are you conscious? Can you talk to me?\nI'm not conscious, but I can talk to you."
|
| 473 |
+
```"""
|
| 474 |
+
exit_at_step = exit_at_step if exit_at_step is not None else self.early_exit_step
|
| 475 |
+
exit_threshold = exit_threshold if exit_threshold is not None else self.early_exit_threshold
|
| 476 |
+
|
| 477 |
+
outputs, hidden_states_list, gate_list = self.model(
|
| 478 |
+
input_ids=input_ids,
|
| 479 |
+
attention_mask=attention_mask,
|
| 480 |
+
position_ids=position_ids,
|
| 481 |
+
past_key_values=past_key_values,
|
| 482 |
+
inputs_embeds=inputs_embeds,
|
| 483 |
+
use_cache=use_cache,
|
| 484 |
+
cache_position=cache_position,
|
| 485 |
+
**kwargs,
|
| 486 |
+
)
|
| 487 |
+
slice_indices = slice(-logits_to_keep, None) if isinstance(logits_to_keep, int) else logits_to_keep
|
| 488 |
+
|
| 489 |
+
def _select_token_positions(tensor: torch.Tensor) -> torch.Tensor:
|
| 490 |
+
if isinstance(slice_indices, slice):
|
| 491 |
+
return tensor[:, slice_indices, ...]
|
| 492 |
+
if isinstance(slice_indices, torch.Tensor):
|
| 493 |
+
return tensor.index_select(1, slice_indices.to(tensor.device))
|
| 494 |
+
raise TypeError(f"Unsupported index type for logits_to_keep: {type(slice_indices)}")
|
| 495 |
+
|
| 496 |
+
stacked_exit_pdf = None
|
| 497 |
+
if gate_list:
|
| 498 |
+
pdf_list = []
|
| 499 |
+
remaining_prob = torch.ones_like(gate_list[0].squeeze(-1))
|
| 500 |
+
for idx, gate_tensor in enumerate(gate_list):
|
| 501 |
+
lambda_i = torch.sigmoid(gate_tensor.squeeze(-1))
|
| 502 |
+
if idx < len(gate_list) - 1:
|
| 503 |
+
p_i = lambda_i * remaining_prob
|
| 504 |
+
remaining_prob = remaining_prob * (1.0 - lambda_i)
|
| 505 |
+
else:
|
| 506 |
+
p_i = remaining_prob
|
| 507 |
+
pdf_list.append(p_i)
|
| 508 |
+
stacked_exit_pdf = torch.stack(pdf_list, dim=2)
|
| 509 |
+
|
| 510 |
+
expected_logits_cache: Optional[torch.Tensor] = None
|
| 511 |
+
|
| 512 |
+
def compute_expected_logits() -> Optional[torch.Tensor]:
|
| 513 |
+
nonlocal expected_logits_cache
|
| 514 |
+
if expected_logits_cache is not None:
|
| 515 |
+
return expected_logits_cache
|
| 516 |
+
if stacked_exit_pdf is None or not hidden_states_list:
|
| 517 |
+
return None
|
| 518 |
+
token_exit_pdf = _select_token_positions(stacked_exit_pdf)
|
| 519 |
+
expected_logits = None
|
| 520 |
+
for step_idx, hidden in enumerate(hidden_states_list):
|
| 521 |
+
step_hidden = _select_token_positions(hidden)
|
| 522 |
+
step_logits = self.lm_head(step_hidden)
|
| 523 |
+
weight = token_exit_pdf[..., step_idx].unsqueeze(-1).to(step_logits.dtype)
|
| 524 |
+
expected_logits = step_logits * weight if expected_logits is None else expected_logits + step_logits * weight
|
| 525 |
+
expected_logits_cache = expected_logits
|
| 526 |
+
return expected_logits_cache
|
| 527 |
+
|
| 528 |
+
logits: Optional[torch.Tensor] = None
|
| 529 |
+
loss: Optional[torch.Tensor] = None
|
| 530 |
+
|
| 531 |
+
if labels is not None:
|
| 532 |
+
logits = compute_expected_logits()
|
| 533 |
+
if logits is None:
|
| 534 |
+
hidden_states = outputs.last_hidden_state
|
| 535 |
+
logits = self.lm_head(_select_token_positions(hidden_states))
|
| 536 |
+
loss = self.loss_function(logits=logits, labels=labels, vocab_size=self.config.vocab_size, **kwargs)
|
| 537 |
+
else:
|
| 538 |
+
if stacked_exit_pdf is not None and hidden_states_list:
|
| 539 |
+
if exit_at_step is not None and 0 <= exit_at_step < len(hidden_states_list):
|
| 540 |
+
selected_hidden = hidden_states_list[exit_at_step]
|
| 541 |
+
logits = self.lm_head(_select_token_positions(selected_hidden))
|
| 542 |
+
elif exit_threshold is not None:
|
| 543 |
+
cumulative_probs = torch.cumsum(stacked_exit_pdf, dim=2)
|
| 544 |
+
threshold_value = exit_threshold
|
| 545 |
+
if isinstance(threshold_value, torch.Tensor):
|
| 546 |
+
threshold_value = threshold_value.to(cumulative_probs.device)
|
| 547 |
+
threshold_mask = cumulative_probs >= threshold_value
|
| 548 |
+
exit_steps = torch.argmax(threshold_mask.float(), dim=2)
|
| 549 |
+
last_step_idx = stacked_exit_pdf.shape[2] - 1
|
| 550 |
+
if last_step_idx >= 0:
|
| 551 |
+
never_exceeded = ~threshold_mask.any(dim=2)
|
| 552 |
+
exit_steps[never_exceeded] = last_step_idx
|
| 553 |
+
stacked_hidden = torch.stack(hidden_states_list, dim=2)
|
| 554 |
+
gather_index = exit_steps.unsqueeze(-1).unsqueeze(-1).expand(-1, -1, 1, stacked_hidden.size(-1))
|
| 555 |
+
final_hidden_states = torch.gather(stacked_hidden, 2, gather_index).squeeze(2)
|
| 556 |
+
logits = self.lm_head(_select_token_positions(final_hidden_states))
|
| 557 |
+
elif use_weighted_exit:
|
| 558 |
+
logits = compute_expected_logits()
|
| 559 |
+
|
| 560 |
+
if logits is None:
|
| 561 |
+
hidden_states = outputs.last_hidden_state
|
| 562 |
+
logits = self.lm_head(_select_token_positions(hidden_states))
|
| 563 |
+
|
| 564 |
+
result = CausalLMOutputWithPast(
|
| 565 |
+
loss=loss,
|
| 566 |
+
logits=logits,
|
| 567 |
+
past_key_values=outputs.past_key_values,
|
| 568 |
+
hidden_states=outputs.hidden_states,
|
| 569 |
+
attentions=outputs.attentions,
|
| 570 |
+
)
|
| 571 |
+
|
| 572 |
+
return result
|
| 573 |
+
|
| 574 |
+
|
| 575 |
+
class OuroForSequenceClassification(GenericForSequenceClassification, OuroPreTrainedModel):
|
| 576 |
+
pass
|
| 577 |
+
|
| 578 |
+
|
| 579 |
+
class OuroForTokenClassification(GenericForTokenClassification, OuroPreTrainedModel):
|
| 580 |
+
pass
|
| 581 |
+
|
| 582 |
+
|
| 583 |
+
class OuroForQuestionAnswering(GenericForQuestionAnswering, OuroPreTrainedModel):
|
| 584 |
+
base_model_prefix = "transformer" # For BC, where `transformer` was used instead of `model`
|
| 585 |
+
|
| 586 |
+
|
| 587 |
+
__all__ = [
|
| 588 |
+
"OuroPreTrainedModel",
|
| 589 |
+
"OuroModel",
|
| 590 |
+
"OuroForCausalLM",
|
| 591 |
+
"OuroForSequenceClassification",
|
| 592 |
+
"OuroForTokenClassification",
|
| 593 |
+
"OuroForQuestionAnswering",
|
| 594 |
+
]
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|endoftext|>",
|
| 4 |
+
"<|im_start|>",
|
| 5 |
+
"<|im_end|>",
|
| 6 |
+
"<think>",
|
| 7 |
+
"</think>",
|
| 8 |
+
"<file_sep>",
|
| 9 |
+
"<filename>",
|
| 10 |
+
"<gh_stars>",
|
| 11 |
+
"<issue_start>",
|
| 12 |
+
"<issue_comment>",
|
| 13 |
+
"<issue_closed>",
|
| 14 |
+
"<jupyter_start>",
|
| 15 |
+
"<jupyter_text>",
|
| 16 |
+
"<jupyter_code>",
|
| 17 |
+
"<jupyter_output>",
|
| 18 |
+
"<jupyter_script>",
|
| 19 |
+
"<empty_output>"
|
| 20 |
+
],
|
| 21 |
+
"bos_token": {
|
| 22 |
+
"content": "<|endoftext|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false
|
| 27 |
+
},
|
| 28 |
+
"eos_token": {
|
| 29 |
+
"content": "<|endoftext|>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false
|
| 34 |
+
},
|
| 35 |
+
"unk_token": {
|
| 36 |
+
"content": "<|endoftext|>",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false
|
| 41 |
+
}
|
| 42 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"1": {
|
| 13 |
+
"content": "<|im_start|>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"2": {
|
| 21 |
+
"content": "<|im_end|>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"3": {
|
| 29 |
+
"content": "<think>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"4": {
|
| 37 |
+
"content": "</think>",
|
| 38 |
+
"lstrip": false,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"rstrip": false,
|
| 41 |
+
"single_word": false,
|
| 42 |
+
"special": true
|
| 43 |
+
},
|
| 44 |
+
"5": {
|
| 45 |
+
"content": "<file_sep>",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false,
|
| 50 |
+
"special": true
|
| 51 |
+
},
|
| 52 |
+
"6": {
|
| 53 |
+
"content": "<filename>",
|
| 54 |
+
"lstrip": false,
|
| 55 |
+
"normalized": false,
|
| 56 |
+
"rstrip": false,
|
| 57 |
+
"single_word": false,
|
| 58 |
+
"special": true
|
| 59 |
+
},
|
| 60 |
+
"7": {
|
| 61 |
+
"content": "<gh_stars>",
|
| 62 |
+
"lstrip": false,
|
| 63 |
+
"normalized": false,
|
| 64 |
+
"rstrip": false,
|
| 65 |
+
"single_word": false,
|
| 66 |
+
"special": true
|
| 67 |
+
},
|
| 68 |
+
"8": {
|
| 69 |
+
"content": "<issue_start>",
|
| 70 |
+
"lstrip": false,
|
| 71 |
+
"normalized": false,
|
| 72 |
+
"rstrip": false,
|
| 73 |
+
"single_word": false,
|
| 74 |
+
"special": true
|
| 75 |
+
},
|
| 76 |
+
"9": {
|
| 77 |
+
"content": "<issue_comment>",
|
| 78 |
+
"lstrip": false,
|
| 79 |
+
"normalized": false,
|
| 80 |
+
"rstrip": false,
|
| 81 |
+
"single_word": false,
|
| 82 |
+
"special": true
|
| 83 |
+
},
|
| 84 |
+
"10": {
|
| 85 |
+
"content": "<issue_closed>",
|
| 86 |
+
"lstrip": false,
|
| 87 |
+
"normalized": false,
|
| 88 |
+
"rstrip": false,
|
| 89 |
+
"single_word": false,
|
| 90 |
+
"special": true
|
| 91 |
+
},
|
| 92 |
+
"11": {
|
| 93 |
+
"content": "<jupyter_start>",
|
| 94 |
+
"lstrip": false,
|
| 95 |
+
"normalized": false,
|
| 96 |
+
"rstrip": false,
|
| 97 |
+
"single_word": false,
|
| 98 |
+
"special": true
|
| 99 |
+
},
|
| 100 |
+
"12": {
|
| 101 |
+
"content": "<jupyter_text>",
|
| 102 |
+
"lstrip": false,
|
| 103 |
+
"normalized": false,
|
| 104 |
+
"rstrip": false,
|
| 105 |
+
"single_word": false,
|
| 106 |
+
"special": true
|
| 107 |
+
},
|
| 108 |
+
"13": {
|
| 109 |
+
"content": "<jupyter_code>",
|
| 110 |
+
"lstrip": false,
|
| 111 |
+
"normalized": false,
|
| 112 |
+
"rstrip": false,
|
| 113 |
+
"single_word": false,
|
| 114 |
+
"special": true
|
| 115 |
+
},
|
| 116 |
+
"14": {
|
| 117 |
+
"content": "<jupyter_output>",
|
| 118 |
+
"lstrip": false,
|
| 119 |
+
"normalized": false,
|
| 120 |
+
"rstrip": false,
|
| 121 |
+
"single_word": false,
|
| 122 |
+
"special": true
|
| 123 |
+
},
|
| 124 |
+
"15": {
|
| 125 |
+
"content": "<jupyter_script>",
|
| 126 |
+
"lstrip": false,
|
| 127 |
+
"normalized": false,
|
| 128 |
+
"rstrip": false,
|
| 129 |
+
"single_word": false,
|
| 130 |
+
"special": true
|
| 131 |
+
},
|
| 132 |
+
"16": {
|
| 133 |
+
"content": "<empty_output>",
|
| 134 |
+
"lstrip": false,
|
| 135 |
+
"normalized": false,
|
| 136 |
+
"rstrip": false,
|
| 137 |
+
"single_word": false,
|
| 138 |
+
"special": true
|
| 139 |
+
}
|
| 140 |
+
},
|
| 141 |
+
"additional_special_tokens": [
|
| 142 |
+
"<|endoftext|>",
|
| 143 |
+
"<|im_start|>",
|
| 144 |
+
"<|im_end|>",
|
| 145 |
+
"<think>",
|
| 146 |
+
"</think>",
|
| 147 |
+
"<file_sep>",
|
| 148 |
+
"<filename>",
|
| 149 |
+
"<gh_stars>",
|
| 150 |
+
"<issue_start>",
|
| 151 |
+
"<issue_comment>",
|
| 152 |
+
"<issue_closed>",
|
| 153 |
+
"<jupyter_start>",
|
| 154 |
+
"<jupyter_text>",
|
| 155 |
+
"<jupyter_code>",
|
| 156 |
+
"<jupyter_output>",
|
| 157 |
+
"<jupyter_script>",
|
| 158 |
+
"<empty_output>"
|
| 159 |
+
],
|
| 160 |
+
"bos_token": "<|endoftext|>",
|
| 161 |
+
"clean_up_tokenization_spaces": false,
|
| 162 |
+
"eos_token": "<|endoftext|>",
|
| 163 |
+
"extra_special_tokens": {},
|
| 164 |
+
"model_max_length": 131072,
|
| 165 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 166 |
+
"unk_token": "<|endoftext|>",
|
| 167 |
+
"vocab_size": 49152
|
| 168 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|