Self-evolving modular memory LLM framework — biological memory × formal verification × industrial IoT mesh × TUI HITL
Project description
llive
Self-evolving modular memory LLM framework — 生物学的記憶モデル × 形式検証 × 産業 IoT メッシュ × TUI HITL の交差点で設計された自己進化型 LLM 基盤。
llive は、固定された Decoder-only LLM コアの周辺に、可変長 BlockContainer・4 層外部記憶(semantic / episodic / structural / parameter)・審査付き構造進化を組み合わせることで、コア重みを再学習せず新能力を継続的に取り込める研究開発フレームワークです。
llmesh(マルチプロトコル LLM ゲートウェイ)と llove(TUI dashboard)の両ファミリーと統合運用できることを第一級要件としています。
設計の核
- 固定コア + 可変周辺 — Adapter / LoRA / 外部記憶 / 可変 BlockContainer で能力を吸収
- 4 層メモリの責務分離 — semantic(知識)/ episodic(経験)/ structural(関係)/ parameter(差分重み)
- 宣言的構造記述 — sub-block 列を YAML で表現、AI が提案・比較しやすい
- 審査付き自己進化 — オンラインは memory write と軽微 routing のみ、構造変更はオフライン審査経由
- 生物学的記憶モデル直接埋め込み — 海馬-皮質 consolidation cycle、surprise score、phase transition
- 形式検証付き promotion — Lean / Z3 / TLA+ による構造的不変量検査を LLM 評価前に挟む
- llmesh / llove ファミリー統合 — 産業 IoT センサを直接 episodic memory に、TUI で HITL 完結
- TRIZ アイデア出しを内蔵 — 40 原理 + 39×39 矛盾マトリクス + ARIZ + 9 画法を mutation policy として組込み、メトリクスから矛盾を自動検出 → 原理マッピング → RAD 裏付け → CandidateDiff 生成までを自走
既存類似研究との位置づけ
| 既存系 | 重なる範囲 | llive の差別化 |
|---|---|---|
| MemGPT / LongMem | 階層メモリ | 4 層分離 + phase transition + 署名 zone |
| AutoML-Zero / NAS-LLM | 構造探索 | 形式検証 gate + multi-precision shadow + 失敗データ化 |
| Self-Refine / Reflexion | 自己批評 | online/offline 分離 + llove TUI HITL staging |
| MERA / ModularLLM | モジュラー化 | 可変長 BlockContainer YAML + plugin registry |
| AutoGPT 系 | エージェント | llmesh 産業 IoT 直結 + llove TUI |
ステータス
- v0.2.0 (2026-05-13) — Phase 2: Adaptive Modular System 完了。4 層メモリ + surprise-gated write + consolidation cycle + LLM Wiki 統合 + 並行パイプライン。308 tests / 99% coverage / 0 lint warnings。
- v0.1.1 (2026-05-13) — Phase 1: Minimal Viable Research Platform。PyPI 初回公開。
- 次 — Phase 3: Controlled Self-Evolution (EVO-03〜08 / TRIZ-02〜07 / LLW-04〜05)。Phase 5+ で Rust 高速化 (要件 v0.7 定義済)。
インストール
pip install llmesh-llive # core
pip install llmesh-llive[torch] # HF transformers + faiss + peft + hdbscan
pip install llmesh-llive[ingest] # 外部 ingest CLI 用 (pypdf / arxiv / readability)
pip install llmesh-llive[llm] # AnthropicCompileLLM (consolidation 本番用)
pip install llmesh-llive[dev] # 開発依存 (pytest / hypothesis / ruff)
ドキュメント
- 要件定義 v0.1(原型)
- 要件定義 v0.2 追補章(TRIZ + 設計パターン + llmesh/llove 統合)
- 要件定義 v0.3 (TRIZ 自己進化)
- 要件定義 v0.4 (LLM Wiki integration)
- 要件定義 v0.5 (spatial memory)
- 要件定義 v0.6 (concurrency)
- 要件定義 v0.7 (Rust acceleration)
- ロードマップ
- 変更履歴
ファミリー
- llmesh — マルチプロトコル LLM ゲートウェイ、産業 IoT 対応
- llove — TUI dashboard、可視化と HITL
- llmesh-suite — llmesh + llove のメタパッケージ
- llive — 自己進化型モジュラー記憶 LLM 基盤(本リポジトリ)
ライセンス
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llmesh_llive-0.2.0.tar.gz.
File metadata
- Download URL: llmesh_llive-0.2.0.tar.gz
- Upload date:
- Size: 187.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
299977dada8d3d735e7d5bd050107d08845a958c24cf7aa4b5e89dcfbc1842e1
|
|
| MD5 |
418160beb4d89059cc24914766f3988f
|
|
| BLAKE2b-256 |
73fe1a3e09198b8b38d4febb70333a526e23ccc4a63b9adcce08925c3c73a7db
|
File details
Details for the file llmesh_llive-0.2.0-py3-none-any.whl.
File metadata
- Download URL: llmesh_llive-0.2.0-py3-none-any.whl
- Upload date:
- Size: 99.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dc5c783827d9e17086589e6dbfdb7c26d45e04e05d85e5e664a298d1b42d08d
|
|
| MD5 |
792c31dfc5894b088824a36f831e4239
|
|
| BLAKE2b-256 |
e4c1d6ddf9cdcbe44b9b7447ec59a09bb123ab02d7b191921e94fe7e1f0a9601
|