Instructions to use moelanoby/kok-baseV2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use moelanoby/kok-baseV2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="moelanoby/kok-baseV2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("moelanoby/kok-baseV2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Delete modeling_bucket-memory-model2.py
Browse files- modeling_bucket-memory-model2.py +0 -352
modeling_bucket-memory-model2.py
DELETED
|
@@ -1,352 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
import torch.nn as nn
|
| 3 |
-
import torch.nn.functional as F
|
| 4 |
-
from transformers import AutoTokenizer, PretrainedConfig, AutoConfig, AutoModel
|
| 5 |
-
import os
|
| 6 |
-
import numpy as np
|
| 7 |
-
import json
|
| 8 |
-
|
| 9 |
-
# Enhanced configuration class with HuggingFace compatibility
|
| 10 |
-
class BucketMemoryConfig(PretrainedConfig):
|
| 11 |
-
model_type = "bucket-memory-model2"
|
| 12 |
-
|
| 13 |
-
def __init__(
|
| 14 |
-
self, vocab_size=30000, d_model=512, num_layers=6, num_buckets=8,
|
| 15 |
-
min_bucket_size=1, max_bucket_size=32, max_seq_length=1024, dropout=0.1,
|
| 16 |
-
use_flash_attention=True, num_attention_heads=8, **kwargs
|
| 17 |
-
):
|
| 18 |
-
super().__init__(**kwargs)
|
| 19 |
-
self.vocab_size = vocab_size
|
| 20 |
-
self.d_model = d_model
|
| 21 |
-
self.num_layers = num_layers
|
| 22 |
-
self.num_buckets = num_buckets
|
| 23 |
-
self.min_bucket_size = min_bucket_size
|
| 24 |
-
self.max_bucket_size = max_bucket_size
|
| 25 |
-
self.max_seq_length = max_seq_length
|
| 26 |
-
self.dropout = dropout
|
| 27 |
-
self.use_flash_attention = use_flash_attention
|
| 28 |
-
self.num_attention_heads = num_attention_heads
|
| 29 |
-
|
| 30 |
-
class DynamicBucketMemory(nn.Module):
|
| 31 |
-
def __init__(self, embedding_dim=512, num_buckets=8, min_bucket_size=1, max_bucket_size=32,
|
| 32 |
-
compression_factor=0.8, decay_rate=0.05):
|
| 33 |
-
super().__init__()
|
| 34 |
-
self.embedding_dim = embedding_dim
|
| 35 |
-
self.num_buckets = num_buckets
|
| 36 |
-
self.min_bucket_size = min_bucket_size
|
| 37 |
-
self.max_bucket_size = max_bucket_size
|
| 38 |
-
self.decay_rate = decay_rate
|
| 39 |
-
|
| 40 |
-
# Initialize bucket sizes logarithmically
|
| 41 |
-
sizes = np.logspace(np.log10(min_bucket_size), np.log10(max_bucket_size), num_buckets).astype(int)
|
| 42 |
-
self.bucket_sizes = np.maximum(sizes, min_bucket_size).tolist()
|
| 43 |
-
|
| 44 |
-
# Memory structures
|
| 45 |
-
self.memory_buckets = None
|
| 46 |
-
self.memory_age = None
|
| 47 |
-
self.bucket_importance = nn.Parameter(torch.ones(num_buckets))
|
| 48 |
-
|
| 49 |
-
# Neural components
|
| 50 |
-
self.query_proj = nn.Linear(embedding_dim, embedding_dim)
|
| 51 |
-
self.key_proj = nn.Linear(embedding_dim, embedding_dim)
|
| 52 |
-
self.value_proj = nn.Linear(embedding_dim, embedding_dim)
|
| 53 |
-
self.output_proj = nn.Linear(embedding_dim, embedding_dim)
|
| 54 |
-
self.input_norm = nn.LayerNorm(embedding_dim)
|
| 55 |
-
self.output_norm = nn.LayerNorm(embedding_dim)
|
| 56 |
-
|
| 57 |
-
self.bucket_selector = nn.Sequential(
|
| 58 |
-
nn.Linear(embedding_dim, num_buckets * 2),
|
| 59 |
-
nn.GELU(),
|
| 60 |
-
nn.Linear(num_buckets * 2, num_buckets),
|
| 61 |
-
nn.Softmax(dim=-1)
|
| 62 |
-
)
|
| 63 |
-
|
| 64 |
-
self.apply(self._init_weights)
|
| 65 |
-
|
| 66 |
-
def _init_weights(self, module):
|
| 67 |
-
if isinstance(module, nn.Linear):
|
| 68 |
-
nn.init.normal_(module.weight, mean=0.0, std=0.02)
|
| 69 |
-
if module.bias is not None:
|
| 70 |
-
nn.init.zeros_(module.bias)
|
| 71 |
-
elif isinstance(module, nn.LayerNorm):
|
| 72 |
-
nn.init.ones_(module.weight)
|
| 73 |
-
nn.init.zeros_(module.bias)
|
| 74 |
-
|
| 75 |
-
def _initialize_memory(self, batch_size, device):
|
| 76 |
-
if self.memory_buckets is None:
|
| 77 |
-
self.memory_buckets = [torch.zeros(batch_size, size, self.embedding_dim, device=device)
|
| 78 |
-
for size in self.bucket_sizes]
|
| 79 |
-
self.memory_age = [torch.zeros(batch_size, size, device=device) for size in self.bucket_sizes]
|
| 80 |
-
|
| 81 |
-
def forward(self, input_data, memory_update=True):
|
| 82 |
-
# Handle dimension issues
|
| 83 |
-
while input_data.dim() > 3:
|
| 84 |
-
input_data = input_data.squeeze(0)
|
| 85 |
-
if input_data.dim() == 4:
|
| 86 |
-
input_data = input_data.squeeze(-1)
|
| 87 |
-
if input_data.dim() == 2:
|
| 88 |
-
input_data = input_data.unsqueeze(-1)
|
| 89 |
-
if self.embedding_dim > 1:
|
| 90 |
-
input_data = input_data.expand(-1, -1, self.embedding_dim)
|
| 91 |
-
|
| 92 |
-
batch_size, seq_len, _ = input_data.size()
|
| 93 |
-
device = input_data.device
|
| 94 |
-
|
| 95 |
-
normalized_input = self.input_norm(input_data)
|
| 96 |
-
|
| 97 |
-
# Initialize memory if needed
|
| 98 |
-
if self.memory_buckets is None or len(self.memory_buckets[0]) != batch_size:
|
| 99 |
-
self._initialize_memory(batch_size, device)
|
| 100 |
-
|
| 101 |
-
# Determine which buckets to use
|
| 102 |
-
avg_input_features = normalized_input.mean(dim=1)
|
| 103 |
-
bucket_weights = self.bucket_selector(avg_input_features)
|
| 104 |
-
|
| 105 |
-
# Retrieve from memory (simplified)
|
| 106 |
-
projected_query = self.query_proj(normalized_input)
|
| 107 |
-
outputs = torch.zeros(batch_size, seq_len, self.embedding_dim, device=device)
|
| 108 |
-
|
| 109 |
-
for b in range(self.num_buckets):
|
| 110 |
-
if bucket_weights[:, b].max() < 0.05:
|
| 111 |
-
continue
|
| 112 |
-
|
| 113 |
-
relevance = torch.bmm(
|
| 114 |
-
projected_query,
|
| 115 |
-
self.memory_buckets[b].transpose(1, 2)
|
| 116 |
-
) / (self.embedding_dim ** 0.5)
|
| 117 |
-
|
| 118 |
-
age_penalty = torch.exp(-self.memory_age[b] * 0.7).unsqueeze(1)
|
| 119 |
-
relevance *= age_penalty
|
| 120 |
-
|
| 121 |
-
retrieval_weights = F.softmax(relevance, dim=-1)
|
| 122 |
-
retrieved_values = torch.bmm(retrieval_weights, self.memory_buckets[b])
|
| 123 |
-
|
| 124 |
-
importance_scale = torch.sigmoid(self.bucket_importance[b])
|
| 125 |
-
outputs += retrieved_values * importance_scale * bucket_weights[:, b].view(batch_size, 1, 1)
|
| 126 |
-
|
| 127 |
-
memory_output = self.output_proj(outputs)
|
| 128 |
-
|
| 129 |
-
# Update memory if training
|
| 130 |
-
if memory_update and self.training:
|
| 131 |
-
with torch.no_grad():
|
| 132 |
-
keys = self.key_proj(normalized_input)
|
| 133 |
-
values = self.value_proj(normalized_input)
|
| 134 |
-
|
| 135 |
-
for b in range(self.num_buckets):
|
| 136 |
-
bucket_size = self.bucket_sizes[b]
|
| 137 |
-
bucket_mask = (bucket_weights[:, b] > 0.1).float().view(-1, 1, 1)
|
| 138 |
-
|
| 139 |
-
if seq_len > bucket_size:
|
| 140 |
-
stride = max(1, seq_len // bucket_size)
|
| 141 |
-
indices = torch.arange(0, seq_len, stride, device=device)[:bucket_size]
|
| 142 |
-
selected_values = values[:, indices]
|
| 143 |
-
else:
|
| 144 |
-
padding = bucket_size - seq_len
|
| 145 |
-
selected_values = F.pad(values, (0, 0, 0, padding))
|
| 146 |
-
|
| 147 |
-
alpha = torch.sigmoid(self.bucket_importance[b]) * (0.8 if b > self.num_buckets // 2 else 0.2)
|
| 148 |
-
|
| 149 |
-
update = alpha * self.memory_buckets[b] + (1 - alpha) * selected_values
|
| 150 |
-
self.memory_buckets[b] = self.memory_buckets[b] * (1 - bucket_mask) + update * bucket_mask
|
| 151 |
-
|
| 152 |
-
age_mask = (1 - bucket_mask.squeeze(-1))
|
| 153 |
-
self.memory_age[b] = self.memory_age[b] * age_mask + self.decay_rate
|
| 154 |
-
|
| 155 |
-
return self.output_norm(input_data + memory_output)
|
| 156 |
-
|
| 157 |
-
# Modified transformer layer with Flash Attention
|
| 158 |
-
class BucketMemoryTransformerLayer(nn.Module):
|
| 159 |
-
def __init__(self, d_model=512, d_ff=2048, dropout=0.4, num_buckets=8,
|
| 160 |
-
min_bucket_size=1, max_bucket_size=32, use_flash_attention=True,
|
| 161 |
-
num_heads=8):
|
| 162 |
-
super().__init__()
|
| 163 |
-
self.use_flash_attention = use_flash_attention
|
| 164 |
-
self.num_heads = num_heads
|
| 165 |
-
self.head_dim = d_model // num_heads
|
| 166 |
-
|
| 167 |
-
# Self-attention components with Flash Attention support
|
| 168 |
-
self.q_proj = nn.Linear(d_model, d_model)
|
| 169 |
-
self.k_proj = nn.Linear(d_model, d_model)
|
| 170 |
-
self.v_proj = nn.Linear(d_model, d_model)
|
| 171 |
-
self.out_proj = nn.Linear(d_model, d_model)
|
| 172 |
-
|
| 173 |
-
# Keep the bucket memory as is
|
| 174 |
-
self.bucket_memory = DynamicBucketMemory(
|
| 175 |
-
embedding_dim=d_model, num_buckets=num_buckets,
|
| 176 |
-
min_bucket_size=min_bucket_size, max_bucket_size=max_bucket_size
|
| 177 |
-
)
|
| 178 |
-
|
| 179 |
-
self.norm1 = nn.LayerNorm(d_model)
|
| 180 |
-
self.norm2 = nn.LayerNorm(d_model)
|
| 181 |
-
self.norm3 = nn.LayerNorm(d_model)
|
| 182 |
-
|
| 183 |
-
self.ff = nn.Sequential(
|
| 184 |
-
nn.Linear(d_model, d_ff),
|
| 185 |
-
nn.ReLU(),
|
| 186 |
-
nn.Dropout(dropout),
|
| 187 |
-
nn.Linear(d_ff, d_model)
|
| 188 |
-
)
|
| 189 |
-
self.dropout = nn.Dropout(dropout)
|
| 190 |
-
|
| 191 |
-
def forward(self, x, attention_mask=None):
|
| 192 |
-
# Self-attention with Flash Attention
|
| 193 |
-
residual = x
|
| 194 |
-
x = self.norm1(x)
|
| 195 |
-
|
| 196 |
-
batch_size, seq_len, _ = x.shape
|
| 197 |
-
|
| 198 |
-
# Project to queries, keys, values
|
| 199 |
-
q = self.q_proj(x).view(batch_size, seq_len, self.num_heads, self.head_dim).transpose(1, 2)
|
| 200 |
-
k = self.k_proj(x).view(batch_size, seq_len, self.num_heads, self.head_dim).transpose(1, 2)
|
| 201 |
-
v = self.v_proj(x).view(batch_size, seq_len, self.num_heads, self.head_dim).transpose(1, 2)
|
| 202 |
-
|
| 203 |
-
# Use Flash Attention if available and enabled
|
| 204 |
-
if self.use_flash_attention and hasattr(F, 'scaled_dot_product_attention'):
|
| 205 |
-
# Convert attention mask if provided
|
| 206 |
-
attn_mask = None
|
| 207 |
-
if attention_mask is not None:
|
| 208 |
-
attn_mask = attention_mask.unsqueeze(1).unsqueeze(2)
|
| 209 |
-
attn_mask = (1.0 - attn_mask) * -10000.0
|
| 210 |
-
|
| 211 |
-
# Use PyTorch's native flash attention
|
| 212 |
-
attn_output = F.scaled_dot_product_attention(
|
| 213 |
-
q, k, v,
|
| 214 |
-
attn_mask=attn_mask,
|
| 215 |
-
dropout_p=self.dropout.p if self.training else 0.0,
|
| 216 |
-
is_causal=False
|
| 217 |
-
)
|
| 218 |
-
else:
|
| 219 |
-
# Fallback to standard attention
|
| 220 |
-
scores = torch.matmul(q, k.transpose(-2, -1)) / (self.head_dim ** 0.5)
|
| 221 |
-
|
| 222 |
-
if attention_mask is not None:
|
| 223 |
-
scores = scores.masked_fill(attention_mask.unsqueeze(1).unsqueeze(2) == 0, -1e9)
|
| 224 |
-
|
| 225 |
-
attn_weights = F.softmax(scores, dim=-1)
|
| 226 |
-
attn_weights = self.dropout(attn_weights)
|
| 227 |
-
attn_output = torch.matmul(attn_weights, v)
|
| 228 |
-
|
| 229 |
-
# Reshape and project back
|
| 230 |
-
attn_output = attn_output.transpose(1, 2).contiguous().view(batch_size, seq_len, -1)
|
| 231 |
-
attn_output = self.out_proj(attn_output)
|
| 232 |
-
x = residual + self.dropout(attn_output)
|
| 233 |
-
|
| 234 |
-
# Bucket memory (unchanged)
|
| 235 |
-
memory_out = self.bucket_memory(self.norm2(x))
|
| 236 |
-
x = x + self.dropout(memory_out)
|
| 237 |
-
|
| 238 |
-
# Feed-forward
|
| 239 |
-
x = x + self.dropout(self.ff(self.norm3(x)))
|
| 240 |
-
return x
|
| 241 |
-
|
| 242 |
-
# Updated model with HuggingFace compatibility
|
| 243 |
-
class BucketMemoryModel(nn.Module):
|
| 244 |
-
def __init__(self, config, adapter_kwargs=None):
|
| 245 |
-
super().__init__()
|
| 246 |
-
self.config = config
|
| 247 |
-
self.d_model = config.d_model
|
| 248 |
-
self.token_embedding = nn.Embedding(config.vocab_size, config.d_model)
|
| 249 |
-
self.pos_encoding = nn.Parameter(torch.zeros(1, config.max_seq_length, config.d_model))
|
| 250 |
-
self._init_positional_encoding(config.max_seq_length, config.d_model)
|
| 251 |
-
|
| 252 |
-
# Use config.num_attention_heads if available, otherwise calculate
|
| 253 |
-
num_heads = getattr(config, 'num_attention_heads', config.d_model // 64)
|
| 254 |
-
num_heads = max(1, num_heads) # Ensure at least 1 head
|
| 255 |
-
|
| 256 |
-
self.layers = nn.ModuleList([
|
| 257 |
-
BucketMemoryTransformerLayer(
|
| 258 |
-
d_model=config.d_model,
|
| 259 |
-
d_ff=4*config.d_model,
|
| 260 |
-
dropout=config.dropout,
|
| 261 |
-
num_buckets=config.num_buckets,
|
| 262 |
-
min_bucket_size=config.min_bucket_size,
|
| 263 |
-
max_bucket_size=config.max_bucket_size,
|
| 264 |
-
use_flash_attention=getattr(config, 'use_flash_attention', True),
|
| 265 |
-
num_heads=num_heads
|
| 266 |
-
) for _ in range(config.num_layers)
|
| 267 |
-
])
|
| 268 |
-
|
| 269 |
-
self.norm = nn.LayerNorm(config.d_model)
|
| 270 |
-
self.output_proj = nn.Linear(config.d_model, config.vocab_size)
|
| 271 |
-
self.dropout = nn.Dropout(config.dropout)
|
| 272 |
-
|
| 273 |
-
def _init_positional_encoding(self, max_len, d_model):
|
| 274 |
-
position = torch.arange(0, max_len).unsqueeze(1).float()
|
| 275 |
-
div_term = torch.exp(torch.arange(0, d_model, 2).float() * -(np.log(10000.0) / d_model))
|
| 276 |
-
pos_enc = torch.zeros(1, max_len, d_model)
|
| 277 |
-
pos_enc[0, :, 0::2] = torch.sin(position * div_term)
|
| 278 |
-
pos_enc[0, :, 1::2] = torch.cos(position * div_term)
|
| 279 |
-
self.pos_encoding.data.copy_(pos_enc)
|
| 280 |
-
|
| 281 |
-
def forward(self, input_ids, attention_mask=None, labels=None):
|
| 282 |
-
batch_size, seq_len = input_ids.size()
|
| 283 |
-
x = self.token_embedding(input_ids) * np.sqrt(self.d_model)
|
| 284 |
-
x = x + self.pos_encoding[:, :seq_len]
|
| 285 |
-
x = self.dropout(x)
|
| 286 |
-
|
| 287 |
-
# Process through transformer layers
|
| 288 |
-
for layer in self.layers:
|
| 289 |
-
x = layer(x, attention_mask)
|
| 290 |
-
|
| 291 |
-
x = self.norm(x)
|
| 292 |
-
logits = self.output_proj(x)
|
| 293 |
-
|
| 294 |
-
if labels is not None:
|
| 295 |
-
loss_fct = nn.CrossEntropyLoss()
|
| 296 |
-
loss = loss_fct(logits.view(-1, logits.size(-1)), labels.view(-1))
|
| 297 |
-
return type('ModelOutput', (), {'loss': loss, 'logits': logits})
|
| 298 |
-
return logits
|
| 299 |
-
|
| 300 |
-
def save_pretrained(self, save_directory):
|
| 301 |
-
"""Save the model to a HuggingFace format"""
|
| 302 |
-
if not os.path.exists(save_directory):
|
| 303 |
-
os.makedirs(save_directory)
|
| 304 |
-
|
| 305 |
-
# Save model weights
|
| 306 |
-
torch.save(self.state_dict(), os.path.join(save_directory, "pytorch_model.bin"))
|
| 307 |
-
|
| 308 |
-
# Save config
|
| 309 |
-
with open(os.path.join(save_directory, "config.json"), "w") as f:
|
| 310 |
-
json.dump(self.config.to_dict(), f)
|
| 311 |
-
|
| 312 |
-
@classmethod
|
| 313 |
-
def from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs):
|
| 314 |
-
"""Load a model from a pretrained model path or HF hub"""
|
| 315 |
-
config = kwargs.pop("config", None)
|
| 316 |
-
if config is None:
|
| 317 |
-
config = BucketMemoryConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
|
| 318 |
-
|
| 319 |
-
model = cls(config, *model_args, **kwargs)
|
| 320 |
-
|
| 321 |
-
# Load weights if they exist
|
| 322 |
-
if os.path.isdir(pretrained_model_name_or_path):
|
| 323 |
-
model_path = os.path.join(pretrained_model_name_or_path, "pytorch_model.bin")
|
| 324 |
-
if os.path.isfile(model_path):
|
| 325 |
-
model.load_state_dict(torch.load(model_path, map_location="cpu"))
|
| 326 |
-
|
| 327 |
-
return model
|
| 328 |
-
|
| 329 |
-
# Register with AutoConfig and AutoModel
|
| 330 |
-
AutoConfig.register("bucket-memory-model2", BucketMemoryConfig)
|
| 331 |
-
AutoModel.register(BucketMemoryConfig, BucketMemoryModel)
|
| 332 |
-
|
| 333 |
-
# Main execution script (modified to remove training)
|
| 334 |
-
if __name__ == "__main__":
|
| 335 |
-
tokenizer_name = "bert-base-uncased"
|
| 336 |
-
tokenizer = AutoTokenizer.from_pretrained(tokenizer_name)
|
| 337 |
-
|
| 338 |
-
# Create config with AutoConfig
|
| 339 |
-
config = BucketMemoryConfig(
|
| 340 |
-
vocab_size=len(tokenizer),
|
| 341 |
-
d_model=1024,
|
| 342 |
-
num_layers=12,
|
| 343 |
-
num_buckets=8,
|
| 344 |
-
min_bucket_size=1,
|
| 345 |
-
max_bucket_size=32,
|
| 346 |
-
use_flash_attention=True # Use Flash Attention
|
| 347 |
-
)
|
| 348 |
-
|
| 349 |
-
# Create model
|
| 350 |
-
model = BucketMemoryModel(config)
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