Integrations
Collaboration between GitHub users @jasonkneen and @ExpressionsBot
Uses TensorFlow.js for efficient tensor operations in the neural memory model with operations wrapped in tf.tidy() for proper memory management
Implements a type-safe implementation with TypeScript including type-safe MCP tool definitions
Titan メモリサーバー
拡張された Titan メモリ モデルを備えたモデル コンテキスト プロトコル (MCP) サーバー実装。
概要
このプロジェクトは、生成AIシステムのメモリ機能を強化するために設計された、大規模言語モデル(LLM)用のメモリモデルを実装します。TensorFlow.jsを使用して構築され、MCPサーバーとして実装されているため、MCP対応のクライアントと簡単に統合できます。
特徴
現在実装されているもの:
- マルチヘッドアテンションメカニズム
- 階層的なメモリ構造
- 記憶状態の持続
- モデルコンテキストプロトコル(MCP)との統合
- 強化学習のための記憶再生
- LLMキャッシュ統合
- 動的メモリ割り当て
- 長期記憶の保存
- 高度なメモリ圧縮
- 持続的なタスク特有の記憶
- 勢いに基づくメモリ更新
- 構成可能なメモリ統合バリアント(MAC/MAG)
使用法
サーバーは、モデル コンテキスト プロトコル (MCP) を介していくつかのツールを公開します。
init_model
: カスタム構成でメモリモデルを初期化するforward
: モデルを順方向にパスするtrain_step
: 単一のトレーニングステップを実行するtrain_sequence
: ベクトルのシーケンスでトレーニングするsave_model
: 現在のモデルの重みを保存するload_model
: 保存されたファイルからモデルの重みを読み込むget_status
: モデルの現在のステータスを取得するstore_memory_state
: 現在のメモリ状態をキーとともに保存するretrieve_memory_state
: 保存されたメモリ状態を取得するcompress_memory
: 現在のメモリ状態を圧縮してスペースを節約しますmemory_replay
: 学習を強化するためにメモリリプレイトレーニングを実行します
インストール
サーバーの実行
これにより、ポート 3000 で MCP サーバーが起動します。
発達
テスト
高度な機能
記憶の再生
メモリ再生メカニズムは過去の入力と出力のペアを保存し、定期的に再学習することで学習を強化します。これにより、壊滅的な忘却を防ぎ、モデル全体のパフォーマンスを向上させます。
動的メモリ割り当て
このモデルは、入力の複雑さと驚きのレベル(予測誤差)に基づいてメモリ割り当てを動的に調整できます。これにより、複雑なパターンにはより多くのリソースを割り当て、単純なパターンは圧縮することが可能になります。
長期記憶の保存
システムは、セッションを超えて持続する長期記憶を維持します。このメモリはディスクに保存され、サーバーの起動時に読み込まれるため、学習の継続性を確保できます。
メモリ圧縮
高度な圧縮技術により、重要な情報を保持しながらメモリ使用量を削減します。これは、リソースが限られた環境での展開に特に役立ちます。
LLMキャッシュ統合
システムは頻繁にアクセスされるメモリ状態のキャッシュを維持し、繰り返し実行されるクエリのパフォーマンスを向上させ、計算オーバーヘッドを削減します。
引用
この実装を研究で使用する場合は、以下を引用してください。
ライセンス
マサチューセッツ工科大学
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
メモリ拡張モデルを使用したニューラル メモリ シーケンス学習を可能にし、状態管理、新規性検出、モデルの永続性などの機能を備え、コードの理解と生成を改善します。
Related Resources
Related MCP Servers
- -securityAlicense-qualityProvides deep source code analysis for Unreal Engine codebases, allowing AI assistants to understand C++ class structures, search code, and analyze subsystems.Last updated -71TypeScriptMIT License
- AsecurityAlicenseAqualityEnhances Claude AI with persistent memory storage for Infrastructure-as-Code components, supporting version tracking and relationship mapping for Terraform and Ansible resources.Last updated -234PythonMIT License
- -securityAlicense-qualityThis advanced memory server facilitates neural memory-based sequence learning and prediction, enhancing code generation and understanding through state maintenance and manifold optimization as inspired by Google Research's framework.Last updated -3440TypeScriptMIT License
- -securityFlicense-qualityProvides a project memory bank and RAG context provider for enhanced code understanding and management through vector embeddings, integrated with RooCode and Cline.Last updated -9Python