Upload folder using huggingface_hub
Browse files- .ipynb_checkpoints/architecture-checkpoint.py +238 -0
- .ipynb_checkpoints/config-checkpoint.json +36 -0
- architecture.py +238 -0
- config.json +36 -0
- generation_config.json +9 -0
- merges.txt +0 -0
- model-00001-of-00006.safetensors +3 -0
- model-00002-of-00006.safetensors +3 -0
- model-00003-of-00006.safetensors +3 -0
- model-00004-of-00006.safetensors +3 -0
- model-00005-of-00006.safetensors +3 -0
- model-00006-of-00006.safetensors +3 -0
- model.safetensors.index.json +297 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +782 -0
- vocab.json +0 -0
.ipynb_checkpoints/architecture-checkpoint.py
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- START OF FILE architectureV3.py ---
|
| 2 |
+
|
| 3 |
+
import torch
|
| 4 |
+
import torch.nn as nn
|
| 5 |
+
import torch.nn.functional as F
|
| 6 |
+
from transformers import Phi3Config, Phi3ForCausalLM
|
| 7 |
+
from transformers.modeling_outputs import CausalLMOutputWithPast
|
| 8 |
+
from typing import Optional, Dict, Tuple
|
| 9 |
+
from dataclasses import dataclass
|
| 10 |
+
|
| 11 |
+
@dataclass
|
| 12 |
+
class CausalLMOutputWithLTM(CausalLMOutputWithPast):
|
| 13 |
+
loss: Optional[torch.FloatTensor] = None
|
| 14 |
+
logits: torch.FloatTensor = None
|
| 15 |
+
past_key_values: Optional[Tuple[Tuple[torch.FloatTensor]]] = None
|
| 16 |
+
hidden_states: Optional[Tuple[torch.FloatTensor]] = None
|
| 17 |
+
attentions: Optional[Tuple[torch.FloatTensor]] = None
|
| 18 |
+
ltm_state: Optional[torch.Tensor] = None # The returned LTM state
|
| 19 |
+
|
| 20 |
+
# --- BUILDING BLOCK 1: Hierarchical VectorMemoryHead (Stateless) ---
|
| 21 |
+
class VectorMemoryHead(nn.Module):
|
| 22 |
+
def __init__(self, hidden_dim: int, num_memory_slots: int, num_heads: int, ff_dim: int,
|
| 23 |
+
num_long_term_memory_slots: int = 0,
|
| 24 |
+
device=None, dtype=None):
|
| 25 |
+
super().__init__()
|
| 26 |
+
self.hidden_dim = hidden_dim
|
| 27 |
+
self.num_memory_slots = num_memory_slots
|
| 28 |
+
self.num_long_term_memory_slots = num_long_term_memory_slots
|
| 29 |
+
self.use_long_term_memory = self.num_long_term_memory_slots > 0
|
| 30 |
+
|
| 31 |
+
encoder_layer = nn.TransformerEncoderLayer(
|
| 32 |
+
d_model=hidden_dim, nhead=num_heads, dim_feedforward=ff_dim, dropout=0.1, batch_first=True,
|
| 33 |
+
device=device, dtype=dtype)
|
| 34 |
+
self.encoder = nn.TransformerEncoder(encoder_layer, num_layers=1)
|
| 35 |
+
self.memory_queries = nn.Parameter(torch.randn(1, num_memory_slots, hidden_dim, device=device, dtype=dtype))
|
| 36 |
+
self.memory_attention = nn.MultiheadAttention(
|
| 37 |
+
embed_dim=hidden_dim, num_heads=num_heads, dropout=0.1, batch_first=True, device=device, dtype=dtype)
|
| 38 |
+
self.memory_layernorm = nn.LayerNorm(hidden_dim, device=device, dtype=dtype)
|
| 39 |
+
self.decoder_attention = nn.MultiheadAttention(
|
| 40 |
+
embed_dim=hidden_dim, num_heads=num_heads, dropout=0.1, batch_first=True, device=device, dtype=dtype)
|
| 41 |
+
self.decoder_layernorm = nn.LayerNorm(hidden_dim, device=device, dtype=dtype)
|
| 42 |
+
self.decoder_ffn = nn.Sequential(
|
| 43 |
+
nn.Linear(hidden_dim, ff_dim, device=device, dtype=dtype), nn.ReLU(),
|
| 44 |
+
nn.Linear(ff_dim, hidden_dim, device=device, dtype=dtype))
|
| 45 |
+
|
| 46 |
+
if self.use_long_term_memory:
|
| 47 |
+
self.memory_update_gate = nn.Sequential(
|
| 48 |
+
nn.Linear(hidden_dim, hidden_dim, device=device, dtype=dtype), nn.Sigmoid())
|
| 49 |
+
self.ltm_retrieval_attention = nn.MultiheadAttention(
|
| 50 |
+
embed_dim=hidden_dim, num_heads=num_heads, dropout=0.1, batch_first=True, device=device, dtype=dtype)
|
| 51 |
+
|
| 52 |
+
def forward(self, memory_input_sequence: torch.Tensor,
|
| 53 |
+
long_term_memory: Optional[torch.Tensor] = None) -> Tuple[torch.Tensor, torch.Tensor, Optional[torch.Tensor]]:
|
| 54 |
+
batch_size = memory_input_sequence.shape[0]
|
| 55 |
+
new_ltm_state = long_term_memory
|
| 56 |
+
queries = self.memory_queries.expand(batch_size, -1, -1)
|
| 57 |
+
encoded_vectors = self.encoder(memory_input_sequence)
|
| 58 |
+
compressed_memory, _ = self.memory_attention(query=queries, key=encoded_vectors, value=encoded_vectors)
|
| 59 |
+
compressed_memory = self.memory_layernorm(compressed_memory + queries)
|
| 60 |
+
final_memory_context = compressed_memory
|
| 61 |
+
|
| 62 |
+
if self.use_long_term_memory and long_term_memory is not None:
|
| 63 |
+
retrieved_ltm, _ = self.ltm_retrieval_attention(
|
| 64 |
+
query=compressed_memory, key=long_term_memory, value=long_term_memory)
|
| 65 |
+
l1_summary = compressed_memory.mean(dim=1, keepdim=True)
|
| 66 |
+
update_gate = self.memory_update_gate(l1_summary)
|
| 67 |
+
new_ltm_state = (update_gate * l1_summary) + ((1 - update_gate) * long_term_memory)
|
| 68 |
+
final_memory_context = final_memory_context + retrieved_ltm
|
| 69 |
+
|
| 70 |
+
reconstructed, _ = self.decoder_attention(query=encoded_vectors, key=final_memory_context, value=final_memory_context)
|
| 71 |
+
reconstructed_vectors = self.decoder_layernorm(reconstructed + encoded_vectors)
|
| 72 |
+
reconstructed_vectors = self.decoder_ffn(reconstructed_vectors)
|
| 73 |
+
return compressed_memory, reconstructed_vectors, new_ltm_state
|
| 74 |
+
|
| 75 |
+
# --- BUILDING BLOCK 2: ReflectiveMemoryLayer ---
|
| 76 |
+
class ReflectiveMemoryLayer(nn.Module):
|
| 77 |
+
def __init__(self, original_layer: nn.Linear, global_input_dim: int,
|
| 78 |
+
memory_dim: int, num_memory_slots: int, memory_num_heads: int,
|
| 79 |
+
global_state_storage: Dict):
|
| 80 |
+
super().__init__()
|
| 81 |
+
self.input_dim, self.output_dim = original_layer.in_features, original_layer.out_features
|
| 82 |
+
self.memory_dim, self.global_state_storage = memory_dim, global_state_storage
|
| 83 |
+
self.linear = original_layer # Keep the original linear layer frozen
|
| 84 |
+
self.refinement_passes: int = 2
|
| 85 |
+
device, dtype = self.linear.weight.device, self.linear.weight.dtype
|
| 86 |
+
|
| 87 |
+
self.local_state_proj = nn.Linear(self.input_dim, memory_dim, device=device, dtype=dtype)
|
| 88 |
+
self.global_state_proj = nn.Linear(global_input_dim, memory_dim, device=device, dtype=dtype)
|
| 89 |
+
self.memory_head = VectorMemoryHead(
|
| 90 |
+
hidden_dim=memory_dim, num_memory_slots=num_memory_slots, num_heads=memory_num_heads,
|
| 91 |
+
ff_dim=memory_dim * 2, num_long_term_memory_slots=32, device=device, dtype=dtype)
|
| 92 |
+
self.thought_critique_attention = nn.MultiheadAttention(
|
| 93 |
+
embed_dim=memory_dim, num_heads=memory_num_heads, dropout=0.1, batch_first=True, device=device, dtype=dtype)
|
| 94 |
+
self.thought_layernorm = nn.LayerNorm(memory_dim, device=device, dtype=dtype)
|
| 95 |
+
self.correction_head = nn.Linear(memory_dim, 2 * self.output_dim, device=device, dtype=dtype)
|
| 96 |
+
|
| 97 |
+
self.last_corrected_activation, self.last_additive_correction = None, None
|
| 98 |
+
self.last_memory_input, self.last_reconstructed_from_memory = None, None
|
| 99 |
+
|
| 100 |
+
def forward(self, x: torch.Tensor):
|
| 101 |
+
base_output = self.linear(x)
|
| 102 |
+
if 'embeds' not in self.global_state_storage:
|
| 103 |
+
return base_output
|
| 104 |
+
|
| 105 |
+
global_embeds = self.global_state_storage['embeds']
|
| 106 |
+
if global_embeds.shape[1] != x.shape[1]:
|
| 107 |
+
global_embeds = global_embeds[:, -x.shape[1]:, :]
|
| 108 |
+
B, S, _ = x.shape
|
| 109 |
+
|
| 110 |
+
# CRITICAL FIX: Always detach LTM state to prevent backward through previous graphs
|
| 111 |
+
ltm_state = self.global_state_storage.get('ltm', None)
|
| 112 |
+
if ltm_state is not None:
|
| 113 |
+
ltm_state = ltm_state.detach()
|
| 114 |
+
|
| 115 |
+
proj_local = self.local_state_proj(x)
|
| 116 |
+
proj_global = self.global_state_proj(global_embeds)
|
| 117 |
+
memory_input = torch.stack([proj_global, proj_local], dim=2)
|
| 118 |
+
memory_input_flat = memory_input.view(B * S, 2, self.memory_dim)
|
| 119 |
+
|
| 120 |
+
# *** FIX: Expand LTM state to match the flattened token dimension (B*S) ***
|
| 121 |
+
ltm_state_expanded = None
|
| 122 |
+
if ltm_state is not None:
|
| 123 |
+
ltm_state_expanded = ltm_state.repeat_interleave(S, dim=0)
|
| 124 |
+
|
| 125 |
+
compressed_mem_flat, recon_flat, new_ltm_state_expanded = self.memory_head(memory_input_flat, ltm_state_expanded)
|
| 126 |
+
|
| 127 |
+
# *** FIX: Condense updated LTM state back to batch dimension B ***
|
| 128 |
+
if new_ltm_state_expanded is not None:
|
| 129 |
+
num_ltm_slots = new_ltm_state_expanded.shape[1]
|
| 130 |
+
new_ltm_condensed = new_ltm_state_expanded.view(B, S, num_ltm_slots, self.memory_dim).mean(dim=1)
|
| 131 |
+
# CRITICAL FIX: Always detach when storing in global state
|
| 132 |
+
self.global_state_storage['ltm'] = new_ltm_condensed.detach()
|
| 133 |
+
|
| 134 |
+
initial_thought = compressed_mem_flat.mean(dim=1).view(B, S, self.memory_dim)
|
| 135 |
+
current_thought = initial_thought
|
| 136 |
+
if not self.training and self.refinement_passes > 0:
|
| 137 |
+
with torch.no_grad():
|
| 138 |
+
for _ in range(self.refinement_passes):
|
| 139 |
+
current_thought_flat = current_thought.view(B * S, 1, self.memory_dim)
|
| 140 |
+
internal_ref, _ = self.memory_head.decoder_attention(
|
| 141 |
+
query=current_thought_flat, key=compressed_mem_flat, value=compressed_mem_flat)
|
| 142 |
+
external_crit, _ = self.thought_critique_attention(
|
| 143 |
+
query=current_thought_flat, key=memory_input_flat, value=memory_input_flat)
|
| 144 |
+
refined_thought = current_thought + internal_ref.view(B,S,-1) + external_crit.view(B,S,-1)
|
| 145 |
+
current_thought = self.thought_layernorm(refined_thought)
|
| 146 |
+
|
| 147 |
+
thought_for_correction = current_thought if not self.training else initial_thought
|
| 148 |
+
raw_correction = self.correction_head(thought_for_correction)
|
| 149 |
+
gate, value = torch.chunk(raw_correction, 2, dim=-1)
|
| 150 |
+
final_activation = base_output * torch.sigmoid(gate.to(x.dtype)) + value.to(x.dtype)
|
| 151 |
+
|
| 152 |
+
if self.training:
|
| 153 |
+
# CRITICAL FIX: Detach tensors stored for debugging/analysis
|
| 154 |
+
self.last_corrected_activation = final_activation.detach()
|
| 155 |
+
self.last_additive_correction = value.detach()
|
| 156 |
+
self.last_memory_input = memory_input.detach()
|
| 157 |
+
self.last_reconstructed_from_memory = recon_flat.view(B, S, 2, self.memory_dim).detach()
|
| 158 |
+
return final_activation
|
| 159 |
+
|
| 160 |
+
# --- BUILDING BLOCK 3: The Full Custom Model with State Management ---
|
| 161 |
+
class Phi3WithReflectiveMemoryForCausalLM(Phi3ForCausalLM):
|
| 162 |
+
def __init__(self, config):
|
| 163 |
+
super().__init__(config)
|
| 164 |
+
self.global_state_storage = {}
|
| 165 |
+
self.target_layer_path = "model.layers.15.mlp.gate_up_proj"
|
| 166 |
+
self.memory_dim, self.num_long_term_memory_slots = 128, 32
|
| 167 |
+
|
| 168 |
+
# CRITICAL FIX: Ensure embeddings are detached when stored
|
| 169 |
+
def embedding_hook(module, input, output):
|
| 170 |
+
self.global_state_storage['embeds'] = output.detach()
|
| 171 |
+
|
| 172 |
+
self.model.embed_tokens.register_forward_hook(embedding_hook)
|
| 173 |
+
|
| 174 |
+
try:
|
| 175 |
+
original_layer = self.get_submodule(self.target_layer_path)
|
| 176 |
+
custom_layer = ReflectiveMemoryLayer(
|
| 177 |
+
original_layer=original_layer, global_input_dim=config.hidden_size,
|
| 178 |
+
memory_dim=self.memory_dim, num_memory_slots=16, memory_num_heads=4,
|
| 179 |
+
global_state_storage=self.global_state_storage)
|
| 180 |
+
parent_path = ".".join(self.target_layer_path.split('.')[:-1])
|
| 181 |
+
setattr(self.get_submodule(parent_path), self.target_layer_path.split('.')[-1], custom_layer)
|
| 182 |
+
print(f"Successfully replaced '{self.target_layer_path}' with ReflectiveMemoryLayer.")
|
| 183 |
+
except AttributeError:
|
| 184 |
+
print(f"Could not find target layer '{self.target_layer_path}'. Model remains unmodified.")
|
| 185 |
+
|
| 186 |
+
def _init_ltm_state(self, batch_size, device, dtype):
|
| 187 |
+
# *** FIX: Initialize LTM state per item in the batch (no hardcoded hack) ***
|
| 188 |
+
return torch.zeros(
|
| 189 |
+
batch_size, self.num_long_term_memory_slots, self.memory_dim, device=device, dtype=dtype)
|
| 190 |
+
|
| 191 |
+
def forward(self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = None,
|
| 192 |
+
position_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[list[torch.FloatTensor]] = None,
|
| 193 |
+
inputs_embeds: Optional[torch.FloatTensor] = None, labels: Optional[torch.LongTensor] = None,
|
| 194 |
+
use_cache: Optional[bool] = None, output_attentions: Optional[bool] = None,
|
| 195 |
+
output_hidden_states: Optional[bool] = None, return_dict: Optional[bool] = None,
|
| 196 |
+
ltm_state: Optional[torch.Tensor] = None):
|
| 197 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 198 |
+
|
| 199 |
+
# CRITICAL FIX: Don't clear global state storage completely, just reset embeds
|
| 200 |
+
# This prevents losing LTM state continuity
|
| 201 |
+
if 'embeds' in self.global_state_storage:
|
| 202 |
+
del self.global_state_storage['embeds']
|
| 203 |
+
|
| 204 |
+
# *** FIX: Initialize LTM state if not provided, for both training and first step of inference ***
|
| 205 |
+
if ltm_state is None:
|
| 206 |
+
batch_size = input_ids.shape[0] if input_ids is not None else inputs_embeds.shape[0]
|
| 207 |
+
ltm_state = self._init_ltm_state(batch_size, self.device, self.dtype)
|
| 208 |
+
|
| 209 |
+
# CRITICAL FIX: Ensure LTM state is detached when stored
|
| 210 |
+
self.global_state_storage['ltm'] = ltm_state.detach() if ltm_state is not None else None
|
| 211 |
+
|
| 212 |
+
outputs = self.model(
|
| 213 |
+
input_ids=input_ids, attention_mask=attention_mask, position_ids=position_ids,
|
| 214 |
+
past_key_values=past_key_values, inputs_embeds=inputs_embeds, use_cache=use_cache,
|
| 215 |
+
output_attentions=output_attentions, output_hidden_states=output_hidden_states, return_dict=return_dict)
|
| 216 |
+
|
| 217 |
+
hidden_states = outputs[0]
|
| 218 |
+
logits = self.lm_head(hidden_states).float()
|
| 219 |
+
|
| 220 |
+
loss = None
|
| 221 |
+
if labels is not None:
|
| 222 |
+
loss_fct = nn.CrossEntropyLoss()
|
| 223 |
+
loss = loss_fct(logits[..., :-1, :].contiguous().view(-1, self.config.vocab_size),
|
| 224 |
+
labels[..., 1:].contiguous().view(-1))
|
| 225 |
+
# Note: Auxiliary losses from main.py are calculated outside the model forward pass.
|
| 226 |
+
|
| 227 |
+
# CRITICAL FIX: Ensure returned LTM state is detached
|
| 228 |
+
new_ltm_state = self.global_state_storage.get('ltm', None)
|
| 229 |
+
if new_ltm_state is not None:
|
| 230 |
+
new_ltm_state = new_ltm_state.detach()
|
| 231 |
+
|
| 232 |
+
if not return_dict:
|
| 233 |
+
output = (logits,) + outputs[1:] + (new_ltm_state,)
|
| 234 |
+
return (loss,) + output if loss is not None else output
|
| 235 |
+
|
| 236 |
+
return CausalLMOutputWithLTM(
|
| 237 |
+
loss=loss, logits=logits, past_key_values=outputs.past_key_values,
|
| 238 |
+
hidden_states=outputs.hidden_states, attentions=outputs.attentions, ltm_state=new_ltm_state)
|
.ipynb_checkpoints/config-checkpoint.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "./phi-4-abliterated",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Phi3ForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"auto_map": {
|
| 9 |
+
"AutoModelForCausalLM": "architecture.Phi3WithVectorMemoryForCausalLM"
|
| 10 |
+
},
|
| 11 |
+
"bos_token_id": 100257,
|
| 12 |
+
"embd_pdrop": 0.0,
|
| 13 |
+
"eos_token_id": 100257,
|
| 14 |
+
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 5120,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 17920,
|
| 18 |
+
"max_position_embeddings": 16384,
|
| 19 |
+
"model_type": "phi3",
|
| 20 |
+
"num_attention_heads": 40,
|
| 21 |
+
"num_hidden_layers": 40,
|
| 22 |
+
"num_key_value_heads": 10,
|
| 23 |
+
"original_max_position_embeddings": 16384,
|
| 24 |
+
"pad_token_id": 100257,
|
| 25 |
+
"partial_rotary_factor": 1.0,
|
| 26 |
+
"resid_pdrop": 0.0,
|
| 27 |
+
"rms_norm_eps": 1e-05,
|
| 28 |
+
"rope_scaling": null,
|
| 29 |
+
"rope_theta": 250000,
|
| 30 |
+
"sliding_window": null,
|
| 31 |
+
"tie_word_embeddings": false,
|
| 32 |
+
"torch_dtype": "bfloat16",
|
| 33 |
+
"transformers_version": "4.49.0",
|
| 34 |
+
"use_cache": true,
|
| 35 |
+
"vocab_size": 100352
|
| 36 |
+
}
|
architecture.py
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- START OF FILE architectureV3.py ---
|
| 2 |
+
|
| 3 |
+
import torch
|
| 4 |
+
import torch.nn as nn
|
| 5 |
+
import torch.nn.functional as F
|
| 6 |
+
from transformers import Phi3Config, Phi3ForCausalLM
|
| 7 |
+
from transformers.modeling_outputs import CausalLMOutputWithPast
|
| 8 |
+
from typing import Optional, Dict, Tuple
|
| 9 |
+
from dataclasses import dataclass
|
| 10 |
+
|
| 11 |
+
@dataclass
|
| 12 |
+
class CausalLMOutputWithLTM(CausalLMOutputWithPast):
|
| 13 |
+
loss: Optional[torch.FloatTensor] = None
|
| 14 |
+
logits: torch.FloatTensor = None
|
| 15 |
+
past_key_values: Optional[Tuple[Tuple[torch.FloatTensor]]] = None
|
| 16 |
+
hidden_states: Optional[Tuple[torch.FloatTensor]] = None
|
| 17 |
+
attentions: Optional[Tuple[torch.FloatTensor]] = None
|
| 18 |
+
ltm_state: Optional[torch.Tensor] = None # The returned LTM state
|
| 19 |
+
|
| 20 |
+
# --- BUILDING BLOCK 1: Hierarchical VectorMemoryHead (Stateless) ---
|
| 21 |
+
class VectorMemoryHead(nn.Module):
|
| 22 |
+
def __init__(self, hidden_dim: int, num_memory_slots: int, num_heads: int, ff_dim: int,
|
| 23 |
+
num_long_term_memory_slots: int = 0,
|
| 24 |
+
device=None, dtype=None):
|
| 25 |
+
super().__init__()
|
| 26 |
+
self.hidden_dim = hidden_dim
|
| 27 |
+
self.num_memory_slots = num_memory_slots
|
| 28 |
+
self.num_long_term_memory_slots = num_long_term_memory_slots
|
| 29 |
+
self.use_long_term_memory = self.num_long_term_memory_slots > 0
|
| 30 |
+
|
| 31 |
+
encoder_layer = nn.TransformerEncoderLayer(
|
| 32 |
+
d_model=hidden_dim, nhead=num_heads, dim_feedforward=ff_dim, dropout=0.1, batch_first=True,
|
| 33 |
+
device=device, dtype=dtype)
|
| 34 |
+
self.encoder = nn.TransformerEncoder(encoder_layer, num_layers=1)
|
| 35 |
+
self.memory_queries = nn.Parameter(torch.randn(1, num_memory_slots, hidden_dim, device=device, dtype=dtype))
|
| 36 |
+
self.memory_attention = nn.MultiheadAttention(
|
| 37 |
+
embed_dim=hidden_dim, num_heads=num_heads, dropout=0.1, batch_first=True, device=device, dtype=dtype)
|
| 38 |
+
self.memory_layernorm = nn.LayerNorm(hidden_dim, device=device, dtype=dtype)
|
| 39 |
+
self.decoder_attention = nn.MultiheadAttention(
|
| 40 |
+
embed_dim=hidden_dim, num_heads=num_heads, dropout=0.1, batch_first=True, device=device, dtype=dtype)
|
| 41 |
+
self.decoder_layernorm = nn.LayerNorm(hidden_dim, device=device, dtype=dtype)
|
| 42 |
+
self.decoder_ffn = nn.Sequential(
|
| 43 |
+
nn.Linear(hidden_dim, ff_dim, device=device, dtype=dtype), nn.ReLU(),
|
| 44 |
+
nn.Linear(ff_dim, hidden_dim, device=device, dtype=dtype))
|
| 45 |
+
|
| 46 |
+
if self.use_long_term_memory:
|
| 47 |
+
self.memory_update_gate = nn.Sequential(
|
| 48 |
+
nn.Linear(hidden_dim, hidden_dim, device=device, dtype=dtype), nn.Sigmoid())
|
| 49 |
+
self.ltm_retrieval_attention = nn.MultiheadAttention(
|
| 50 |
+
embed_dim=hidden_dim, num_heads=num_heads, dropout=0.1, batch_first=True, device=device, dtype=dtype)
|
| 51 |
+
|
| 52 |
+
def forward(self, memory_input_sequence: torch.Tensor,
|
| 53 |
+
long_term_memory: Optional[torch.Tensor] = None) -> Tuple[torch.Tensor, torch.Tensor, Optional[torch.Tensor]]:
|
| 54 |
+
batch_size = memory_input_sequence.shape[0]
|
| 55 |
+
new_ltm_state = long_term_memory
|
| 56 |
+
queries = self.memory_queries.expand(batch_size, -1, -1)
|
| 57 |
+
encoded_vectors = self.encoder(memory_input_sequence)
|
| 58 |
+
compressed_memory, _ = self.memory_attention(query=queries, key=encoded_vectors, value=encoded_vectors)
|
| 59 |
+
compressed_memory = self.memory_layernorm(compressed_memory + queries)
|
| 60 |
+
final_memory_context = compressed_memory
|
| 61 |
+
|
| 62 |
+
if self.use_long_term_memory and long_term_memory is not None:
|
| 63 |
+
retrieved_ltm, _ = self.ltm_retrieval_attention(
|
| 64 |
+
query=compressed_memory, key=long_term_memory, value=long_term_memory)
|
| 65 |
+
l1_summary = compressed_memory.mean(dim=1, keepdim=True)
|
| 66 |
+
update_gate = self.memory_update_gate(l1_summary)
|
| 67 |
+
new_ltm_state = (update_gate * l1_summary) + ((1 - update_gate) * long_term_memory)
|
| 68 |
+
final_memory_context = final_memory_context + retrieved_ltm
|
| 69 |
+
|
| 70 |
+
reconstructed, _ = self.decoder_attention(query=encoded_vectors, key=final_memory_context, value=final_memory_context)
|
| 71 |
+
reconstructed_vectors = self.decoder_layernorm(reconstructed + encoded_vectors)
|
| 72 |
+
reconstructed_vectors = self.decoder_ffn(reconstructed_vectors)
|
| 73 |
+
return compressed_memory, reconstructed_vectors, new_ltm_state
|
| 74 |
+
|
| 75 |
+
# --- BUILDING BLOCK 2: ReflectiveMemoryLayer ---
|
| 76 |
+
class ReflectiveMemoryLayer(nn.Module):
|
| 77 |
+
def __init__(self, original_layer: nn.Linear, global_input_dim: int,
|
| 78 |
+
memory_dim: int, num_memory_slots: int, memory_num_heads: int,
|
| 79 |
+
global_state_storage: Dict):
|
| 80 |
+
super().__init__()
|
| 81 |
+
self.input_dim, self.output_dim = original_layer.in_features, original_layer.out_features
|
| 82 |
+
self.memory_dim, self.global_state_storage = memory_dim, global_state_storage
|
| 83 |
+
self.linear = original_layer # Keep the original linear layer frozen
|
| 84 |
+
self.refinement_passes: int = 2
|
| 85 |
+
device, dtype = self.linear.weight.device, self.linear.weight.dtype
|
| 86 |
+
|
| 87 |
+
self.local_state_proj = nn.Linear(self.input_dim, memory_dim, device=device, dtype=dtype)
|
| 88 |
+
self.global_state_proj = nn.Linear(global_input_dim, memory_dim, device=device, dtype=dtype)
|
| 89 |
+
self.memory_head = VectorMemoryHead(
|
| 90 |
+
hidden_dim=memory_dim, num_memory_slots=num_memory_slots, num_heads=memory_num_heads,
|
| 91 |
+
ff_dim=memory_dim * 2, num_long_term_memory_slots=32, device=device, dtype=dtype)
|
| 92 |
+
self.thought_critique_attention = nn.MultiheadAttention(
|
| 93 |
+
embed_dim=memory_dim, num_heads=memory_num_heads, dropout=0.1, batch_first=True, device=device, dtype=dtype)
|
| 94 |
+
self.thought_layernorm = nn.LayerNorm(memory_dim, device=device, dtype=dtype)
|
| 95 |
+
self.correction_head = nn.Linear(memory_dim, 2 * self.output_dim, device=device, dtype=dtype)
|
| 96 |
+
|
| 97 |
+
self.last_corrected_activation, self.last_additive_correction = None, None
|
| 98 |
+
self.last_memory_input, self.last_reconstructed_from_memory = None, None
|
| 99 |
+
|
| 100 |
+
def forward(self, x: torch.Tensor):
|
| 101 |
+
base_output = self.linear(x)
|
| 102 |
+
if 'embeds' not in self.global_state_storage:
|
| 103 |
+
return base_output
|
| 104 |
+
|
| 105 |
+
global_embeds = self.global_state_storage['embeds']
|
| 106 |
+
if global_embeds.shape[1] != x.shape[1]:
|
| 107 |
+
global_embeds = global_embeds[:, -x.shape[1]:, :]
|
| 108 |
+
B, S, _ = x.shape
|
| 109 |
+
|
| 110 |
+
# CRITICAL FIX: Always detach LTM state to prevent backward through previous graphs
|
| 111 |
+
ltm_state = self.global_state_storage.get('ltm', None)
|
| 112 |
+
if ltm_state is not None:
|
| 113 |
+
ltm_state = ltm_state.detach()
|
| 114 |
+
|
| 115 |
+
proj_local = self.local_state_proj(x)
|
| 116 |
+
proj_global = self.global_state_proj(global_embeds)
|
| 117 |
+
memory_input = torch.stack([proj_global, proj_local], dim=2)
|
| 118 |
+
memory_input_flat = memory_input.view(B * S, 2, self.memory_dim)
|
| 119 |
+
|
| 120 |
+
# *** FIX: Expand LTM state to match the flattened token dimension (B*S) ***
|
| 121 |
+
ltm_state_expanded = None
|
| 122 |
+
if ltm_state is not None:
|
| 123 |
+
ltm_state_expanded = ltm_state.repeat_interleave(S, dim=0)
|
| 124 |
+
|
| 125 |
+
compressed_mem_flat, recon_flat, new_ltm_state_expanded = self.memory_head(memory_input_flat, ltm_state_expanded)
|
| 126 |
+
|
| 127 |
+
# *** FIX: Condense updated LTM state back to batch dimension B ***
|
| 128 |
+
if new_ltm_state_expanded is not None:
|
| 129 |
+
num_ltm_slots = new_ltm_state_expanded.shape[1]
|
| 130 |
+
new_ltm_condensed = new_ltm_state_expanded.view(B, S, num_ltm_slots, self.memory_dim).mean(dim=1)
|
| 131 |
+
# CRITICAL FIX: Always detach when storing in global state
|
| 132 |
+
self.global_state_storage['ltm'] = new_ltm_condensed.detach()
|
| 133 |
+
|
| 134 |
+
initial_thought = compressed_mem_flat.mean(dim=1).view(B, S, self.memory_dim)
|
| 135 |
+
current_thought = initial_thought
|
| 136 |
+
if not self.training and self.refinement_passes > 0:
|
| 137 |
+
with torch.no_grad():
|
| 138 |
+
for _ in range(self.refinement_passes):
|
| 139 |
+
current_thought_flat = current_thought.view(B * S, 1, self.memory_dim)
|
| 140 |
+
internal_ref, _ = self.memory_head.decoder_attention(
|
| 141 |
+
query=current_thought_flat, key=compressed_mem_flat, value=compressed_mem_flat)
|
| 142 |
+
external_crit, _ = self.thought_critique_attention(
|
| 143 |
+
query=current_thought_flat, key=memory_input_flat, value=memory_input_flat)
|
| 144 |
+
refined_thought = current_thought + internal_ref.view(B,S,-1) + external_crit.view(B,S,-1)
|
| 145 |
+
current_thought = self.thought_layernorm(refined_thought)
|
| 146 |
+
|
| 147 |
+
thought_for_correction = current_thought if not self.training else initial_thought
|
| 148 |
+
raw_correction = self.correction_head(thought_for_correction)
|
| 149 |
+
gate, value = torch.chunk(raw_correction, 2, dim=-1)
|
| 150 |
+
final_activation = base_output * torch.sigmoid(gate.to(x.dtype)) + value.to(x.dtype)
|
| 151 |
+
|
| 152 |
+
if self.training:
|
| 153 |
+
# CRITICAL FIX: Detach tensors stored for debugging/analysis
|
| 154 |
+
self.last_corrected_activation = final_activation.detach()
|
| 155 |
+
self.last_additive_correction = value.detach()
|
| 156 |
+
self.last_memory_input = memory_input.detach()
|
| 157 |
+
self.last_reconstructed_from_memory = recon_flat.view(B, S, 2, self.memory_dim).detach()
|
| 158 |
+
return final_activation
|
| 159 |
+
|
| 160 |
+
# --- BUILDING BLOCK 3: The Full Custom Model with State Management ---
|
| 161 |
+
class Phi3WithReflectiveMemoryForCausalLM(Phi3ForCausalLM):
|
| 162 |
+
def __init__(self, config):
|
| 163 |
+
super().__init__(config)
|
| 164 |
+
self.global_state_storage = {}
|
| 165 |
+
self.target_layer_path = "model.layers.15.mlp.gate_up_proj"
|
| 166 |
+
self.memory_dim, self.num_long_term_memory_slots = 256, 32
|
| 167 |
+
|
| 168 |
+
# CRITICAL FIX: Ensure embeddings are detached when stored
|
| 169 |
+
def embedding_hook(module, input, output):
|
| 170 |
+
self.global_state_storage['embeds'] = output.detach()
|
| 171 |
+
|
| 172 |
+
self.model.embed_tokens.register_forward_hook(embedding_hook)
|
| 173 |
+
|
| 174 |
+
try:
|
| 175 |
+
original_layer = self.get_submodule(self.target_layer_path)
|
| 176 |
+
custom_layer = ReflectiveMemoryLayer(
|
| 177 |
+
original_layer=original_layer, global_input_dim=config.hidden_size,
|
| 178 |
+
memory_dim=self.memory_dim, num_memory_slots=32, memory_num_heads=16,
|
| 179 |
+
global_state_storage=self.global_state_storage)
|
| 180 |
+
parent_path = ".".join(self.target_layer_path.split('.')[:-1])
|
| 181 |
+
setattr(self.get_submodule(parent_path), self.target_layer_path.split('.')[-1], custom_layer)
|
| 182 |
+
print(f"Successfully replaced '{self.target_layer_path}' with ReflectiveMemoryLayer.")
|
| 183 |
+
except AttributeError:
|
| 184 |
+
print(f"Could not find target layer '{self.target_layer_path}'. Model remains unmodified.")
|
| 185 |
+
|
| 186 |
+
def _init_ltm_state(self, batch_size, device, dtype):
|
| 187 |
+
# *** FIX: Initialize LTM state per item in the batch (no hardcoded hack) ***
|
| 188 |
+
return torch.zeros(
|
| 189 |
+
batch_size, self.num_long_term_memory_slots, self.memory_dim, device=device, dtype=dtype)
|
| 190 |
+
|
| 191 |
+
def forward(self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = None,
|
| 192 |
+
position_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[list[torch.FloatTensor]] = None,
|
| 193 |
+
inputs_embeds: Optional[torch.FloatTensor] = None, labels: Optional[torch.LongTensor] = None,
|
| 194 |
+
use_cache: Optional[bool] = None, output_attentions: Optional[bool] = None,
|
| 195 |
+
output_hidden_states: Optional[bool] = None, return_dict: Optional[bool] = None,
|
| 196 |
+
ltm_state: Optional[torch.Tensor] = None):
|
| 197 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 198 |
+
|
| 199 |
+
# CRITICAL FIX: Don't clear global state storage completely, just reset embeds
|
| 200 |
+
# This prevents losing LTM state continuity
|
| 201 |
+
if 'embeds' in self.global_state_storage:
|
| 202 |
+
del self.global_state_storage['embeds']
|
| 203 |
+
|
| 204 |
+
# *** FIX: Initialize LTM state if not provided, for both training and first step of inference ***
|
| 205 |
+
if ltm_state is None:
|
| 206 |
+
batch_size = input_ids.shape[0] if input_ids is not None else inputs_embeds.shape[0]
|
| 207 |
+
ltm_state = self._init_ltm_state(batch_size, self.device, self.dtype)
|
| 208 |
+
|
| 209 |
+
# CRITICAL FIX: Ensure LTM state is detached when stored
|
| 210 |
+
self.global_state_storage['ltm'] = ltm_state.detach() if ltm_state is not None else None
|
| 211 |
+
|
| 212 |
+
outputs = self.model(
|
| 213 |
+
input_ids=input_ids, attention_mask=attention_mask, position_ids=position_ids,
|
| 214 |
+
past_key_values=past_key_values, inputs_embeds=inputs_embeds, use_cache=use_cache,
|
| 215 |
+
output_attentions=output_attentions, output_hidden_states=output_hidden_states, return_dict=return_dict)
|
| 216 |
+
|
| 217 |
+
hidden_states = outputs[0]
|
| 218 |
+
logits = self.lm_head(hidden_states).float()
|
| 219 |
+
|
| 220 |
+
loss = None
|
| 221 |
+
if labels is not None:
|
| 222 |
+
loss_fct = nn.CrossEntropyLoss()
|
| 223 |
+
loss = loss_fct(logits[..., :-1, :].contiguous().view(-1, self.config.vocab_size),
|
| 224 |
+
labels[..., 1:].contiguous().view(-1))
|
| 225 |
+
# Note: Auxiliary losses from main.py are calculated outside the model forward pass.
|
| 226 |
+
|
| 227 |
+
# CRITICAL FIX: Ensure returned LTM state is detached
|
| 228 |
+
new_ltm_state = self.global_state_storage.get('ltm', None)
|
| 229 |
+
if new_ltm_state is not None:
|
| 230 |
+
new_ltm_state = new_ltm_state.detach()
|
| 231 |
+
|
| 232 |
+
if not return_dict:
|
| 233 |
+
output = (logits,) + outputs[1:] + (new_ltm_state,)
|
| 234 |
+
return (loss,) + output if loss is not None else output
|
| 235 |
+
|
| 236 |
+
return CausalLMOutputWithLTM(
|
| 237 |
+
loss=loss, logits=logits, past_key_values=outputs.past_key_values,
|
| 238 |
+
hidden_states=outputs.hidden_states, attentions=outputs.attentions, ltm_state=new_ltm_state)
|
config.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "./phi-4-abliterated",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Phi3ForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"auto_map": {
|
| 9 |
+
"AutoModelForCausalLM": "architecture.Phi3WithReflectiveMemoryForCausalLM"
|
| 10 |
+
},
|
| 11 |
+
"bos_token_id": 100257,
|
| 12 |
+
"embd_pdrop": 0.0,
|
| 13 |
+
"eos_token_id": 100257,
|
| 14 |
+
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 5120,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 17920,
|
| 18 |
+
"max_position_embeddings": 16384,
|
| 19 |
+
"model_type": "phi3",
|
| 20 |
+
"num_attention_heads": 40,
|
| 21 |
+
"num_hidden_layers": 40,
|
| 22 |
+
"num_key_value_heads": 10,
|
| 23 |
+
"original_max_position_embeddings": 16384,
|
| 24 |
+
"pad_token_id": 100257,
|
| 25 |
+
"partial_rotary_factor": 1.0,
|
| 26 |
+
"resid_pdrop": 0.0,
|
| 27 |
+
"rms_norm_eps": 1e-05,
|
| 28 |
+
"rope_scaling": null,
|
| 29 |
+
"rope_theta": 250000,
|
| 30 |
+
"sliding_window": null,
|
| 31 |
+
"tie_word_embeddings": false,
|
| 32 |
+
"torch_dtype": "bfloat16",
|
| 33 |
+
"transformers_version": "4.49.0",
|
| 34 |
+
"use_cache": true,
|
| 35 |
+
"vocab_size": 100352
|
| 36 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 100257,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
100257,
|
| 6 |
+
100265
|
| 7 |
+
],
|
| 8 |
+
"transformers_version": "4.49.0"
|
| 9 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e055a52dea9e514d5c3b1245ced6e6b0d04c9b316efd02946382844cbd0275b
|
| 3 |
+
size 4933656472
|
model-00002-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ade161164aae03943fb17b68fba9390cbfe8c181c5bb8814a45006d6721b29ea
|
| 3 |
+
size 4954690712
|
model-00003-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e9f50b395c8d4362ddb88860eb9a3bd0d9d1944771527be41babcc5bde030e8
|
| 3 |
+
size 4948172048
|
model-00004-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2f2b1c5f9fe700050099fb926413edc2d85b24ae9c317d7a1fc7a7ec2ce4491
|
| 3 |
+
size 4771169120
|
model-00005-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12b50575d59e89524f9ef42e17c0e80dbc6c89da906ccac5087c0ee0bba535a9
|
| 3 |
+
size 4771169120
|
model-00006-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:981e9f462e6f1d3a1ae182b559348e50c54a31c29c4fe720530f6dd2d61e50e7
|
| 3 |
+
size 4986116216
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,297 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 29364938240
|
| 4 |
+
},
|
| 5 |
+
"weight_map": {
|
| 6 |
+
"lm_head.weight": "model-00006-of-00006.safetensors",
|
| 7 |
+
"model.embed_tokens.weight": "model-00001-of-00006.safetensors",
|
| 8 |
+
"model.layers.0.input_layernorm.weight": "model-00001-of-00006.safetensors",
|
| 9 |
+
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
|
| 10 |
+
"model.layers.0.mlp.gate_up_proj.weight": "model-00001-of-00006.safetensors",
|
| 11 |
+
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
|
| 12 |
+
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
|
| 13 |
+
"model.layers.0.self_attn.qkv_proj.weight": "model-00001-of-00006.safetensors",
|
| 14 |
+
"model.layers.1.input_layernorm.weight": "model-00001-of-00006.safetensors",
|
| 15 |
+
"model.layers.1.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
|
| 16 |
+
"model.layers.1.mlp.gate_up_proj.weight": "model-00001-of-00006.safetensors",
|
| 17 |
+
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
|
| 18 |
+
"model.layers.1.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
|
| 19 |
+
"model.layers.1.self_attn.qkv_proj.weight": "model-00001-of-00006.safetensors",
|
| 20 |
+
"model.layers.10.input_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 21 |
+
"model.layers.10.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
|
| 22 |
+
"model.layers.10.mlp.gate_up_proj.weight": "model-00002-of-00006.safetensors",
|
| 23 |
+
"model.layers.10.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 24 |
+
"model.layers.10.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
|
| 25 |
+
"model.layers.10.self_attn.qkv_proj.weight": "model-00002-of-00006.safetensors",
|
| 26 |
+
"model.layers.11.input_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 27 |
+
"model.layers.11.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
|
| 28 |
+
"model.layers.11.mlp.gate_up_proj.weight": "model-00002-of-00006.safetensors",
|
| 29 |
+
"model.layers.11.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 30 |
+
"model.layers.11.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
|
| 31 |
+
"model.layers.11.self_attn.qkv_proj.weight": "model-00002-of-00006.safetensors",
|
| 32 |
+
"model.layers.12.input_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 33 |
+
"model.layers.12.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
|
| 34 |
+
"model.layers.12.mlp.gate_up_proj.weight": "model-00002-of-00006.safetensors",
|
| 35 |
+
"model.layers.12.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 36 |
+
"model.layers.12.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
|
| 37 |
+
"model.layers.12.self_attn.qkv_proj.weight": "model-00002-of-00006.safetensors",
|
| 38 |
+
"model.layers.13.input_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 39 |
+
"model.layers.13.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
|
| 40 |
+
"model.layers.13.mlp.gate_up_proj.weight": "model-00003-of-00006.safetensors",
|
| 41 |
+
"model.layers.13.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 42 |
+
"model.layers.13.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
|
| 43 |
+
"model.layers.13.self_attn.qkv_proj.weight": "model-00003-of-00006.safetensors",
|
| 44 |
+
"model.layers.14.input_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 45 |
+
"model.layers.14.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
|
| 46 |
+
"model.layers.14.mlp.gate_up_proj.weight": "model-00003-of-00006.safetensors",
|
| 47 |
+
"model.layers.14.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 48 |
+
"model.layers.14.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
|
| 49 |
+
"model.layers.14.self_attn.qkv_proj.weight": "model-00003-of-00006.safetensors",
|
| 50 |
+
"model.layers.15.input_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 51 |
+
"model.layers.15.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
|
| 52 |
+
"model.layers.15.mlp.gate_up_proj.correction_head.bias": "model-00003-of-00006.safetensors",
|
| 53 |
+
"model.layers.15.mlp.gate_up_proj.correction_head.weight": "model-00003-of-00006.safetensors",
|
| 54 |
+
"model.layers.15.mlp.gate_up_proj.global_state_proj.bias": "model-00003-of-00006.safetensors",
|
| 55 |
+
"model.layers.15.mlp.gate_up_proj.global_state_proj.weight": "model-00003-of-00006.safetensors",
|
| 56 |
+
"model.layers.15.mlp.gate_up_proj.linear.weight": "model-00003-of-00006.safetensors",
|
| 57 |
+
"model.layers.15.mlp.gate_up_proj.local_state_proj.bias": "model-00003-of-00006.safetensors",
|
| 58 |
+
"model.layers.15.mlp.gate_up_proj.local_state_proj.weight": "model-00003-of-00006.safetensors",
|
| 59 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.decoder_attention.in_proj_bias": "model-00003-of-00006.safetensors",
|
| 60 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.decoder_attention.in_proj_weight": "model-00003-of-00006.safetensors",
|
| 61 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.decoder_attention.out_proj.bias": "model-00003-of-00006.safetensors",
|
| 62 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.decoder_attention.out_proj.weight": "model-00003-of-00006.safetensors",
|
| 63 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.decoder_ffn.0.bias": "model-00003-of-00006.safetensors",
|
| 64 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.decoder_ffn.0.weight": "model-00003-of-00006.safetensors",
|
| 65 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.decoder_ffn.2.bias": "model-00003-of-00006.safetensors",
|
| 66 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.decoder_ffn.2.weight": "model-00003-of-00006.safetensors",
|
| 67 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.decoder_layernorm.bias": "model-00003-of-00006.safetensors",
|
| 68 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.decoder_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 69 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.linear1.bias": "model-00003-of-00006.safetensors",
|
| 70 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.linear1.weight": "model-00003-of-00006.safetensors",
|
| 71 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.linear2.bias": "model-00003-of-00006.safetensors",
|
| 72 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.linear2.weight": "model-00003-of-00006.safetensors",
|
| 73 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.norm1.bias": "model-00003-of-00006.safetensors",
|
| 74 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.norm1.weight": "model-00003-of-00006.safetensors",
|
| 75 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.norm2.bias": "model-00003-of-00006.safetensors",
|
| 76 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.norm2.weight": "model-00003-of-00006.safetensors",
|
| 77 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.self_attn.in_proj_bias": "model-00003-of-00006.safetensors",
|
| 78 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.self_attn.in_proj_weight": "model-00003-of-00006.safetensors",
|
| 79 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.self_attn.out_proj.bias": "model-00003-of-00006.safetensors",
|
| 80 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.encoder.layers.0.self_attn.out_proj.weight": "model-00003-of-00006.safetensors",
|
| 81 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.ltm_retrieval_attention.in_proj_bias": "model-00003-of-00006.safetensors",
|
| 82 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.ltm_retrieval_attention.in_proj_weight": "model-00003-of-00006.safetensors",
|
| 83 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.ltm_retrieval_attention.out_proj.bias": "model-00003-of-00006.safetensors",
|
| 84 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.ltm_retrieval_attention.out_proj.weight": "model-00003-of-00006.safetensors",
|
| 85 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.memory_attention.in_proj_bias": "model-00003-of-00006.safetensors",
|
| 86 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.memory_attention.in_proj_weight": "model-00003-of-00006.safetensors",
|
| 87 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.memory_attention.out_proj.bias": "model-00003-of-00006.safetensors",
|
| 88 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.memory_attention.out_proj.weight": "model-00003-of-00006.safetensors",
|
| 89 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.memory_layernorm.bias": "model-00003-of-00006.safetensors",
|
| 90 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.memory_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 91 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.memory_queries": "model-00003-of-00006.safetensors",
|
| 92 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.memory_update_gate.0.bias": "model-00003-of-00006.safetensors",
|
| 93 |
+
"model.layers.15.mlp.gate_up_proj.memory_head.memory_update_gate.0.weight": "model-00003-of-00006.safetensors",
|
| 94 |
+
"model.layers.15.mlp.gate_up_proj.thought_critique_attention.in_proj_bias": "model-00003-of-00006.safetensors",
|
| 95 |
+
"model.layers.15.mlp.gate_up_proj.thought_critique_attention.in_proj_weight": "model-00003-of-00006.safetensors",
|
| 96 |
+
"model.layers.15.mlp.gate_up_proj.thought_critique_attention.out_proj.bias": "model-00003-of-00006.safetensors",
|
| 97 |
+
"model.layers.15.mlp.gate_up_proj.thought_critique_attention.out_proj.weight": "model-00003-of-00006.safetensors",
|
| 98 |
+
"model.layers.15.mlp.gate_up_proj.thought_layernorm.bias": "model-00003-of-00006.safetensors",
|
| 99 |
+
"model.layers.15.mlp.gate_up_proj.thought_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 100 |
+
"model.layers.15.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 101 |
+
"model.layers.15.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
|
| 102 |
+
"model.layers.15.self_attn.qkv_proj.weight": "model-00003-of-00006.safetensors",
|
| 103 |
+
"model.layers.16.input_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 104 |
+
"model.layers.16.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
|
| 105 |
+
"model.layers.16.mlp.gate_up_proj.weight": "model-00003-of-00006.safetensors",
|
| 106 |
+
"model.layers.16.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 107 |
+
"model.layers.16.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
|
| 108 |
+
"model.layers.16.self_attn.qkv_proj.weight": "model-00003-of-00006.safetensors",
|
| 109 |
+
"model.layers.17.input_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 110 |
+
"model.layers.17.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
|
| 111 |
+
"model.layers.17.mlp.gate_up_proj.weight": "model-00003-of-00006.safetensors",
|
| 112 |
+
"model.layers.17.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 113 |
+
"model.layers.17.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
|
| 114 |
+
"model.layers.17.self_attn.qkv_proj.weight": "model-00003-of-00006.safetensors",
|
| 115 |
+
"model.layers.18.input_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 116 |
+
"model.layers.18.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
|
| 117 |
+
"model.layers.18.mlp.gate_up_proj.weight": "model-00003-of-00006.safetensors",
|
| 118 |
+
"model.layers.18.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 119 |
+
"model.layers.18.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
|
| 120 |
+
"model.layers.18.self_attn.qkv_proj.weight": "model-00003-of-00006.safetensors",
|
| 121 |
+
"model.layers.19.input_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 122 |
+
"model.layers.19.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
|
| 123 |
+
"model.layers.19.mlp.gate_up_proj.weight": "model-00003-of-00006.safetensors",
|
| 124 |
+
"model.layers.19.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
|
| 125 |
+
"model.layers.19.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
|
| 126 |
+
"model.layers.19.self_attn.qkv_proj.weight": "model-00003-of-00006.safetensors",
|
| 127 |
+
"model.layers.2.input_layernorm.weight": "model-00001-of-00006.safetensors",
|
| 128 |
+
"model.layers.2.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
|
| 129 |
+
"model.layers.2.mlp.gate_up_proj.weight": "model-00001-of-00006.safetensors",
|
| 130 |
+
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
|
| 131 |
+
"model.layers.2.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
|
| 132 |
+
"model.layers.2.self_attn.qkv_proj.weight": "model-00001-of-00006.safetensors",
|
| 133 |
+
"model.layers.20.input_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 134 |
+
"model.layers.20.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
|
| 135 |
+
"model.layers.20.mlp.gate_up_proj.weight": "model-00004-of-00006.safetensors",
|
| 136 |
+
"model.layers.20.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 137 |
+
"model.layers.20.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
|
| 138 |
+
"model.layers.20.self_attn.qkv_proj.weight": "model-00003-of-00006.safetensors",
|
| 139 |
+
"model.layers.21.input_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 140 |
+
"model.layers.21.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
|
| 141 |
+
"model.layers.21.mlp.gate_up_proj.weight": "model-00004-of-00006.safetensors",
|
| 142 |
+
"model.layers.21.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 143 |
+
"model.layers.21.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
|
| 144 |
+
"model.layers.21.self_attn.qkv_proj.weight": "model-00004-of-00006.safetensors",
|
| 145 |
+
"model.layers.22.input_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 146 |
+
"model.layers.22.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
|
| 147 |
+
"model.layers.22.mlp.gate_up_proj.weight": "model-00004-of-00006.safetensors",
|
| 148 |
+
"model.layers.22.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 149 |
+
"model.layers.22.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
|
| 150 |
+
"model.layers.22.self_attn.qkv_proj.weight": "model-00004-of-00006.safetensors",
|
| 151 |
+
"model.layers.23.input_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 152 |
+
"model.layers.23.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
|
| 153 |
+
"model.layers.23.mlp.gate_up_proj.weight": "model-00004-of-00006.safetensors",
|
| 154 |
+
"model.layers.23.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 155 |
+
"model.layers.23.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
|
| 156 |
+
"model.layers.23.self_attn.qkv_proj.weight": "model-00004-of-00006.safetensors",
|
| 157 |
+
"model.layers.24.input_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 158 |
+
"model.layers.24.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
|
| 159 |
+
"model.layers.24.mlp.gate_up_proj.weight": "model-00004-of-00006.safetensors",
|
| 160 |
+
"model.layers.24.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 161 |
+
"model.layers.24.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
|
| 162 |
+
"model.layers.24.self_attn.qkv_proj.weight": "model-00004-of-00006.safetensors",
|
| 163 |
+
"model.layers.25.input_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 164 |
+
"model.layers.25.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
|
| 165 |
+
"model.layers.25.mlp.gate_up_proj.weight": "model-00004-of-00006.safetensors",
|
| 166 |
+
"model.layers.25.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 167 |
+
"model.layers.25.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
|
| 168 |
+
"model.layers.25.self_attn.qkv_proj.weight": "model-00004-of-00006.safetensors",
|
| 169 |
+
"model.layers.26.input_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 170 |
+
"model.layers.26.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
|
| 171 |
+
"model.layers.26.mlp.gate_up_proj.weight": "model-00004-of-00006.safetensors",
|
| 172 |
+
"model.layers.26.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
|
| 173 |
+
"model.layers.26.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
|
| 174 |
+
"model.layers.26.self_attn.qkv_proj.weight": "model-00004-of-00006.safetensors",
|
| 175 |
+
"model.layers.27.input_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 176 |
+
"model.layers.27.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
|
| 177 |
+
"model.layers.27.mlp.gate_up_proj.weight": "model-00005-of-00006.safetensors",
|
| 178 |
+
"model.layers.27.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 179 |
+
"model.layers.27.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
|
| 180 |
+
"model.layers.27.self_attn.qkv_proj.weight": "model-00004-of-00006.safetensors",
|
| 181 |
+
"model.layers.28.input_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 182 |
+
"model.layers.28.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
|
| 183 |
+
"model.layers.28.mlp.gate_up_proj.weight": "model-00005-of-00006.safetensors",
|
| 184 |
+
"model.layers.28.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 185 |
+
"model.layers.28.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
|
| 186 |
+
"model.layers.28.self_attn.qkv_proj.weight": "model-00005-of-00006.safetensors",
|
| 187 |
+
"model.layers.29.input_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 188 |
+
"model.layers.29.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
|
| 189 |
+
"model.layers.29.mlp.gate_up_proj.weight": "model-00005-of-00006.safetensors",
|
| 190 |
+
"model.layers.29.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 191 |
+
"model.layers.29.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
|
| 192 |
+
"model.layers.29.self_attn.qkv_proj.weight": "model-00005-of-00006.safetensors",
|
| 193 |
+
"model.layers.3.input_layernorm.weight": "model-00001-of-00006.safetensors",
|
| 194 |
+
"model.layers.3.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
|
| 195 |
+
"model.layers.3.mlp.gate_up_proj.weight": "model-00001-of-00006.safetensors",
|
| 196 |
+
"model.layers.3.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
|
| 197 |
+
"model.layers.3.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
|
| 198 |
+
"model.layers.3.self_attn.qkv_proj.weight": "model-00001-of-00006.safetensors",
|
| 199 |
+
"model.layers.30.input_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 200 |
+
"model.layers.30.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
|
| 201 |
+
"model.layers.30.mlp.gate_up_proj.weight": "model-00005-of-00006.safetensors",
|
| 202 |
+
"model.layers.30.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 203 |
+
"model.layers.30.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
|
| 204 |
+
"model.layers.30.self_attn.qkv_proj.weight": "model-00005-of-00006.safetensors",
|
| 205 |
+
"model.layers.31.input_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 206 |
+
"model.layers.31.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
|
| 207 |
+
"model.layers.31.mlp.gate_up_proj.weight": "model-00005-of-00006.safetensors",
|
| 208 |
+
"model.layers.31.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 209 |
+
"model.layers.31.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
|
| 210 |
+
"model.layers.31.self_attn.qkv_proj.weight": "model-00005-of-00006.safetensors",
|
| 211 |
+
"model.layers.32.input_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 212 |
+
"model.layers.32.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
|
| 213 |
+
"model.layers.32.mlp.gate_up_proj.weight": "model-00005-of-00006.safetensors",
|
| 214 |
+
"model.layers.32.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 215 |
+
"model.layers.32.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
|
| 216 |
+
"model.layers.32.self_attn.qkv_proj.weight": "model-00005-of-00006.safetensors",
|
| 217 |
+
"model.layers.33.input_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 218 |
+
"model.layers.33.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
|
| 219 |
+
"model.layers.33.mlp.gate_up_proj.weight": "model-00005-of-00006.safetensors",
|
| 220 |
+
"model.layers.33.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
|
| 221 |
+
"model.layers.33.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
|
| 222 |
+
"model.layers.33.self_attn.qkv_proj.weight": "model-00005-of-00006.safetensors",
|
| 223 |
+
"model.layers.34.input_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 224 |
+
"model.layers.34.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
|
| 225 |
+
"model.layers.34.mlp.gate_up_proj.weight": "model-00006-of-00006.safetensors",
|
| 226 |
+
"model.layers.34.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 227 |
+
"model.layers.34.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
|
| 228 |
+
"model.layers.34.self_attn.qkv_proj.weight": "model-00005-of-00006.safetensors",
|
| 229 |
+
"model.layers.35.input_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 230 |
+
"model.layers.35.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
|
| 231 |
+
"model.layers.35.mlp.gate_up_proj.weight": "model-00006-of-00006.safetensors",
|
| 232 |
+
"model.layers.35.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 233 |
+
"model.layers.35.self_attn.o_proj.weight": "model-00006-of-00006.safetensors",
|
| 234 |
+
"model.layers.35.self_attn.qkv_proj.weight": "model-00006-of-00006.safetensors",
|
| 235 |
+
"model.layers.36.input_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 236 |
+
"model.layers.36.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
|
| 237 |
+
"model.layers.36.mlp.gate_up_proj.weight": "model-00006-of-00006.safetensors",
|
| 238 |
+
"model.layers.36.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 239 |
+
"model.layers.36.self_attn.o_proj.weight": "model-00006-of-00006.safetensors",
|
| 240 |
+
"model.layers.36.self_attn.qkv_proj.weight": "model-00006-of-00006.safetensors",
|
| 241 |
+
"model.layers.37.input_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 242 |
+
"model.layers.37.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
|
| 243 |
+
"model.layers.37.mlp.gate_up_proj.weight": "model-00006-of-00006.safetensors",
|
| 244 |
+
"model.layers.37.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 245 |
+
"model.layers.37.self_attn.o_proj.weight": "model-00006-of-00006.safetensors",
|
| 246 |
+
"model.layers.37.self_attn.qkv_proj.weight": "model-00006-of-00006.safetensors",
|
| 247 |
+
"model.layers.38.input_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 248 |
+
"model.layers.38.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
|
| 249 |
+
"model.layers.38.mlp.gate_up_proj.weight": "model-00006-of-00006.safetensors",
|
| 250 |
+
"model.layers.38.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 251 |
+
"model.layers.38.self_attn.o_proj.weight": "model-00006-of-00006.safetensors",
|
| 252 |
+
"model.layers.38.self_attn.qkv_proj.weight": "model-00006-of-00006.safetensors",
|
| 253 |
+
"model.layers.39.input_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 254 |
+
"model.layers.39.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
|
| 255 |
+
"model.layers.39.mlp.gate_up_proj.weight": "model-00006-of-00006.safetensors",
|
| 256 |
+
"model.layers.39.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
|
| 257 |
+
"model.layers.39.self_attn.o_proj.weight": "model-00006-of-00006.safetensors",
|
| 258 |
+
"model.layers.39.self_attn.qkv_proj.weight": "model-00006-of-00006.safetensors",
|
| 259 |
+
"model.layers.4.input_layernorm.weight": "model-00001-of-00006.safetensors",
|
| 260 |
+
"model.layers.4.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
|
| 261 |
+
"model.layers.4.mlp.gate_up_proj.weight": "model-00001-of-00006.safetensors",
|
| 262 |
+
"model.layers.4.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
|
| 263 |
+
"model.layers.4.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
|
| 264 |
+
"model.layers.4.self_attn.qkv_proj.weight": "model-00001-of-00006.safetensors",
|
| 265 |
+
"model.layers.5.input_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 266 |
+
"model.layers.5.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
|
| 267 |
+
"model.layers.5.mlp.gate_up_proj.weight": "model-00001-of-00006.safetensors",
|
| 268 |
+
"model.layers.5.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 269 |
+
"model.layers.5.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
|
| 270 |
+
"model.layers.5.self_attn.qkv_proj.weight": "model-00001-of-00006.safetensors",
|
| 271 |
+
"model.layers.6.input_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 272 |
+
"model.layers.6.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
|
| 273 |
+
"model.layers.6.mlp.gate_up_proj.weight": "model-00002-of-00006.safetensors",
|
| 274 |
+
"model.layers.6.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 275 |
+
"model.layers.6.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
|
| 276 |
+
"model.layers.6.self_attn.qkv_proj.weight": "model-00002-of-00006.safetensors",
|
| 277 |
+
"model.layers.7.input_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 278 |
+
"model.layers.7.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
|
| 279 |
+
"model.layers.7.mlp.gate_up_proj.weight": "model-00002-of-00006.safetensors",
|
| 280 |
+
"model.layers.7.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 281 |
+
"model.layers.7.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
|
| 282 |
+
"model.layers.7.self_attn.qkv_proj.weight": "model-00002-of-00006.safetensors",
|
| 283 |
+
"model.layers.8.input_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 284 |
+
"model.layers.8.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
|
| 285 |
+
"model.layers.8.mlp.gate_up_proj.weight": "model-00002-of-00006.safetensors",
|
| 286 |
+
"model.layers.8.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 287 |
+
"model.layers.8.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
|
| 288 |
+
"model.layers.8.self_attn.qkv_proj.weight": "model-00002-of-00006.safetensors",
|
| 289 |
+
"model.layers.9.input_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 290 |
+
"model.layers.9.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
|
| 291 |
+
"model.layers.9.mlp.gate_up_proj.weight": "model-00002-of-00006.safetensors",
|
| 292 |
+
"model.layers.9.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
|
| 293 |
+
"model.layers.9.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
|
| 294 |
+
"model.layers.9.self_attn.qkv_proj.weight": "model-00002-of-00006.safetensors",
|
| 295 |
+
"model.norm.weight": "model-00006-of-00006.safetensors"
|
| 296 |
+
}
|
| 297 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<|endoftext|>",
|
| 4 |
+
"lstrip": true,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": true,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|endoftext|>",
|
| 11 |
+
"lstrip": true,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": true,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<|endoftext|>",
|
| 18 |
+
"lstrip": true,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": true,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"unk_token": {
|
| 24 |
+
"content": "<|endoftext|>",
|
| 25 |
+
"lstrip": true,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": true,
|
| 28 |
+
"single_word": false
|
| 29 |
+
}
|
| 30 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,782 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"100256": {
|
| 5 |
+
"content": "<|dummy_0|>",
|
| 6 |
+
"lstrip": true,
|
| 7 |
+
"normalized": false,
|
| 8 |
+
"rstrip": true,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"100257": {
|
| 13 |
+
"content": "<|endoftext|>",
|
| 14 |
+
"lstrip": true,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": true,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"100258": {
|
| 21 |
+
"content": "<|fim_prefix|>",
|
| 22 |
+
"lstrip": true,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": true,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"100259": {
|
| 29 |
+
"content": "<|fim_middle|>",
|
| 30 |
+
"lstrip": true,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": true,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"100260": {
|
| 37 |
+
"content": "<|fim_suffix|>",
|
| 38 |
+
"lstrip": true,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"rstrip": true,
|
| 41 |
+
"single_word": false,
|
| 42 |
+
"special": true
|
| 43 |
+
},
|
| 44 |
+
"100261": {
|
| 45 |
+
"content": "<|dummy_1|>",
|
| 46 |
+
"lstrip": true,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": true,
|
| 49 |
+
"single_word": false,
|
| 50 |
+
"special": true
|
| 51 |
+
},
|
| 52 |
+
"100262": {
|
| 53 |
+
"content": "<|dummy_2|>",
|
| 54 |
+
"lstrip": true,
|
| 55 |
+
"normalized": false,
|
| 56 |
+
"rstrip": true,
|
| 57 |
+
"single_word": false,
|
| 58 |
+
"special": true
|
| 59 |
+
},
|
| 60 |
+
"100263": {
|
| 61 |
+
"content": "<|dummy_3|>",
|
| 62 |
+
"lstrip": true,
|
| 63 |
+
"normalized": false,
|
| 64 |
+
"rstrip": true,
|
| 65 |
+
"single_word": false,
|
| 66 |
+
"special": true
|
| 67 |
+
},
|
| 68 |
+
"100264": {
|
| 69 |
+
"content": "<|im_start|>",
|
| 70 |
+
"lstrip": true,
|
| 71 |
+
"normalized": false,
|
| 72 |
+
"rstrip": true,
|
| 73 |
+
"single_word": false,
|
| 74 |
+
"special": true
|
| 75 |
+
},
|
| 76 |
+
"100265": {
|
| 77 |
+
"content": "<|im_end|>",
|
| 78 |
+
"lstrip": true,
|
| 79 |
+
"normalized": false,
|
| 80 |
+
"rstrip": true,
|
| 81 |
+
"single_word": false,
|
| 82 |
+
"special": true
|
| 83 |
+
},
|
| 84 |
+
"100266": {
|
| 85 |
+
"content": "<|im_sep|>",
|
| 86 |
+
"lstrip": true,
|
| 87 |
+
"normalized": false,
|
| 88 |
+
"rstrip": true,
|
| 89 |
+
"single_word": false,
|
| 90 |
+
"special": true
|
| 91 |
+
},
|
| 92 |
+
"100267": {
|
| 93 |
+
"content": "<|dummy_4|>",
|
| 94 |
+
"lstrip": true,
|
| 95 |
+
"normalized": false,
|
| 96 |
+
"rstrip": true,
|
| 97 |
+
"single_word": false,
|
| 98 |
+
"special": true
|
| 99 |
+
},
|
| 100 |
+
"100268": {
|
| 101 |
+
"content": "<|dummy_5|>",
|
| 102 |
+
"lstrip": true,
|
| 103 |
+
"normalized": false,
|
| 104 |
+
"rstrip": true,
|
| 105 |
+
"single_word": false,
|
| 106 |
+
"special": true
|
| 107 |
+
},
|
| 108 |
+
"100269": {
|
| 109 |
+
"content": "<|dummy_6|>",
|
| 110 |
+
"lstrip": true,
|
| 111 |
+
"normalized": false,
|
| 112 |
+
"rstrip": true,
|
| 113 |
+
"single_word": false,
|
| 114 |
+
"special": true
|
| 115 |
+
},
|
| 116 |
+
"100270": {
|
| 117 |
+
"content": "<|dummy_7|>",
|
| 118 |
+
"lstrip": true,
|
| 119 |
+
"normalized": false,
|
| 120 |
+
"rstrip": true,
|
| 121 |
+
"single_word": false,
|
| 122 |
+
"special": true
|
| 123 |
+
},
|
| 124 |
+
"100271": {
|
| 125 |
+
"content": "<|dummy_8|>",
|
| 126 |
+
"lstrip": true,
|
| 127 |
+
"normalized": false,
|
| 128 |
+
"rstrip": true,
|
| 129 |
+
"single_word": false,
|
| 130 |
+
"special": true
|
| 131 |
+
},
|
| 132 |
+
"100272": {
|
| 133 |
+
"content": "<|dummy_9|>",
|
| 134 |
+
"lstrip": true,
|
| 135 |
+
"normalized": false,
|
| 136 |
+
"rstrip": true,
|
| 137 |
+
"single_word": false,
|
| 138 |
+
"special": true
|
| 139 |
+
},
|
| 140 |
+
"100273": {
|
| 141 |
+
"content": "<|dummy_10|>",
|
| 142 |
+
"lstrip": true,
|
| 143 |
+
"normalized": false,
|
| 144 |
+
"rstrip": true,
|
| 145 |
+
"single_word": false,
|
| 146 |
+
"special": true
|
| 147 |
+
},
|
| 148 |
+
"100274": {
|
| 149 |
+
"content": "<|dummy_11|>",
|
| 150 |
+
"lstrip": true,
|
| 151 |
+
"normalized": false,
|
| 152 |
+
"rstrip": true,
|
| 153 |
+
"single_word": false,
|
| 154 |
+
"special": true
|
| 155 |
+
},
|
| 156 |
+
"100275": {
|
| 157 |
+
"content": "<|dummy_12|>",
|
| 158 |
+
"lstrip": true,
|
| 159 |
+
"normalized": false,
|
| 160 |
+
"rstrip": true,
|
| 161 |
+
"single_word": false,
|
| 162 |
+
"special": true
|
| 163 |
+
},
|
| 164 |
+
"100276": {
|
| 165 |
+
"content": "<|endofprompt|>",
|
| 166 |
+
"lstrip": true,
|
| 167 |
+
"normalized": false,
|
| 168 |
+
"rstrip": true,
|
| 169 |
+
"single_word": false,
|
| 170 |
+
"special": true
|
| 171 |
+
},
|
| 172 |
+
"100277": {
|
| 173 |
+
"content": "<|dummy_13|>",
|
| 174 |
+
"lstrip": true,
|
| 175 |
+
"normalized": false,
|
| 176 |
+
"rstrip": true,
|
| 177 |
+
"single_word": false,
|
| 178 |
+
"special": true
|
| 179 |
+
},
|
| 180 |
+
"100278": {
|
| 181 |
+
"content": "<|dummy_14|>",
|
| 182 |
+
"lstrip": true,
|
| 183 |
+
"normalized": false,
|
| 184 |
+
"rstrip": true,
|
| 185 |
+
"single_word": false,
|
| 186 |
+
"special": true
|
| 187 |
+
},
|
| 188 |
+
"100279": {
|
| 189 |
+
"content": "<|dummy_15|>",
|
| 190 |
+
"lstrip": true,
|
| 191 |
+
"normalized": false,
|
| 192 |
+
"rstrip": true,
|
| 193 |
+
"single_word": false,
|
| 194 |
+
"special": true
|
| 195 |
+
},
|
| 196 |
+
"100280": {
|
| 197 |
+
"content": "<|dummy_16|>",
|
| 198 |
+
"lstrip": true,
|
| 199 |
+
"normalized": false,
|
| 200 |
+
"rstrip": true,
|
| 201 |
+
"single_word": false,
|
| 202 |
+
"special": true
|
| 203 |
+
},
|
| 204 |
+
"100281": {
|
| 205 |
+
"content": "<|dummy_17|>",
|
| 206 |
+
"lstrip": true,
|
| 207 |
+
"normalized": false,
|
| 208 |
+
"rstrip": true,
|
| 209 |
+
"single_word": false,
|
| 210 |
+
"special": true
|
| 211 |
+
},
|
| 212 |
+
"100282": {
|
| 213 |
+
"content": "<|dummy_18|>",
|
| 214 |
+
"lstrip": true,
|
| 215 |
+
"normalized": false,
|
| 216 |
+
"rstrip": true,
|
| 217 |
+
"single_word": false,
|
| 218 |
+
"special": true
|
| 219 |
+
},
|
| 220 |
+
"100283": {
|
| 221 |
+
"content": "<|dummy_19|>",
|
| 222 |
+
"lstrip": true,
|
| 223 |
+
"normalized": false,
|
| 224 |
+
"rstrip": true,
|
| 225 |
+
"single_word": false,
|
| 226 |
+
"special": true
|
| 227 |
+
},
|
| 228 |
+
"100284": {
|
| 229 |
+
"content": "<|dummy_20|>",
|
| 230 |
+
"lstrip": true,
|
| 231 |
+
"normalized": false,
|
| 232 |
+
"rstrip": true,
|
| 233 |
+
"single_word": false,
|
| 234 |
+
"special": true
|
| 235 |
+
},
|
| 236 |
+
"100285": {
|
| 237 |
+
"content": "<|dummy_21|>",
|
| 238 |
+
"lstrip": true,
|
| 239 |
+
"normalized": false,
|
| 240 |
+
"rstrip": true,
|
| 241 |
+
"single_word": false,
|
| 242 |
+
"special": true
|
| 243 |
+
},
|
| 244 |
+
"100286": {
|
| 245 |
+
"content": "<|dummy_22|>",
|
| 246 |
+
"lstrip": true,
|
| 247 |
+
"normalized": false,
|
| 248 |
+
"rstrip": true,
|
| 249 |
+
"single_word": false,
|
| 250 |
+
"special": true
|
| 251 |
+
},
|
| 252 |
+
"100287": {
|
| 253 |
+
"content": "<|dummy_23|>",
|
| 254 |
+
"lstrip": true,
|
| 255 |
+
"normalized": false,
|
| 256 |
+
"rstrip": true,
|
| 257 |
+
"single_word": false,
|
| 258 |
+
"special": true
|
| 259 |
+
},
|
| 260 |
+
"100288": {
|
| 261 |
+
"content": "<|dummy_24|>",
|
| 262 |
+
"lstrip": true,
|
| 263 |
+
"normalized": false,
|
| 264 |
+
"rstrip": true,
|
| 265 |
+
"single_word": false,
|
| 266 |
+
"special": true
|
| 267 |
+
},
|
| 268 |
+
"100289": {
|
| 269 |
+
"content": "<|dummy_25|>",
|
| 270 |
+
"lstrip": true,
|
| 271 |
+
"normalized": false,
|
| 272 |
+
"rstrip": true,
|
| 273 |
+
"single_word": false,
|
| 274 |
+
"special": true
|
| 275 |
+
},
|
| 276 |
+
"100290": {
|
| 277 |
+
"content": "<|dummy_26|>",
|
| 278 |
+
"lstrip": true,
|
| 279 |
+
"normalized": false,
|
| 280 |
+
"rstrip": true,
|
| 281 |
+
"single_word": false,
|
| 282 |
+
"special": true
|
| 283 |
+
},
|
| 284 |
+
"100291": {
|
| 285 |
+
"content": "<|dummy_27|>",
|
| 286 |
+
"lstrip": true,
|
| 287 |
+
"normalized": false,
|
| 288 |
+
"rstrip": true,
|
| 289 |
+
"single_word": false,
|
| 290 |
+
"special": true
|
| 291 |
+
},
|
| 292 |
+
"100292": {
|
| 293 |
+
"content": "<|dummy_28|>",
|
| 294 |
+
"lstrip": true,
|
| 295 |
+
"normalized": false,
|
| 296 |
+
"rstrip": true,
|
| 297 |
+
"single_word": false,
|
| 298 |
+
"special": true
|
| 299 |
+
},
|
| 300 |
+
"100293": {
|
| 301 |
+
"content": "<|dummy_29|>",
|
| 302 |
+
"lstrip": true,
|
| 303 |
+
"normalized": false,
|
| 304 |
+
"rstrip": true,
|
| 305 |
+
"single_word": false,
|
| 306 |
+
"special": true
|
| 307 |
+
},
|
| 308 |
+
"100294": {
|
| 309 |
+
"content": "<|dummy_30|>",
|
| 310 |
+
"lstrip": true,
|
| 311 |
+
"normalized": false,
|
| 312 |
+
"rstrip": true,
|
| 313 |
+
"single_word": false,
|
| 314 |
+
"special": true
|
| 315 |
+
},
|
| 316 |
+
"100295": {
|
| 317 |
+
"content": "<|dummy_31|>",
|
| 318 |
+
"lstrip": true,
|
| 319 |
+
"normalized": false,
|
| 320 |
+
"rstrip": true,
|
| 321 |
+
"single_word": false,
|
| 322 |
+
"special": true
|
| 323 |
+
},
|
| 324 |
+
"100296": {
|
| 325 |
+
"content": "<|dummy_32|>",
|
| 326 |
+
"lstrip": true,
|
| 327 |
+
"normalized": false,
|
| 328 |
+
"rstrip": true,
|
| 329 |
+
"single_word": false,
|
| 330 |
+
"special": true
|
| 331 |
+
},
|
| 332 |
+
"100297": {
|
| 333 |
+
"content": "<|dummy_33|>",
|
| 334 |
+
"lstrip": true,
|
| 335 |
+
"normalized": false,
|
| 336 |
+
"rstrip": true,
|
| 337 |
+
"single_word": false,
|
| 338 |
+
"special": true
|
| 339 |
+
},
|
| 340 |
+
"100298": {
|
| 341 |
+
"content": "<|dummy_34|>",
|
| 342 |
+
"lstrip": true,
|
| 343 |
+
"normalized": false,
|
| 344 |
+
"rstrip": true,
|
| 345 |
+
"single_word": false,
|
| 346 |
+
"special": true
|
| 347 |
+
},
|
| 348 |
+
"100299": {
|
| 349 |
+
"content": "<|dummy_35|>",
|
| 350 |
+
"lstrip": true,
|
| 351 |
+
"normalized": false,
|
| 352 |
+
"rstrip": true,
|
| 353 |
+
"single_word": false,
|
| 354 |
+
"special": true
|
| 355 |
+
},
|
| 356 |
+
"100300": {
|
| 357 |
+
"content": "<|dummy_36|>",
|
| 358 |
+
"lstrip": true,
|
| 359 |
+
"normalized": false,
|
| 360 |
+
"rstrip": true,
|
| 361 |
+
"single_word": false,
|
| 362 |
+
"special": true
|
| 363 |
+
},
|
| 364 |
+
"100301": {
|
| 365 |
+
"content": "<|dummy_37|>",
|
| 366 |
+
"lstrip": true,
|
| 367 |
+
"normalized": false,
|
| 368 |
+
"rstrip": true,
|
| 369 |
+
"single_word": false,
|
| 370 |
+
"special": true
|
| 371 |
+
},
|
| 372 |
+
"100302": {
|
| 373 |
+
"content": "<|dummy_38|>",
|
| 374 |
+
"lstrip": true,
|
| 375 |
+
"normalized": false,
|
| 376 |
+
"rstrip": true,
|
| 377 |
+
"single_word": false,
|
| 378 |
+
"special": true
|
| 379 |
+
},
|
| 380 |
+
"100303": {
|
| 381 |
+
"content": "<|dummy_39|>",
|
| 382 |
+
"lstrip": true,
|
| 383 |
+
"normalized": false,
|
| 384 |
+
"rstrip": true,
|
| 385 |
+
"single_word": false,
|
| 386 |
+
"special": true
|
| 387 |
+
},
|
| 388 |
+
"100304": {
|
| 389 |
+
"content": "<|dummy_40|>",
|
| 390 |
+
"lstrip": true,
|
| 391 |
+
"normalized": false,
|
| 392 |
+
"rstrip": true,
|
| 393 |
+
"single_word": false,
|
| 394 |
+
"special": true
|
| 395 |
+
},
|
| 396 |
+
"100305": {
|
| 397 |
+
"content": "<|dummy_41|>",
|
| 398 |
+
"lstrip": true,
|
| 399 |
+
"normalized": false,
|
| 400 |
+
"rstrip": true,
|
| 401 |
+
"single_word": false,
|
| 402 |
+
"special": true
|
| 403 |
+
},
|
| 404 |
+
"100306": {
|
| 405 |
+
"content": "<|dummy_42|>",
|
| 406 |
+
"lstrip": true,
|
| 407 |
+
"normalized": false,
|
| 408 |
+
"rstrip": true,
|
| 409 |
+
"single_word": false,
|
| 410 |
+
"special": true
|
| 411 |
+
},
|
| 412 |
+
"100307": {
|
| 413 |
+
"content": "<|dummy_43|>",
|
| 414 |
+
"lstrip": true,
|
| 415 |
+
"normalized": false,
|
| 416 |
+
"rstrip": true,
|
| 417 |
+
"single_word": false,
|
| 418 |
+
"special": true
|
| 419 |
+
},
|
| 420 |
+
"100308": {
|
| 421 |
+
"content": "<|dummy_44|>",
|
| 422 |
+
"lstrip": true,
|
| 423 |
+
"normalized": false,
|
| 424 |
+
"rstrip": true,
|
| 425 |
+
"single_word": false,
|
| 426 |
+
"special": true
|
| 427 |
+
},
|
| 428 |
+
"100309": {
|
| 429 |
+
"content": "<|dummy_45|>",
|
| 430 |
+
"lstrip": true,
|
| 431 |
+
"normalized": false,
|
| 432 |
+
"rstrip": true,
|
| 433 |
+
"single_word": false,
|
| 434 |
+
"special": true
|
| 435 |
+
},
|
| 436 |
+
"100310": {
|
| 437 |
+
"content": "<|dummy_46|>",
|
| 438 |
+
"lstrip": true,
|
| 439 |
+
"normalized": false,
|
| 440 |
+
"rstrip": true,
|
| 441 |
+
"single_word": false,
|
| 442 |
+
"special": true
|
| 443 |
+
},
|
| 444 |
+
"100311": {
|
| 445 |
+
"content": "<|dummy_47|>",
|
| 446 |
+
"lstrip": true,
|
| 447 |
+
"normalized": false,
|
| 448 |
+
"rstrip": true,
|
| 449 |
+
"single_word": false,
|
| 450 |
+
"special": true
|
| 451 |
+
},
|
| 452 |
+
"100312": {
|
| 453 |
+
"content": "<|dummy_48|>",
|
| 454 |
+
"lstrip": true,
|
| 455 |
+
"normalized": false,
|
| 456 |
+
"rstrip": true,
|
| 457 |
+
"single_word": false,
|
| 458 |
+
"special": true
|
| 459 |
+
},
|
| 460 |
+
"100313": {
|
| 461 |
+
"content": "<|dummy_49|>",
|
| 462 |
+
"lstrip": true,
|
| 463 |
+
"normalized": false,
|
| 464 |
+
"rstrip": true,
|
| 465 |
+
"single_word": false,
|
| 466 |
+
"special": true
|
| 467 |
+
},
|
| 468 |
+
"100314": {
|
| 469 |
+
"content": "<|dummy_50|>",
|
| 470 |
+
"lstrip": true,
|
| 471 |
+
"normalized": false,
|
| 472 |
+
"rstrip": true,
|
| 473 |
+
"single_word": false,
|
| 474 |
+
"special": true
|
| 475 |
+
},
|
| 476 |
+
"100315": {
|
| 477 |
+
"content": "<|dummy_51|>",
|
| 478 |
+
"lstrip": true,
|
| 479 |
+
"normalized": false,
|
| 480 |
+
"rstrip": true,
|
| 481 |
+
"single_word": false,
|
| 482 |
+
"special": true
|
| 483 |
+
},
|
| 484 |
+
"100316": {
|
| 485 |
+
"content": "<|dummy_52|>",
|
| 486 |
+
"lstrip": true,
|
| 487 |
+
"normalized": false,
|
| 488 |
+
"rstrip": true,
|
| 489 |
+
"single_word": false,
|
| 490 |
+
"special": true
|
| 491 |
+
},
|
| 492 |
+
"100317": {
|
| 493 |
+
"content": "<|dummy_53|>",
|
| 494 |
+
"lstrip": true,
|
| 495 |
+
"normalized": false,
|
| 496 |
+
"rstrip": true,
|
| 497 |
+
"single_word": false,
|
| 498 |
+
"special": true
|
| 499 |
+
},
|
| 500 |
+
"100318": {
|
| 501 |
+
"content": "<|dummy_54|>",
|
| 502 |
+
"lstrip": true,
|
| 503 |
+
"normalized": false,
|
| 504 |
+
"rstrip": true,
|
| 505 |
+
"single_word": false,
|
| 506 |
+
"special": true
|
| 507 |
+
},
|
| 508 |
+
"100319": {
|
| 509 |
+
"content": "<|dummy_55|>",
|
| 510 |
+
"lstrip": true,
|
| 511 |
+
"normalized": false,
|
| 512 |
+
"rstrip": true,
|
| 513 |
+
"single_word": false,
|
| 514 |
+
"special": true
|
| 515 |
+
},
|
| 516 |
+
"100320": {
|
| 517 |
+
"content": "<|dummy_56|>",
|
| 518 |
+
"lstrip": true,
|
| 519 |
+
"normalized": false,
|
| 520 |
+
"rstrip": true,
|
| 521 |
+
"single_word": false,
|
| 522 |
+
"special": true
|
| 523 |
+
},
|
| 524 |
+
"100321": {
|
| 525 |
+
"content": "<|dummy_57|>",
|
| 526 |
+
"lstrip": true,
|
| 527 |
+
"normalized": false,
|
| 528 |
+
"rstrip": true,
|
| 529 |
+
"single_word": false,
|
| 530 |
+
"special": true
|
| 531 |
+
},
|
| 532 |
+
"100322": {
|
| 533 |
+
"content": "<|dummy_58|>",
|
| 534 |
+
"lstrip": true,
|
| 535 |
+
"normalized": false,
|
| 536 |
+
"rstrip": true,
|
| 537 |
+
"single_word": false,
|
| 538 |
+
"special": true
|
| 539 |
+
},
|
| 540 |
+
"100323": {
|
| 541 |
+
"content": "<|dummy_59|>",
|
| 542 |
+
"lstrip": true,
|
| 543 |
+
"normalized": false,
|
| 544 |
+
"rstrip": true,
|
| 545 |
+
"single_word": false,
|
| 546 |
+
"special": true
|
| 547 |
+
},
|
| 548 |
+
"100324": {
|
| 549 |
+
"content": "<|dummy_60|>",
|
| 550 |
+
"lstrip": true,
|
| 551 |
+
"normalized": false,
|
| 552 |
+
"rstrip": true,
|
| 553 |
+
"single_word": false,
|
| 554 |
+
"special": true
|
| 555 |
+
},
|
| 556 |
+
"100325": {
|
| 557 |
+
"content": "<|dummy_61|>",
|
| 558 |
+
"lstrip": true,
|
| 559 |
+
"normalized": false,
|
| 560 |
+
"rstrip": true,
|
| 561 |
+
"single_word": false,
|
| 562 |
+
"special": true
|
| 563 |
+
},
|
| 564 |
+
"100326": {
|
| 565 |
+
"content": "<|dummy_62|>",
|
| 566 |
+
"lstrip": true,
|
| 567 |
+
"normalized": false,
|
| 568 |
+
"rstrip": true,
|
| 569 |
+
"single_word": false,
|
| 570 |
+
"special": true
|
| 571 |
+
},
|
| 572 |
+
"100327": {
|
| 573 |
+
"content": "<|dummy_63|>",
|
| 574 |
+
"lstrip": true,
|
| 575 |
+
"normalized": false,
|
| 576 |
+
"rstrip": true,
|
| 577 |
+
"single_word": false,
|
| 578 |
+
"special": true
|
| 579 |
+
},
|
| 580 |
+
"100328": {
|
| 581 |
+
"content": "<|dummy_64|>",
|
| 582 |
+
"lstrip": true,
|
| 583 |
+
"normalized": false,
|
| 584 |
+
"rstrip": true,
|
| 585 |
+
"single_word": false,
|
| 586 |
+
"special": true
|
| 587 |
+
},
|
| 588 |
+
"100329": {
|
| 589 |
+
"content": "<|dummy_65|>",
|
| 590 |
+
"lstrip": true,
|
| 591 |
+
"normalized": false,
|
| 592 |
+
"rstrip": true,
|
| 593 |
+
"single_word": false,
|
| 594 |
+
"special": true
|
| 595 |
+
},
|
| 596 |
+
"100330": {
|
| 597 |
+
"content": "<|dummy_66|>",
|
| 598 |
+
"lstrip": true,
|
| 599 |
+
"normalized": false,
|
| 600 |
+
"rstrip": true,
|
| 601 |
+
"single_word": false,
|
| 602 |
+
"special": true
|
| 603 |
+
},
|
| 604 |
+
"100331": {
|
| 605 |
+
"content": "<|dummy_67|>",
|
| 606 |
+
"lstrip": true,
|
| 607 |
+
"normalized": false,
|
| 608 |
+
"rstrip": true,
|
| 609 |
+
"single_word": false,
|
| 610 |
+
"special": true
|
| 611 |
+
},
|
| 612 |
+
"100332": {
|
| 613 |
+
"content": "<|dummy_68|>",
|
| 614 |
+
"lstrip": true,
|
| 615 |
+
"normalized": false,
|
| 616 |
+
"rstrip": true,
|
| 617 |
+
"single_word": false,
|
| 618 |
+
"special": true
|
| 619 |
+
},
|
| 620 |
+
"100333": {
|
| 621 |
+
"content": "<|dummy_69|>",
|
| 622 |
+
"lstrip": true,
|
| 623 |
+
"normalized": false,
|
| 624 |
+
"rstrip": true,
|
| 625 |
+
"single_word": false,
|
| 626 |
+
"special": true
|
| 627 |
+
},
|
| 628 |
+
"100334": {
|
| 629 |
+
"content": "<|dummy_70|>",
|
| 630 |
+
"lstrip": true,
|
| 631 |
+
"normalized": false,
|
| 632 |
+
"rstrip": true,
|
| 633 |
+
"single_word": false,
|
| 634 |
+
"special": true
|
| 635 |
+
},
|
| 636 |
+
"100335": {
|
| 637 |
+
"content": "<|dummy_71|>",
|
| 638 |
+
"lstrip": true,
|
| 639 |
+
"normalized": false,
|
| 640 |
+
"rstrip": true,
|
| 641 |
+
"single_word": false,
|
| 642 |
+
"special": true
|
| 643 |
+
},
|
| 644 |
+
"100336": {
|
| 645 |
+
"content": "<|dummy_72|>",
|
| 646 |
+
"lstrip": true,
|
| 647 |
+
"normalized": false,
|
| 648 |
+
"rstrip": true,
|
| 649 |
+
"single_word": false,
|
| 650 |
+
"special": true
|
| 651 |
+
},
|
| 652 |
+
"100337": {
|
| 653 |
+
"content": "<|dummy_73|>",
|
| 654 |
+
"lstrip": true,
|
| 655 |
+
"normalized": false,
|
| 656 |
+
"rstrip": true,
|
| 657 |
+
"single_word": false,
|
| 658 |
+
"special": true
|
| 659 |
+
},
|
| 660 |
+
"100338": {
|
| 661 |
+
"content": "<|dummy_74|>",
|
| 662 |
+
"lstrip": true,
|
| 663 |
+
"normalized": false,
|
| 664 |
+
"rstrip": true,
|
| 665 |
+
"single_word": false,
|
| 666 |
+
"special": true
|
| 667 |
+
},
|
| 668 |
+
"100339": {
|
| 669 |
+
"content": "<|dummy_75|>",
|
| 670 |
+
"lstrip": true,
|
| 671 |
+
"normalized": false,
|
| 672 |
+
"rstrip": true,
|
| 673 |
+
"single_word": false,
|
| 674 |
+
"special": true
|
| 675 |
+
},
|
| 676 |
+
"100340": {
|
| 677 |
+
"content": "<|dummy_76|>",
|
| 678 |
+
"lstrip": true,
|
| 679 |
+
"normalized": false,
|
| 680 |
+
"rstrip": true,
|
| 681 |
+
"single_word": false,
|
| 682 |
+
"special": true
|
| 683 |
+
},
|
| 684 |
+
"100341": {
|
| 685 |
+
"content": "<|dummy_77|>",
|
| 686 |
+
"lstrip": true,
|
| 687 |
+
"normalized": false,
|
| 688 |
+
"rstrip": true,
|
| 689 |
+
"single_word": false,
|
| 690 |
+
"special": true
|
| 691 |
+
},
|
| 692 |
+
"100342": {
|
| 693 |
+
"content": "<|dummy_78|>",
|
| 694 |
+
"lstrip": true,
|
| 695 |
+
"normalized": false,
|
| 696 |
+
"rstrip": true,
|
| 697 |
+
"single_word": false,
|
| 698 |
+
"special": true
|
| 699 |
+
},
|
| 700 |
+
"100343": {
|
| 701 |
+
"content": "<|dummy_79|>",
|
| 702 |
+
"lstrip": true,
|
| 703 |
+
"normalized": false,
|
| 704 |
+
"rstrip": true,
|
| 705 |
+
"single_word": false,
|
| 706 |
+
"special": true
|
| 707 |
+
},
|
| 708 |
+
"100344": {
|
| 709 |
+
"content": "<|dummy_80|>",
|
| 710 |
+
"lstrip": true,
|
| 711 |
+
"normalized": false,
|
| 712 |
+
"rstrip": true,
|
| 713 |
+
"single_word": false,
|
| 714 |
+
"special": true
|
| 715 |
+
},
|
| 716 |
+
"100345": {
|
| 717 |
+
"content": "<|dummy_81|>",
|
| 718 |
+
"lstrip": true,
|
| 719 |
+
"normalized": false,
|
| 720 |
+
"rstrip": true,
|
| 721 |
+
"single_word": false,
|
| 722 |
+
"special": true
|
| 723 |
+
},
|
| 724 |
+
"100346": {
|
| 725 |
+
"content": "<|dummy_82|>",
|
| 726 |
+
"lstrip": true,
|
| 727 |
+
"normalized": false,
|
| 728 |
+
"rstrip": true,
|
| 729 |
+
"single_word": false,
|
| 730 |
+
"special": true
|
| 731 |
+
},
|
| 732 |
+
"100347": {
|
| 733 |
+
"content": "<|dummy_83|>",
|
| 734 |
+
"lstrip": true,
|
| 735 |
+
"normalized": false,
|
| 736 |
+
"rstrip": true,
|
| 737 |
+
"single_word": false,
|
| 738 |
+
"special": true
|
| 739 |
+
},
|
| 740 |
+
"100348": {
|
| 741 |
+
"content": "<|dummy_84|>",
|
| 742 |
+
"lstrip": true,
|
| 743 |
+
"normalized": false,
|
| 744 |
+
"rstrip": true,
|
| 745 |
+
"single_word": false,
|
| 746 |
+
"special": true
|
| 747 |
+
},
|
| 748 |
+
"100349": {
|
| 749 |
+
"content": "<|dummy_85|>",
|
| 750 |
+
"lstrip": true,
|
| 751 |
+
"normalized": false,
|
| 752 |
+
"rstrip": true,
|
| 753 |
+
"single_word": false,
|
| 754 |
+
"special": true
|
| 755 |
+
},
|
| 756 |
+
"100350": {
|
| 757 |
+
"content": "<|dummy_86|>",
|
| 758 |
+
"lstrip": true,
|
| 759 |
+
"normalized": false,
|
| 760 |
+
"rstrip": true,
|
| 761 |
+
"single_word": false,
|
| 762 |
+
"special": true
|
| 763 |
+
},
|
| 764 |
+
"100351": {
|
| 765 |
+
"content": "<|dummy_87|>",
|
| 766 |
+
"lstrip": true,
|
| 767 |
+
"normalized": false,
|
| 768 |
+
"rstrip": true,
|
| 769 |
+
"single_word": false,
|
| 770 |
+
"special": true
|
| 771 |
+
}
|
| 772 |
+
},
|
| 773 |
+
"bos_token": "<|endoftext|>",
|
| 774 |
+
"chat_template": "{% for message in messages %}{% if (message['role'] == 'system') %}{{'<|im_start|>system<|im_sep|>' + message['content'] + '<|im_end|>'}}{% elif (message['role'] == 'user') %}{{'<|im_start|>user<|im_sep|>' + message['content'] + '<|im_end|><|im_start|>assistant<|im_sep|>'}}{% elif (message['role'] == 'assistant') %}{{message['content'] + '<|im_end|>'}}{% endif %}{% endfor %}",
|
| 775 |
+
"clean_up_tokenization_spaces": false,
|
| 776 |
+
"eos_token": "<|endoftext|>",
|
| 777 |
+
"extra_special_tokens": {},
|
| 778 |
+
"model_max_length": 16384,
|
| 779 |
+
"pad_token": "<|endoftext|>",
|
| 780 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 781 |
+
"unk_token": "<|endoftext|>"
|
| 782 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|