Views
No views yet
D2-V15 Resonance-Memory LLM is an experimental Large Language Model focusing on a custom architecture: Resonance Memory Attention. Unlike standard Transformers that treat all context equally, this model is designed to learn how to forget and when to resonate. By utilizing Adaptive Decay and Interference Gating, it aims to process long context more efficiently by explicitly filtering out noise and keeping only crucial information.D2-V15 共振記憶大模型 是一個實驗性質的語言模型,核心為自定義的 Resonance Memory Attention (共振記憶注意力) 架構。有別於標準 Transformer,本模型旨在讓 AI 學會「主動遺忘」與「共振增強」。透過自適應衰減 (Adaptive Decay) 與干涉門控 (Interference Gating),模型能更有效地處理長文本,主動過濾雜訊並保留關鍵資訊。
ELU(x) + 1.0 to ensure strictly positive values, a prerequisite for linear-time memory accumulation.x passes through a Sequential Bottleneck to generate amplitude, phase, and raw decay parameters. These feed into an Interference Equation (outputting a sigmoid gate) that dictates how strongly new information should resonate with the existing state.cumsum) to apply an exponential decay factor across the sequence in parallel, smoothly updating the memory states (kv and z). This enables the model to actively "forget" irrelevant tokens over time.ELU(x) + 1.0 轉換,確保數值恆正,這是線性時間記憶累積的必要條件。x 通過 Sequential Bottleneck 生成振幅、相位與原始衰減參數。這些參數會進入干涉方程式並輸出 Sigmoid Gate,決定新資訊與當前記憶的「共振強度」。cumsum) 在序列上並行套用指數衰減因子,平滑地更新記憶狀態 (kv 與 z)。這賦予了模型隨時間「主動遺忘」無關 Token 的強大能力。
1import torch
2from ResonanceBottleneckLLM import D2V15Model
3
4# Initialization
5vocab_size = 16384
6d_model = 768
7n_layers = 12
8device = "cuda" if torch.cuda.is_available() else "cpu"
9
10# Load Model
11model = D2V15Model(vocab_size, d_model, n_layers).to(device)
12ckpt = torch.load("d2_v15_resonance_plus.pth", map_location=device)
13model.load_state_dict(ckpt['model_state_dict'])
14model.eval()
15
16print("Model successfully loaded! Generation script coming soon...")