Commit
·
6febe7f
1
Parent(s):
3c7c066
upload model
Browse files- __init__.py +4 -0
- config.json +90 -0
- configuration_qwen2nsa.py +74 -0
- generation_config.json +7 -0
- model-00001-of-00003.safetensors +3 -0
- model-00002-of-00003.safetensors +3 -0
- model-00003-of-00003.safetensors +3 -0
- model.safetensors.index.json +654 -0
- modeling_qwen2nsa.py +346 -0
__init__.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .configuration_qwen2nsa import Qwen2NsaConfig
|
| 2 |
+
from .modeling_qwen2nsa import Qwen2NsaForCausalLM
|
| 3 |
+
|
| 4 |
+
__all__ = ["Qwen2NsaConfig", "Qwen2NsaForCausalLM"]
|
config.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_attn_implementation_autoset": false,
|
| 3 |
+
"_name_or_path": "",
|
| 4 |
+
"add_cross_attention": false,
|
| 5 |
+
"architectures": [
|
| 6 |
+
"Qwen2NsaForCausalLM"
|
| 7 |
+
],
|
| 8 |
+
"attention_dropout": 0.0,
|
| 9 |
+
"bad_words_ids": null,
|
| 10 |
+
"begin_suppress_tokens": null,
|
| 11 |
+
"bos_token_id": 151643,
|
| 12 |
+
"chunk_size_feed_forward": 0,
|
| 13 |
+
"cross_attention_hidden_size": null,
|
| 14 |
+
"decoder_start_token_id": null,
|
| 15 |
+
"diversity_penalty": 0.0,
|
| 16 |
+
"do_sample": true,
|
| 17 |
+
"early_stopping": false,
|
| 18 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 19 |
+
"eos_token_id": 151643,
|
| 20 |
+
"exponential_decay_length_penalty": null,
|
| 21 |
+
"finetuning_task": null,
|
| 22 |
+
"forced_bos_token_id": null,
|
| 23 |
+
"forced_eos_token_id": null,
|
| 24 |
+
"gradient_checkpointing": false,
|
| 25 |
+
"hidden_act": "silu",
|
| 26 |
+
"hidden_size": 1536,
|
| 27 |
+
"id2label": {
|
| 28 |
+
"0": "LABEL_0",
|
| 29 |
+
"1": "LABEL_1"
|
| 30 |
+
},
|
| 31 |
+
"initializer_range": 0.02,
|
| 32 |
+
"intermediate_size": 8960,
|
| 33 |
+
"is_decoder": false,
|
| 34 |
+
"is_encoder_decoder": false,
|
| 35 |
+
"label2id": {
|
| 36 |
+
"LABEL_0": 0,
|
| 37 |
+
"LABEL_1": 1
|
| 38 |
+
},
|
| 39 |
+
"length_penalty": 1.0,
|
| 40 |
+
"max_length": 20,
|
| 41 |
+
"max_position_embeddings": 131072,
|
| 42 |
+
"max_window_layers": 21,
|
| 43 |
+
"min_length": 0,
|
| 44 |
+
"model_type": "qwen2nsa",
|
| 45 |
+
"auto_map": {
|
| 46 |
+
"AutoConfig": "configuration_qwen2nsa.Qwen2NsaConfig",
|
| 47 |
+
"AutoModelForCausalLM": "modeling_qwen2nsa.Qwen2NsaForCausalLM"
|
| 48 |
+
},
|
| 49 |
+
"no_repeat_ngram_size": 0,
|
| 50 |
+
"num_attention_heads": 12,
|
| 51 |
+
"num_beam_groups": 1,
|
| 52 |
+
"num_beams": 1,
|
| 53 |
+
"num_hidden_layers": 28,
|
| 54 |
+
"num_key_value_heads": 2,
|
| 55 |
+
"num_return_sequences": 1,
|
| 56 |
+
"output_attentions": false,
|
| 57 |
+
"output_hidden_states": false,
|
| 58 |
+
"output_scores": false,
|
| 59 |
+
"pad_token_id": 0,
|
| 60 |
+
"prefix": null,
|
| 61 |
+
"problem_type": null,
|
| 62 |
+
"pruned_heads": {},
|
| 63 |
+
"remove_invalid_values": false,
|
| 64 |
+
"repetition_penalty": 1.1,
|
| 65 |
+
"return_dict": true,
|
| 66 |
+
"return_dict_in_generate": false,
|
| 67 |
+
"rms_norm_eps": 1e-06,
|
| 68 |
+
"rope_scaling": null,
|
| 69 |
+
"rope_theta": 10000,
|
| 70 |
+
"sep_token_id": null,
|
| 71 |
+
"sliding_window": 4096,
|
| 72 |
+
"suppress_tokens": null,
|
| 73 |
+
"task_specific_params": null,
|
| 74 |
+
"temperature": 0.6,
|
| 75 |
+
"tf_legacy_loss": false,
|
| 76 |
+
"tie_encoder_decoder": false,
|
| 77 |
+
"tie_word_embeddings": false,
|
| 78 |
+
"tokenizer_class": null,
|
| 79 |
+
"top_k": 0,
|
| 80 |
+
"top_p": 0.95,
|
| 81 |
+
"torch_dtype": "float32",
|
| 82 |
+
"torchscript": false,
|
| 83 |
+
"transformers_version": "4.51.3",
|
| 84 |
+
"typical_p": 1.0,
|
| 85 |
+
"use_bfloat16": false,
|
| 86 |
+
"use_cache": true,
|
| 87 |
+
"use_mrope": false,
|
| 88 |
+
"use_sliding_window": false,
|
| 89 |
+
"vocab_size": 151936
|
| 90 |
+
}
|
configuration_qwen2nsa.py
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 2 |
+
"""
|
| 3 |
+
Configuration class for Qwen-2-NSA
|
| 4 |
+
"""
|
| 5 |
+
|
| 6 |
+
import json
|
| 7 |
+
from typing import Optional, Dict, Any
|
| 8 |
+
|
| 9 |
+
from transformers import PretrainedConfig
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
class Qwen2NsaConfig(PretrainedConfig):
|
| 13 |
+
model_type: str = "qwen2nsa"
|
| 14 |
+
|
| 15 |
+
def __init__(
|
| 16 |
+
self,
|
| 17 |
+
vocab_size: int = 151_936,
|
| 18 |
+
hidden_size: int = 2_048,
|
| 19 |
+
intermediate_size: int = 5_632,
|
| 20 |
+
num_hidden_layers: int = 24,
|
| 21 |
+
num_attention_heads: int = 16,
|
| 22 |
+
num_key_value_heads: int = 16,
|
| 23 |
+
hidden_act: str = "silu",
|
| 24 |
+
max_position_embeddings: int = 32_768,
|
| 25 |
+
initializer_range: float = 0.02,
|
| 26 |
+
rms_norm_eps: float = 1e-6,
|
| 27 |
+
tie_word_embeddings: bool = False,
|
| 28 |
+
pad_token_id: int = 0,
|
| 29 |
+
bos_token_id: int = 1,
|
| 30 |
+
eos_token_id: int = 2,
|
| 31 |
+
sliding_window: int = 128,
|
| 32 |
+
rope_theta: float = 10_000.0,
|
| 33 |
+
rope_scaling: Optional[Dict[str, Any]] = None,
|
| 34 |
+
attention_dropout: float = 0.0,
|
| 35 |
+
use_cache: bool = True,
|
| 36 |
+
use_sliding_window: bool = False,
|
| 37 |
+
gradient_checkpointing: bool = False,
|
| 38 |
+
**kwargs,
|
| 39 |
+
):
|
| 40 |
+
super().__init__(
|
| 41 |
+
pad_token_id=pad_token_id,
|
| 42 |
+
bos_token_id=bos_token_id,
|
| 43 |
+
eos_token_id=eos_token_id,
|
| 44 |
+
tie_word_embeddings=tie_word_embeddings,
|
| 45 |
+
**kwargs,
|
| 46 |
+
)
|
| 47 |
+
|
| 48 |
+
self.vocab_size = vocab_size
|
| 49 |
+
self.hidden_size = hidden_size
|
| 50 |
+
self.intermediate_size = intermediate_size
|
| 51 |
+
self.num_hidden_layers = num_hidden_layers
|
| 52 |
+
self.num_attention_heads = num_attention_heads
|
| 53 |
+
self.num_key_value_heads = num_key_value_heads
|
| 54 |
+
self.hidden_act = hidden_act
|
| 55 |
+
self.max_position_embeddings = max_position_embeddings
|
| 56 |
+
self.initializer_range = initializer_range
|
| 57 |
+
self.rms_norm_eps = rms_norm_eps
|
| 58 |
+
self.sliding_window = sliding_window
|
| 59 |
+
self.rope_theta = rope_theta
|
| 60 |
+
self.rope_scaling = rope_scaling
|
| 61 |
+
self.attention_dropout = attention_dropout
|
| 62 |
+
self.use_cache = use_cache
|
| 63 |
+
self.use_sliding_window = use_sliding_window
|
| 64 |
+
self.gradient_checkpointing = gradient_checkpointing
|
| 65 |
+
|
| 66 |
+
@classmethod
|
| 67 |
+
def from_json(cls, json_str: str) -> "Qwen2NsaConfig":
|
| 68 |
+
return cls(**json.loads(json_str))
|
| 69 |
+
|
| 70 |
+
def to_json_string(self, use_diff: bool = True) -> str:
|
| 71 |
+
return json.dumps(self.to_dict(), indent=2, sort_keys=True)
|
| 72 |
+
|
| 73 |
+
def get(self, key, default=None):
|
| 74 |
+
return getattr(self, key, default)
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 151643,
|
| 4 |
+
"eos_token_id": 151643,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.51.3"
|
| 7 |
+
}
|
model-00001-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0397b710a35f3af07a95e304a828ec2f70565f3cbed66830d3243f79331a412
|
| 3 |
+
size 4996050624
|
model-00002-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49f17db38d254ce91a705fc833cdfcb5a07e633435082b9b917acd9979880bf7
|
| 3 |
+
size 4953514664
|
model-00003-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:499484d278654a89fb0dfefb771bf3b107e3183417637a697bb6364a257d2e3c
|
| 3 |
+
size 1043614352
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,654 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 10993103808
|
| 4 |
+
},
|
| 5 |
+
"weight_map": {
|
| 6 |
+
"lm_head.weight": "model-00003-of-00003.safetensors",
|
| 7 |
+
"model.embed_tokens.weight": "model-00001-of-00003.safetensors",
|
| 8 |
+
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 9 |
+
"model.layers.0.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 10 |
+
"model.layers.0.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 11 |
+
"model.layers.0.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 12 |
+
"model.layers.0.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 13 |
+
"model.layers.0.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 14 |
+
"model.layers.0.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 15 |
+
"model.layers.0.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 16 |
+
"model.layers.0.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 17 |
+
"model.layers.0.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 18 |
+
"model.layers.0.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 19 |
+
"model.layers.0.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 20 |
+
"model.layers.0.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 21 |
+
"model.layers.0.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 22 |
+
"model.layers.0.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 23 |
+
"model.layers.0.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 24 |
+
"model.layers.0.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 25 |
+
"model.layers.0.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 26 |
+
"model.layers.0.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 27 |
+
"model.layers.0.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 28 |
+
"model.layers.0.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 29 |
+
"model.layers.0.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 30 |
+
"model.layers.0.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 31 |
+
"model.layers.1.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 32 |
+
"model.layers.1.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 33 |
+
"model.layers.1.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 34 |
+
"model.layers.1.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 35 |
+
"model.layers.1.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 36 |
+
"model.layers.1.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 37 |
+
"model.layers.1.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 38 |
+
"model.layers.1.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 39 |
+
"model.layers.1.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 40 |
+
"model.layers.1.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 41 |
+
"model.layers.1.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 42 |
+
"model.layers.1.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 43 |
+
"model.layers.1.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 44 |
+
"model.layers.1.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 45 |
+
"model.layers.1.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 46 |
+
"model.layers.1.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 47 |
+
"model.layers.1.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 48 |
+
"model.layers.1.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 49 |
+
"model.layers.1.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 50 |
+
"model.layers.1.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 51 |
+
"model.layers.1.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 52 |
+
"model.layers.1.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 53 |
+
"model.layers.1.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 54 |
+
"model.layers.10.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 55 |
+
"model.layers.10.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 56 |
+
"model.layers.10.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 57 |
+
"model.layers.10.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 58 |
+
"model.layers.10.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 59 |
+
"model.layers.10.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 60 |
+
"model.layers.10.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 61 |
+
"model.layers.10.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 62 |
+
"model.layers.10.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 63 |
+
"model.layers.10.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 64 |
+
"model.layers.10.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 65 |
+
"model.layers.10.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 66 |
+
"model.layers.10.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 67 |
+
"model.layers.10.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 68 |
+
"model.layers.10.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 69 |
+
"model.layers.10.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 70 |
+
"model.layers.10.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 71 |
+
"model.layers.10.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 72 |
+
"model.layers.10.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 73 |
+
"model.layers.10.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 74 |
+
"model.layers.10.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 75 |
+
"model.layers.10.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 76 |
+
"model.layers.10.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 77 |
+
"model.layers.11.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 78 |
+
"model.layers.11.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 79 |
+
"model.layers.11.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 80 |
+
"model.layers.11.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 81 |
+
"model.layers.11.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 82 |
+
"model.layers.11.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 83 |
+
"model.layers.11.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 84 |
+
"model.layers.11.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 85 |
+
"model.layers.11.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 86 |
+
"model.layers.11.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 87 |
+
"model.layers.11.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 88 |
+
"model.layers.11.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 89 |
+
"model.layers.11.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 90 |
+
"model.layers.11.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 91 |
+
"model.layers.11.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 92 |
+
"model.layers.11.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 93 |
+
"model.layers.11.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 94 |
+
"model.layers.11.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 95 |
+
"model.layers.11.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 96 |
+
"model.layers.11.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 97 |
+
"model.layers.11.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 98 |
+
"model.layers.11.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 99 |
+
"model.layers.11.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 100 |
+
"model.layers.12.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 101 |
+
"model.layers.12.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 102 |
+
"model.layers.12.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 103 |
+
"model.layers.12.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 104 |
+
"model.layers.12.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 105 |
+
"model.layers.12.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 106 |
+
"model.layers.12.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 107 |
+
"model.layers.12.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 108 |
+
"model.layers.12.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 109 |
+
"model.layers.12.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 110 |
+
"model.layers.12.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 111 |
+
"model.layers.12.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 112 |
+
"model.layers.12.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 113 |
+
"model.layers.12.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 114 |
+
"model.layers.12.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 115 |
+
"model.layers.12.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 116 |
+
"model.layers.12.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 117 |
+
"model.layers.12.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 118 |
+
"model.layers.12.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 119 |
+
"model.layers.12.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 120 |
+
"model.layers.12.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 121 |
+
"model.layers.12.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 122 |
+
"model.layers.12.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 123 |
+
"model.layers.13.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 124 |
+
"model.layers.13.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 125 |
+
"model.layers.13.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 126 |
+
"model.layers.13.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 127 |
+
"model.layers.13.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 128 |
+
"model.layers.13.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 129 |
+
"model.layers.13.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 130 |
+
"model.layers.13.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 131 |
+
"model.layers.13.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 132 |
+
"model.layers.13.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 133 |
+
"model.layers.13.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 134 |
+
"model.layers.13.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 135 |
+
"model.layers.13.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 136 |
+
"model.layers.13.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 137 |
+
"model.layers.13.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 138 |
+
"model.layers.13.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 139 |
+
"model.layers.13.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 140 |
+
"model.layers.13.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 141 |
+
"model.layers.13.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 142 |
+
"model.layers.13.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 143 |
+
"model.layers.13.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 144 |
+
"model.layers.13.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 145 |
+
"model.layers.13.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 146 |
+
"model.layers.14.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 147 |
+
"model.layers.14.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 148 |
+
"model.layers.14.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 149 |
+
"model.layers.14.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 150 |
+
"model.layers.14.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 151 |
+
"model.layers.14.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 152 |
+
"model.layers.14.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 153 |
+
"model.layers.14.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 154 |
+
"model.layers.14.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 155 |
+
"model.layers.14.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 156 |
+
"model.layers.14.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 157 |
+
"model.layers.14.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 158 |
+
"model.layers.14.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 159 |
+
"model.layers.14.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 160 |
+
"model.layers.14.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 161 |
+
"model.layers.14.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 162 |
+
"model.layers.14.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 163 |
+
"model.layers.14.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 164 |
+
"model.layers.14.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 165 |
+
"model.layers.14.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 166 |
+
"model.layers.14.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 167 |
+
"model.layers.14.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 168 |
+
"model.layers.14.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 169 |
+
"model.layers.15.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 170 |
+
"model.layers.15.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 171 |
+
"model.layers.15.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 172 |
+
"model.layers.15.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 173 |
+
"model.layers.15.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 174 |
+
"model.layers.15.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 175 |
+
"model.layers.15.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 176 |
+
"model.layers.15.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 177 |
+
"model.layers.15.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 178 |
+
"model.layers.15.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 179 |
+
"model.layers.15.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 180 |
+
"model.layers.15.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 181 |
+
"model.layers.15.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 182 |
+
"model.layers.15.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 183 |
+
"model.layers.15.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 184 |
+
"model.layers.15.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 185 |
+
"model.layers.15.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 186 |
+
"model.layers.15.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 187 |
+
"model.layers.15.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 188 |
+
"model.layers.15.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 189 |
+
"model.layers.15.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 190 |
+
"model.layers.15.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 191 |
+
"model.layers.15.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 192 |
+
"model.layers.16.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 193 |
+
"model.layers.16.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 194 |
+
"model.layers.16.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 195 |
+
"model.layers.16.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 196 |
+
"model.layers.16.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 197 |
+
"model.layers.16.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 198 |
+
"model.layers.16.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 199 |
+
"model.layers.16.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 200 |
+
"model.layers.16.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 201 |
+
"model.layers.16.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 202 |
+
"model.layers.16.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 203 |
+
"model.layers.16.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 204 |
+
"model.layers.16.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 205 |
+
"model.layers.16.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 206 |
+
"model.layers.16.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 207 |
+
"model.layers.16.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 208 |
+
"model.layers.16.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 209 |
+
"model.layers.16.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 210 |
+
"model.layers.16.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 211 |
+
"model.layers.16.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 212 |
+
"model.layers.16.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 213 |
+
"model.layers.16.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 214 |
+
"model.layers.16.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 215 |
+
"model.layers.17.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 216 |
+
"model.layers.17.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 217 |
+
"model.layers.17.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 218 |
+
"model.layers.17.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 219 |
+
"model.layers.17.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 220 |
+
"model.layers.17.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 221 |
+
"model.layers.17.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 222 |
+
"model.layers.17.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 223 |
+
"model.layers.17.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 224 |
+
"model.layers.17.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 225 |
+
"model.layers.17.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 226 |
+
"model.layers.17.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 227 |
+
"model.layers.17.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 228 |
+
"model.layers.17.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 229 |
+
"model.layers.17.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 230 |
+
"model.layers.17.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 231 |
+
"model.layers.17.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 232 |
+
"model.layers.17.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 233 |
+
"model.layers.17.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 234 |
+
"model.layers.17.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 235 |
+
"model.layers.17.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 236 |
+
"model.layers.17.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 237 |
+
"model.layers.17.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 238 |
+
"model.layers.18.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 239 |
+
"model.layers.18.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 240 |
+
"model.layers.18.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 241 |
+
"model.layers.18.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 242 |
+
"model.layers.18.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 243 |
+
"model.layers.18.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 244 |
+
"model.layers.18.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 245 |
+
"model.layers.18.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 246 |
+
"model.layers.18.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 247 |
+
"model.layers.18.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 248 |
+
"model.layers.18.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 249 |
+
"model.layers.18.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 250 |
+
"model.layers.18.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 251 |
+
"model.layers.18.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 252 |
+
"model.layers.18.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 253 |
+
"model.layers.18.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 254 |
+
"model.layers.18.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 255 |
+
"model.layers.18.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 256 |
+
"model.layers.18.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 257 |
+
"model.layers.18.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 258 |
+
"model.layers.18.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 259 |
+
"model.layers.18.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 260 |
+
"model.layers.18.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 261 |
+
"model.layers.19.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 262 |
+
"model.layers.19.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 263 |
+
"model.layers.19.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 264 |
+
"model.layers.19.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 265 |
+
"model.layers.19.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 266 |
+
"model.layers.19.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 267 |
+
"model.layers.19.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 268 |
+
"model.layers.19.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 269 |
+
"model.layers.19.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 270 |
+
"model.layers.19.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 271 |
+
"model.layers.19.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 272 |
+
"model.layers.19.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 273 |
+
"model.layers.19.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 274 |
+
"model.layers.19.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 275 |
+
"model.layers.19.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 276 |
+
"model.layers.19.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 277 |
+
"model.layers.19.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 278 |
+
"model.layers.19.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 279 |
+
"model.layers.19.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 280 |
+
"model.layers.19.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 281 |
+
"model.layers.19.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 282 |
+
"model.layers.19.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 283 |
+
"model.layers.19.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 284 |
+
"model.layers.2.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 285 |
+
"model.layers.2.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 286 |
+
"model.layers.2.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 287 |
+
"model.layers.2.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 288 |
+
"model.layers.2.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 289 |
+
"model.layers.2.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 290 |
+
"model.layers.2.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 291 |
+
"model.layers.2.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 292 |
+
"model.layers.2.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 293 |
+
"model.layers.2.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 294 |
+
"model.layers.2.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 295 |
+
"model.layers.2.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 296 |
+
"model.layers.2.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 297 |
+
"model.layers.2.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 298 |
+
"model.layers.2.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 299 |
+
"model.layers.2.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 300 |
+
"model.layers.2.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 301 |
+
"model.layers.2.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 302 |
+
"model.layers.2.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 303 |
+
"model.layers.2.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 304 |
+
"model.layers.2.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 305 |
+
"model.layers.2.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 306 |
+
"model.layers.2.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 307 |
+
"model.layers.20.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 308 |
+
"model.layers.20.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 309 |
+
"model.layers.20.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 310 |
+
"model.layers.20.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 311 |
+
"model.layers.20.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 312 |
+
"model.layers.20.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 313 |
+
"model.layers.20.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 314 |
+
"model.layers.20.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 315 |
+
"model.layers.20.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 316 |
+
"model.layers.20.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 317 |
+
"model.layers.20.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 318 |
+
"model.layers.20.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 319 |
+
"model.layers.20.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 320 |
+
"model.layers.20.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 321 |
+
"model.layers.20.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 322 |
+
"model.layers.20.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 323 |
+
"model.layers.20.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 324 |
+
"model.layers.20.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 325 |
+
"model.layers.20.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 326 |
+
"model.layers.20.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 327 |
+
"model.layers.20.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 328 |
+
"model.layers.20.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 329 |
+
"model.layers.20.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 330 |
+
"model.layers.21.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 331 |
+
"model.layers.21.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 332 |
+
"model.layers.21.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 333 |
+
"model.layers.21.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 334 |
+
"model.layers.21.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 335 |
+
"model.layers.21.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 336 |
+
"model.layers.21.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 337 |
+
"model.layers.21.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 338 |
+
"model.layers.21.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 339 |
+
"model.layers.21.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 340 |
+
"model.layers.21.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 341 |
+
"model.layers.21.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 342 |
+
"model.layers.21.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 343 |
+
"model.layers.21.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 344 |
+
"model.layers.21.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 345 |
+
"model.layers.21.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 346 |
+
"model.layers.21.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 347 |
+
"model.layers.21.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 348 |
+
"model.layers.21.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 349 |
+
"model.layers.21.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 350 |
+
"model.layers.21.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 351 |
+
"model.layers.21.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 352 |
+
"model.layers.21.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 353 |
+
"model.layers.22.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 354 |
+
"model.layers.22.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 355 |
+
"model.layers.22.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 356 |
+
"model.layers.22.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 357 |
+
"model.layers.22.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 358 |
+
"model.layers.22.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 359 |
+
"model.layers.22.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 360 |
+
"model.layers.22.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 361 |
+
"model.layers.22.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 362 |
+
"model.layers.22.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 363 |
+
"model.layers.22.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 364 |
+
"model.layers.22.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 365 |
+
"model.layers.22.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 366 |
+
"model.layers.22.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 367 |
+
"model.layers.22.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 368 |
+
"model.layers.22.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 369 |
+
"model.layers.22.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 370 |
+
"model.layers.22.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 371 |
+
"model.layers.22.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 372 |
+
"model.layers.22.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 373 |
+
"model.layers.22.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 374 |
+
"model.layers.22.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 375 |
+
"model.layers.22.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 376 |
+
"model.layers.23.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 377 |
+
"model.layers.23.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 378 |
+
"model.layers.23.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 379 |
+
"model.layers.23.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 380 |
+
"model.layers.23.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 381 |
+
"model.layers.23.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 382 |
+
"model.layers.23.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 383 |
+
"model.layers.23.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 384 |
+
"model.layers.23.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 385 |
+
"model.layers.23.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 386 |
+
"model.layers.23.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 387 |
+
"model.layers.23.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 388 |
+
"model.layers.23.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 389 |
+
"model.layers.23.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 390 |
+
"model.layers.23.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 391 |
+
"model.layers.23.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 392 |
+
"model.layers.23.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 393 |
+
"model.layers.23.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 394 |
+
"model.layers.23.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 395 |
+
"model.layers.23.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 396 |
+
"model.layers.23.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 397 |
+
"model.layers.23.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 398 |
+
"model.layers.23.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 399 |
+
"model.layers.24.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 400 |
+
"model.layers.24.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 401 |
+
"model.layers.24.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 402 |
+
"model.layers.24.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 403 |
+
"model.layers.24.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 404 |
+
"model.layers.24.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 405 |
+
"model.layers.24.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 406 |
+
"model.layers.24.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 407 |
+
"model.layers.24.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 408 |
+
"model.layers.24.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 409 |
+
"model.layers.24.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 410 |
+
"model.layers.24.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 411 |
+
"model.layers.24.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 412 |
+
"model.layers.24.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 413 |
+
"model.layers.24.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 414 |
+
"model.layers.24.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 415 |
+
"model.layers.24.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 416 |
+
"model.layers.24.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 417 |
+
"model.layers.24.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 418 |
+
"model.layers.24.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 419 |
+
"model.layers.24.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 420 |
+
"model.layers.24.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 421 |
+
"model.layers.24.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 422 |
+
"model.layers.25.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 423 |
+
"model.layers.25.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 424 |
+
"model.layers.25.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 425 |
+
"model.layers.25.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 426 |
+
"model.layers.25.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 427 |
+
"model.layers.25.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 428 |
+
"model.layers.25.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 429 |
+
"model.layers.25.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 430 |
+
"model.layers.25.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 431 |
+
"model.layers.25.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 432 |
+
"model.layers.25.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 433 |
+
"model.layers.25.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 434 |
+
"model.layers.25.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 435 |
+
"model.layers.25.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 436 |
+
"model.layers.25.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 437 |
+
"model.layers.25.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 438 |
+
"model.layers.25.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 439 |
+
"model.layers.25.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 440 |
+
"model.layers.25.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 441 |
+
"model.layers.25.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 442 |
+
"model.layers.25.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 443 |
+
"model.layers.25.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 444 |
+
"model.layers.25.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 445 |
+
"model.layers.26.mlp.down_proj.weight": "model-00002-of-00003.safetensors",
|
| 446 |
+
"model.layers.26.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 447 |
+
"model.layers.26.mlp.up_proj.weight": "model-00002-of-00003.safetensors",
|
| 448 |
+
"model.layers.26.post_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 449 |
+
"model.layers.26.pre_attn_norm.weight": "model-00002-of-00003.safetensors",
|
| 450 |
+
"model.layers.26.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 451 |
+
"model.layers.26.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 452 |
+
"model.layers.26.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 453 |
+
"model.layers.26.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 454 |
+
"model.layers.26.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 455 |
+
"model.layers.26.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 456 |
+
"model.layers.26.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 457 |
+
"model.layers.26.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 458 |
+
"model.layers.26.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 459 |
+
"model.layers.26.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 460 |
+
"model.layers.26.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 461 |
+
"model.layers.26.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 462 |
+
"model.layers.26.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 463 |
+
"model.layers.26.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 464 |
+
"model.layers.26.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 465 |
+
"model.layers.26.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 466 |
+
"model.layers.26.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 467 |
+
"model.layers.26.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 468 |
+
"model.layers.27.mlp.down_proj.weight": "model-00003-of-00003.safetensors",
|
| 469 |
+
"model.layers.27.mlp.gate_proj.weight": "model-00002-of-00003.safetensors",
|
| 470 |
+
"model.layers.27.mlp.up_proj.weight": "model-00003-of-00003.safetensors",
|
| 471 |
+
"model.layers.27.post_attn_norm.weight": "model-00003-of-00003.safetensors",
|
| 472 |
+
"model.layers.27.pre_attn_norm.weight": "model-00003-of-00003.safetensors",
|
| 473 |
+
"model.layers.27.self_attn.combine_heads.weight": "model-00002-of-00003.safetensors",
|
| 474 |
+
"model.layers.27.self_attn.compress_mem_kv": "model-00002-of-00003.safetensors",
|
| 475 |
+
"model.layers.27.self_attn.k_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 476 |
+
"model.layers.27.self_attn.k_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 477 |
+
"model.layers.27.self_attn.k_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 478 |
+
"model.layers.27.self_attn.k_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 479 |
+
"model.layers.27.self_attn.k_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 480 |
+
"model.layers.27.self_attn.norm.weight": "model-00002-of-00003.safetensors",
|
| 481 |
+
"model.layers.27.self_attn.rotary_emb.freqs": "model-00002-of-00003.safetensors",
|
| 482 |
+
"model.layers.27.self_attn.to_qkv.bias": "model-00002-of-00003.safetensors",
|
| 483 |
+
"model.layers.27.self_attn.to_qkv.weight": "model-00002-of-00003.safetensors",
|
| 484 |
+
"model.layers.27.self_attn.to_strategy_combine.0.bias": "model-00002-of-00003.safetensors",
|
| 485 |
+
"model.layers.27.self_attn.to_strategy_combine.0.weight": "model-00002-of-00003.safetensors",
|
| 486 |
+
"model.layers.27.self_attn.v_compress.1.bias": "model-00002-of-00003.safetensors",
|
| 487 |
+
"model.layers.27.self_attn.v_compress.1.weight": "model-00002-of-00003.safetensors",
|
| 488 |
+
"model.layers.27.self_attn.v_compress.3.bias": "model-00002-of-00003.safetensors",
|
| 489 |
+
"model.layers.27.self_attn.v_compress.3.weight": "model-00002-of-00003.safetensors",
|
| 490 |
+
"model.layers.27.self_attn.v_intrablock_positions": "model-00002-of-00003.safetensors",
|
| 491 |
+
"model.layers.3.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 492 |
+
"model.layers.3.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 493 |
+
"model.layers.3.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 494 |
+
"model.layers.3.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 495 |
+
"model.layers.3.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 496 |
+
"model.layers.3.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 497 |
+
"model.layers.3.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 498 |
+
"model.layers.3.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 499 |
+
"model.layers.3.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 500 |
+
"model.layers.3.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 501 |
+
"model.layers.3.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 502 |
+
"model.layers.3.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 503 |
+
"model.layers.3.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 504 |
+
"model.layers.3.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 505 |
+
"model.layers.3.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 506 |
+
"model.layers.3.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 507 |
+
"model.layers.3.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 508 |
+
"model.layers.3.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 509 |
+
"model.layers.3.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 510 |
+
"model.layers.3.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 511 |
+
"model.layers.3.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 512 |
+
"model.layers.3.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 513 |
+
"model.layers.3.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 514 |
+
"model.layers.4.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 515 |
+
"model.layers.4.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 516 |
+
"model.layers.4.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 517 |
+
"model.layers.4.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 518 |
+
"model.layers.4.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 519 |
+
"model.layers.4.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 520 |
+
"model.layers.4.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 521 |
+
"model.layers.4.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 522 |
+
"model.layers.4.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 523 |
+
"model.layers.4.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 524 |
+
"model.layers.4.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 525 |
+
"model.layers.4.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 526 |
+
"model.layers.4.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 527 |
+
"model.layers.4.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 528 |
+
"model.layers.4.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 529 |
+
"model.layers.4.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 530 |
+
"model.layers.4.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 531 |
+
"model.layers.4.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 532 |
+
"model.layers.4.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 533 |
+
"model.layers.4.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 534 |
+
"model.layers.4.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 535 |
+
"model.layers.4.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 536 |
+
"model.layers.4.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 537 |
+
"model.layers.5.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 538 |
+
"model.layers.5.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 539 |
+
"model.layers.5.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 540 |
+
"model.layers.5.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 541 |
+
"model.layers.5.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 542 |
+
"model.layers.5.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 543 |
+
"model.layers.5.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 544 |
+
"model.layers.5.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 545 |
+
"model.layers.5.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 546 |
+
"model.layers.5.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 547 |
+
"model.layers.5.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 548 |
+
"model.layers.5.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 549 |
+
"model.layers.5.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 550 |
+
"model.layers.5.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 551 |
+
"model.layers.5.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 552 |
+
"model.layers.5.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 553 |
+
"model.layers.5.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 554 |
+
"model.layers.5.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 555 |
+
"model.layers.5.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 556 |
+
"model.layers.5.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 557 |
+
"model.layers.5.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 558 |
+
"model.layers.5.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 559 |
+
"model.layers.5.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 560 |
+
"model.layers.6.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 561 |
+
"model.layers.6.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 562 |
+
"model.layers.6.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 563 |
+
"model.layers.6.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 564 |
+
"model.layers.6.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 565 |
+
"model.layers.6.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 566 |
+
"model.layers.6.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 567 |
+
"model.layers.6.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 568 |
+
"model.layers.6.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 569 |
+
"model.layers.6.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 570 |
+
"model.layers.6.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 571 |
+
"model.layers.6.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 572 |
+
"model.layers.6.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 573 |
+
"model.layers.6.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 574 |
+
"model.layers.6.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 575 |
+
"model.layers.6.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 576 |
+
"model.layers.6.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 577 |
+
"model.layers.6.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 578 |
+
"model.layers.6.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 579 |
+
"model.layers.6.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 580 |
+
"model.layers.6.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 581 |
+
"model.layers.6.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 582 |
+
"model.layers.6.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 583 |
+
"model.layers.7.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 584 |
+
"model.layers.7.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 585 |
+
"model.layers.7.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 586 |
+
"model.layers.7.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 587 |
+
"model.layers.7.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 588 |
+
"model.layers.7.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 589 |
+
"model.layers.7.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 590 |
+
"model.layers.7.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 591 |
+
"model.layers.7.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 592 |
+
"model.layers.7.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 593 |
+
"model.layers.7.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 594 |
+
"model.layers.7.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 595 |
+
"model.layers.7.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 596 |
+
"model.layers.7.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 597 |
+
"model.layers.7.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 598 |
+
"model.layers.7.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 599 |
+
"model.layers.7.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 600 |
+
"model.layers.7.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 601 |
+
"model.layers.7.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 602 |
+
"model.layers.7.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 603 |
+
"model.layers.7.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 604 |
+
"model.layers.7.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 605 |
+
"model.layers.7.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 606 |
+
"model.layers.8.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 607 |
+
"model.layers.8.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 608 |
+
"model.layers.8.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 609 |
+
"model.layers.8.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 610 |
+
"model.layers.8.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 611 |
+
"model.layers.8.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 612 |
+
"model.layers.8.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 613 |
+
"model.layers.8.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 614 |
+
"model.layers.8.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 615 |
+
"model.layers.8.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 616 |
+
"model.layers.8.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 617 |
+
"model.layers.8.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 618 |
+
"model.layers.8.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 619 |
+
"model.layers.8.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 620 |
+
"model.layers.8.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 621 |
+
"model.layers.8.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 622 |
+
"model.layers.8.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 623 |
+
"model.layers.8.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 624 |
+
"model.layers.8.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 625 |
+
"model.layers.8.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 626 |
+
"model.layers.8.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 627 |
+
"model.layers.8.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 628 |
+
"model.layers.8.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 629 |
+
"model.layers.9.mlp.down_proj.weight": "model-00001-of-00003.safetensors",
|
| 630 |
+
"model.layers.9.mlp.gate_proj.weight": "model-00001-of-00003.safetensors",
|
| 631 |
+
"model.layers.9.mlp.up_proj.weight": "model-00001-of-00003.safetensors",
|
| 632 |
+
"model.layers.9.post_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 633 |
+
"model.layers.9.pre_attn_norm.weight": "model-00001-of-00003.safetensors",
|
| 634 |
+
"model.layers.9.self_attn.combine_heads.weight": "model-00001-of-00003.safetensors",
|
| 635 |
+
"model.layers.9.self_attn.compress_mem_kv": "model-00001-of-00003.safetensors",
|
| 636 |
+
"model.layers.9.self_attn.k_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 637 |
+
"model.layers.9.self_attn.k_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 638 |
+
"model.layers.9.self_attn.k_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 639 |
+
"model.layers.9.self_attn.k_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 640 |
+
"model.layers.9.self_attn.k_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 641 |
+
"model.layers.9.self_attn.norm.weight": "model-00001-of-00003.safetensors",
|
| 642 |
+
"model.layers.9.self_attn.rotary_emb.freqs": "model-00001-of-00003.safetensors",
|
| 643 |
+
"model.layers.9.self_attn.to_qkv.bias": "model-00001-of-00003.safetensors",
|
| 644 |
+
"model.layers.9.self_attn.to_qkv.weight": "model-00001-of-00003.safetensors",
|
| 645 |
+
"model.layers.9.self_attn.to_strategy_combine.0.bias": "model-00001-of-00003.safetensors",
|
| 646 |
+
"model.layers.9.self_attn.to_strategy_combine.0.weight": "model-00001-of-00003.safetensors",
|
| 647 |
+
"model.layers.9.self_attn.v_compress.1.bias": "model-00001-of-00003.safetensors",
|
| 648 |
+
"model.layers.9.self_attn.v_compress.1.weight": "model-00001-of-00003.safetensors",
|
| 649 |
+
"model.layers.9.self_attn.v_compress.3.bias": "model-00001-of-00003.safetensors",
|
| 650 |
+
"model.layers.9.self_attn.v_compress.3.weight": "model-00001-of-00003.safetensors",
|
| 651 |
+
"model.layers.9.self_attn.v_intrablock_positions": "model-00001-of-00003.safetensors",
|
| 652 |
+
"model.norm.weight": "model-00003-of-00003.safetensors"
|
| 653 |
+
}
|
| 654 |
+
}
|
modeling_qwen2nsa.py
ADDED
|
@@ -0,0 +1,346 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
from typing import Optional, Tuple, Dict, Any, List
|
| 6 |
+
|
| 7 |
+
import torch
|
| 8 |
+
import torch.nn as nn
|
| 9 |
+
import torch.nn.functional as F
|
| 10 |
+
from torch import Tensor
|
| 11 |
+
from torch.utils.checkpoint import checkpoint
|
| 12 |
+
|
| 13 |
+
from transformers import (
|
| 14 |
+
PreTrainedModel,
|
| 15 |
+
GenerationMixin,
|
| 16 |
+
AutoConfig,
|
| 17 |
+
AutoModelForCausalLM,
|
| 18 |
+
)
|
| 19 |
+
from transformers.modeling_outputs import CausalLMOutputWithPast
|
| 20 |
+
|
| 21 |
+
try:
|
| 22 |
+
from .configuration_qwen2nsa import Qwen2NsaConfig
|
| 23 |
+
except ImportError:
|
| 24 |
+
from configuration_qwen2nsa import Qwen2NsaConfig
|
| 25 |
+
|
| 26 |
+
from native_sparse_attention_pytorch import SparseAttention
|
| 27 |
+
|
| 28 |
+
class Qwen2RMSNorm(nn.Module):
|
| 29 |
+
def __init__(self, hidden_size: int, eps: float = 1e-6):
|
| 30 |
+
super().__init__()
|
| 31 |
+
self.weight = nn.Parameter(torch.ones(hidden_size))
|
| 32 |
+
self.eps = eps
|
| 33 |
+
|
| 34 |
+
def forward(self, x: Tensor) -> Tensor:
|
| 35 |
+
orig_dtype = x.dtype
|
| 36 |
+
x = x.float()
|
| 37 |
+
var = x.pow(2).mean(-1, keepdim=True)
|
| 38 |
+
x = x * torch.rsqrt(var + self.eps)
|
| 39 |
+
return (self.weight * x).to(orig_dtype)
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
class Qwen2MLP(nn.Module):
|
| 43 |
+
def __init__(self, config):
|
| 44 |
+
super().__init__()
|
| 45 |
+
self.gate_proj = nn.Linear(
|
| 46 |
+
config.hidden_size, config.intermediate_size, bias=False
|
| 47 |
+
)
|
| 48 |
+
self.up_proj = nn.Linear(
|
| 49 |
+
config.hidden_size, config.intermediate_size, bias=False
|
| 50 |
+
)
|
| 51 |
+
self.down_proj = nn.Linear(
|
| 52 |
+
config.intermediate_size, config.hidden_size, bias=False
|
| 53 |
+
)
|
| 54 |
+
self.act = F.silu
|
| 55 |
+
|
| 56 |
+
def forward(self, x):
|
| 57 |
+
return self.down_proj(self.act(self.gate_proj(x)) * self.up_proj(x))
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
class Qwen2DecoderLayer(nn.Module):
|
| 61 |
+
def __init__(self, config: Qwen2NsaConfig, layer_idx: int):
|
| 62 |
+
super().__init__()
|
| 63 |
+
self.self_attn = SparseAttention(
|
| 64 |
+
dim=config.hidden_size,
|
| 65 |
+
dim_head=config.hidden_size // config.num_attention_heads,
|
| 66 |
+
heads=config.num_attention_heads,
|
| 67 |
+
kv_heads=config.num_key_value_heads,
|
| 68 |
+
sliding_window_size=1024,
|
| 69 |
+
compress_block_size=32,
|
| 70 |
+
compress_block_sliding_stride=16,
|
| 71 |
+
selection_block_size=64,
|
| 72 |
+
num_selected_blocks=16,
|
| 73 |
+
causal=True,
|
| 74 |
+
norm=True,
|
| 75 |
+
)
|
| 76 |
+
self.mlp = Qwen2MLP(config)
|
| 77 |
+
self.pre_attn_norm = Qwen2RMSNorm(config.hidden_size, config.rms_norm_eps)
|
| 78 |
+
self.post_attn_norm = Qwen2RMSNorm(config.hidden_size, config.rms_norm_eps)
|
| 79 |
+
|
| 80 |
+
def forward(
|
| 81 |
+
self,
|
| 82 |
+
hidden_states: Tensor,
|
| 83 |
+
attn_mask: Optional[Tensor] = None, # (unused)
|
| 84 |
+
position_embeddings: Optional[Tuple[Tensor, Tensor]] = None,
|
| 85 |
+
*,
|
| 86 |
+
output_attentions: bool = False,
|
| 87 |
+
output_all_states: bool = False,
|
| 88 |
+
return_cache: bool = False,
|
| 89 |
+
):
|
| 90 |
+
residual = hidden_states
|
| 91 |
+
x = self.pre_attn_norm(hidden_states)
|
| 92 |
+
|
| 93 |
+
if return_cache:
|
| 94 |
+
attn_out, cache_obj, att_weights = self.self_attn(x, return_cache=True)
|
| 95 |
+
else:
|
| 96 |
+
attn_out, att_weights = checkpoint(
|
| 97 |
+
lambda y: self.self_attn(y), x, use_reentrant=False
|
| 98 |
+
)
|
| 99 |
+
cache_obj = None
|
| 100 |
+
|
| 101 |
+
post_attn = residual + attn_out
|
| 102 |
+
mlp_out = self.mlp(self.post_attn_norm(post_attn))
|
| 103 |
+
hidden = post_attn + mlp_out
|
| 104 |
+
|
| 105 |
+
extras = None
|
| 106 |
+
if output_all_states:
|
| 107 |
+
extras = dict(
|
| 108 |
+
pre_attn_states=x,
|
| 109 |
+
attn_output=attn_out,
|
| 110 |
+
post_attn_states=post_attn,
|
| 111 |
+
mlp_output=mlp_out,
|
| 112 |
+
)
|
| 113 |
+
|
| 114 |
+
if not output_attentions:
|
| 115 |
+
att_weights = None
|
| 116 |
+
|
| 117 |
+
return hidden, att_weights, extras, cache_obj
|
| 118 |
+
|
| 119 |
+
def forward_inference(
|
| 120 |
+
self,
|
| 121 |
+
hidden_states: Tensor,
|
| 122 |
+
cache: Any,
|
| 123 |
+
*,
|
| 124 |
+
output_attentions: bool = False,
|
| 125 |
+
output_all_states: bool = False,
|
| 126 |
+
):
|
| 127 |
+
residual = hidden_states
|
| 128 |
+
x = self.pre_attn_norm(hidden_states)
|
| 129 |
+
|
| 130 |
+
attn_out, new_cache, att_weights = self.self_attn.forward_inference(
|
| 131 |
+
x, cache, return_cache=True
|
| 132 |
+
)
|
| 133 |
+
|
| 134 |
+
post_attn = residual + attn_out
|
| 135 |
+
mlp_out = self.mlp(self.post_attn_norm(post_attn))
|
| 136 |
+
hidden = post_attn + mlp_out
|
| 137 |
+
|
| 138 |
+
extras = None
|
| 139 |
+
if output_all_states:
|
| 140 |
+
extras = dict(
|
| 141 |
+
pre_attn_states=x,
|
| 142 |
+
attn_output=attn_out,
|
| 143 |
+
post_attn_states=post_attn,
|
| 144 |
+
mlp_output=mlp_out,
|
| 145 |
+
)
|
| 146 |
+
|
| 147 |
+
if not output_attentions:
|
| 148 |
+
att_weights = None
|
| 149 |
+
|
| 150 |
+
return hidden, new_cache, att_weights, extras
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
class Qwen2Model(nn.Module):
|
| 154 |
+
def __init__(self, config: Qwen2NsaConfig):
|
| 155 |
+
super().__init__()
|
| 156 |
+
self.config = config
|
| 157 |
+
self.embed_tokens = nn.Embedding(config.vocab_size, config.hidden_size)
|
| 158 |
+
self.layers = nn.ModuleList(
|
| 159 |
+
Qwen2DecoderLayer(config, i) for i in range(config.num_hidden_layers)
|
| 160 |
+
)
|
| 161 |
+
self.norm = Qwen2RMSNorm(config.hidden_size, config.rms_norm_eps)
|
| 162 |
+
|
| 163 |
+
self.apply(self._init_weights)
|
| 164 |
+
|
| 165 |
+
def _init_weights(self, module: nn.Module):
|
| 166 |
+
if isinstance(module, (nn.Linear, nn.Embedding)):
|
| 167 |
+
module.weight.data.normal_(0.0, self.config.initializer_range)
|
| 168 |
+
if getattr(module, "bias", None) is not None:
|
| 169 |
+
module.bias.data.zero_()
|
| 170 |
+
|
| 171 |
+
# ------------------------------------------------------------------ #
|
| 172 |
+
def forward(
|
| 173 |
+
self,
|
| 174 |
+
input_ids: torch.LongTensor,
|
| 175 |
+
*,
|
| 176 |
+
attention_mask: Optional[Tensor] = None,
|
| 177 |
+
position_ids: Optional[Tensor] = None,
|
| 178 |
+
past_key_values: Optional[List[Any]] = None,
|
| 179 |
+
use_cache: bool = False,
|
| 180 |
+
output_hidden_states: bool = False,
|
| 181 |
+
output_attentions: bool = False,
|
| 182 |
+
output_all_layer_states: bool = False,
|
| 183 |
+
) -> Dict[str, Any]:
|
| 184 |
+
|
| 185 |
+
hidden = self.embed_tokens(input_ids)
|
| 186 |
+
|
| 187 |
+
if past_key_values is None:
|
| 188 |
+
past_key_values = [None] * len(self.layers)
|
| 189 |
+
|
| 190 |
+
next_cache: List[Any] = [] if use_cache else None
|
| 191 |
+
all_hs = [] if output_hidden_states else None
|
| 192 |
+
all_att = [] if output_attentions else None
|
| 193 |
+
all_ex = [] if output_all_layer_states else None
|
| 194 |
+
|
| 195 |
+
for layer, past in zip(self.layers, past_key_values):
|
| 196 |
+
if output_hidden_states:
|
| 197 |
+
all_hs.append(hidden)
|
| 198 |
+
|
| 199 |
+
if use_cache and past is not None:
|
| 200 |
+
hidden, new_cache, att, ex = layer.forward_inference(
|
| 201 |
+
hidden,
|
| 202 |
+
past,
|
| 203 |
+
output_attentions=output_attentions,
|
| 204 |
+
output_all_states=output_all_layer_states,
|
| 205 |
+
)
|
| 206 |
+
else:
|
| 207 |
+
hidden, att, ex, new_cache = layer(
|
| 208 |
+
hidden,
|
| 209 |
+
output_attentions=output_attentions,
|
| 210 |
+
output_all_states=output_all_layer_states,
|
| 211 |
+
return_cache=use_cache,
|
| 212 |
+
)
|
| 213 |
+
|
| 214 |
+
if use_cache:
|
| 215 |
+
next_cache.append(new_cache)
|
| 216 |
+
if output_attentions:
|
| 217 |
+
all_att.append(att)
|
| 218 |
+
if output_all_layer_states:
|
| 219 |
+
all_ex.append(ex)
|
| 220 |
+
|
| 221 |
+
hidden = self.norm(hidden)
|
| 222 |
+
if output_hidden_states:
|
| 223 |
+
all_hs.append(hidden)
|
| 224 |
+
|
| 225 |
+
out = dict(last_hidden_state=hidden)
|
| 226 |
+
if output_hidden_states:
|
| 227 |
+
out["hidden_states"] = tuple(all_hs)
|
| 228 |
+
if output_attentions:
|
| 229 |
+
out["attentions"] = tuple(all_att)
|
| 230 |
+
if output_all_layer_states:
|
| 231 |
+
out["all_layer_states"] = all_ex
|
| 232 |
+
if use_cache:
|
| 233 |
+
out["past_key_values"] = next_cache
|
| 234 |
+
return out
|
| 235 |
+
|
| 236 |
+
class Qwen2NsaForCausalLM(PreTrainedModel, GenerationMixin):
|
| 237 |
+
config_class = Qwen2NsaConfig
|
| 238 |
+
base_model_prefix = "model"
|
| 239 |
+
_tied_weights_keys = ["lm_head.weight"]
|
| 240 |
+
|
| 241 |
+
def __init__(self, config: Qwen2NsaConfig):
|
| 242 |
+
super().__init__(config)
|
| 243 |
+
|
| 244 |
+
self.model = Qwen2Model(config)
|
| 245 |
+
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
|
| 246 |
+
|
| 247 |
+
if config.tie_word_embeddings:
|
| 248 |
+
self.lm_head.weight = self.model.embed_tokens.weight
|
| 249 |
+
|
| 250 |
+
self.post_init()
|
| 251 |
+
|
| 252 |
+
def get_input_embeddings(self):
|
| 253 |
+
return self.model.embed_tokens
|
| 254 |
+
|
| 255 |
+
def set_input_embeddings(self, v):
|
| 256 |
+
self.model.embed_tokens = v
|
| 257 |
+
|
| 258 |
+
def get_output_embeddings(self):
|
| 259 |
+
return self.lm_head
|
| 260 |
+
|
| 261 |
+
def set_output_embeddings(self, v):
|
| 262 |
+
self.lm_head = v
|
| 263 |
+
|
| 264 |
+
def forward(
|
| 265 |
+
self,
|
| 266 |
+
input_ids: torch.LongTensor,
|
| 267 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 268 |
+
position_ids: Optional[torch.Tensor] = None,
|
| 269 |
+
labels: Optional[torch.LongTensor] = None,
|
| 270 |
+
past_key_values: Optional[List[Any]] = None,
|
| 271 |
+
use_cache: Optional[bool] = None,
|
| 272 |
+
output_hidden_states: bool = False,
|
| 273 |
+
output_attentions: bool = False,
|
| 274 |
+
output_all_layer_states: bool = False,
|
| 275 |
+
**kwargs,
|
| 276 |
+
) -> CausalLMOutputWithPast:
|
| 277 |
+
|
| 278 |
+
use_cache = self.config.use_cache if use_cache is None else use_cache
|
| 279 |
+
|
| 280 |
+
model_out = self.model(
|
| 281 |
+
input_ids=input_ids,
|
| 282 |
+
attention_mask=attention_mask,
|
| 283 |
+
position_ids=position_ids,
|
| 284 |
+
past_key_values=past_key_values,
|
| 285 |
+
use_cache=use_cache,
|
| 286 |
+
output_hidden_states=output_hidden_states,
|
| 287 |
+
output_attentions=output_attentions,
|
| 288 |
+
output_all_layer_states=output_all_layer_states,
|
| 289 |
+
)
|
| 290 |
+
|
| 291 |
+
logits = self.lm_head(model_out["last_hidden_state"])
|
| 292 |
+
|
| 293 |
+
loss = None
|
| 294 |
+
if labels is not None:
|
| 295 |
+
pad = self.config.pad_token_id
|
| 296 |
+
if pad is not None:
|
| 297 |
+
labels = labels.masked_fill(labels == pad, -100)
|
| 298 |
+
loss = F.cross_entropy(
|
| 299 |
+
logits[..., :-1, :].contiguous().view(-1, logits.size(-1)),
|
| 300 |
+
labels[..., 1:].contiguous().view(-1),
|
| 301 |
+
)
|
| 302 |
+
|
| 303 |
+
return CausalLMOutputWithPast(
|
| 304 |
+
loss=loss,
|
| 305 |
+
logits=logits,
|
| 306 |
+
past_key_values=model_out.get("past_key_values"),
|
| 307 |
+
hidden_states=model_out.get("hidden_states"),
|
| 308 |
+
attentions=model_out.get("attentions"),
|
| 309 |
+
)
|
| 310 |
+
|
| 311 |
+
def _reorder_cache(self, past_key_values: list, beam_idx: torch.LongTensor) -> list:
|
| 312 |
+
new = []
|
| 313 |
+
for layer_cache in past_key_values:
|
| 314 |
+
(kv, (ckv, rkv)) = layer_cache
|
| 315 |
+
k, v = kv
|
| 316 |
+
ck, cv = ckv
|
| 317 |
+
rk, rv = rkv
|
| 318 |
+
pick = lambda t: t.index_select(0, beam_idx) if t.numel() else t
|
| 319 |
+
new.append(
|
| 320 |
+
((pick(k), pick(v)), ((pick(ck), pick(cv)), (pick(rk), pick(rv))))
|
| 321 |
+
)
|
| 322 |
+
return new
|
| 323 |
+
|
| 324 |
+
def prepare_inputs_for_generation(
|
| 325 |
+
self,
|
| 326 |
+
input_ids: torch.LongTensor,
|
| 327 |
+
past_key_values: Optional[List[Any]] = None,
|
| 328 |
+
attention_mask: Optional[torch.LongTensor] = None,
|
| 329 |
+
**kwargs,
|
| 330 |
+
):
|
| 331 |
+
if past_key_values is not None:
|
| 332 |
+
input_ids = input_ids[:, -1:]
|
| 333 |
+
if attention_mask is not None:
|
| 334 |
+
attention_mask = attention_mask[:, -1:]
|
| 335 |
+
return dict(
|
| 336 |
+
input_ids=input_ids,
|
| 337 |
+
past_key_values=past_key_values,
|
| 338 |
+
attention_mask=attention_mask,
|
| 339 |
+
use_cache=True,
|
| 340 |
+
)
|
| 341 |
+
|
| 342 |
+
|
| 343 |
+
AutoConfig.register(Qwen2NsaConfig.model_type, Qwen2NsaConfig)
|
| 344 |
+
AutoModelForCausalLM.register(Qwen2NsaConfig, Qwen2NsaForCausalLM)
|
| 345 |
+
|
| 346 |
+
__all__ = ["Qwen2NsaConfig", "Qwen2NsaForCausalLM"]
|