Downloads · 30 days
0
kofdai/athens
athens is a machine learning model from kofdai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Nov 5, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py42.3 KB · 84%
From the Hugging Face model README
現代の多くのAIは、文脈を維持することで会話の連続性を保ちますが、その代償として過去の対話や学習済みの「常識」に思考が「囚われ」、自由で創造的な発想が阻害されることがあります。
「アテネ」は、この課題を解決するために設計された、新しい思考アーキテクチャを持つAIです。その核心は**「二相推論(Two-Phase Inference)」と、「LPS(潜在パターンストア)」**と呼ばれる独自の記憶システムにあります。
LPS (Latent Pattern Store) - 「薄い霧」の記憶: アテネの記憶は、常にアクセス可能なデータベースではありません。それは、あなたとの対話から生まれたキーワードやトピックのパターンのみがベクトルとして漂う、「薄い霧」のようなものです。この霧には、創造性の阻害要因となる一般的な常識や倫理は含まれていません。あなたの入力が「トリガー」となった時だけ、霧の中から関連する記憶が姿を現します。
二相推論 (Two-Phase Inference) - 思考の分離:
このプロセスを経て、アテネは「常識を超えた発想」と「それを形にするための知性」を両立させます。さらに、生成された結果から記憶すべきコンセプトを自己抽出し、LPSにフィードバックする**「フェーズ3:記憶の定着」**によって、アテネはあなたとの対話を通じて永続的に成長していきます。
athens_main.py: 二相(三相)推論パイプライン全体を制御する、プロジェクトの心臓部。lps.py: テキストをベクトル化し、類似度検索を行う「LPS」の実装。記憶の追加、検索、保存、読み込みを管理します。リポジトリのクローン:
git clone https://huggingface.co/YOUR-USERNAME/athens # あなたのリポジトリ名に置き換えてください
cd athens
仮想環境の構築 (推奨):
python3 -m venv venv
source venv/bin/activate
依存ライブラリのインストール:
pip install -r requirements.txt
Ollamaのセットアップ: このプロジェクトは、ローカルで動作するOllamaサーバーを必要とします。
ollama pull llama3)LPS(記憶ストア)の初期化:
最初に一度だけ、lps.py を直接実行して、LPSのデータストアを初期化します。
python3 lps.py
アテネの起動:
athens_main.py を実行します。--model 引数で、Ollamaで利用したいモデル名を指定できます。指定しない場合のデフォルトは llama3 です。
基本的な実行:
python3 athens_main.py
モデルを指定して実行:
# gemma2:9b を使用する場合
python3 athens_main.py --model gemma2:9b
# あなたがファインチューニングしたモデルを使用する場合
python3 athens_main.py --model your-finetuned-model-name
対話の開始: 「対話を開始します。」と表示されたら、プロンプトを入力してEnterキーを押してください。「exit」と入力すると終了します。
Many modern AIs maintain conversational continuity by preserving context, but at the cost of their thinking being "trapped" by past dialogues or learned "common sense," which can hinder free and creative ideation.
"Athens" is an AI designed to solve this problem with a new thinking architecture. Its core lies in "Two-Phase Inference" and a unique memory system called "LPS (Latent Pattern Store)."
LPS (Latent Pattern Store) - "Thin Mist" Memory: Athens' memory is not a constantly accessible database. It's like a "thin mist" where only patterns of keywords and topics generated from your conversations drift as vectors. This mist does not contain common sense or ethics that hinder creativity. Related memories emerge from the mist only when your input acts as a "trigger."
Two-Phase Inference - Separation of Thought:
Through this process, Athens achieves both "ideas beyond common sense" and "the intelligence to bring them to fruition." Furthermore, by self-extracting concepts to be remembered from the generated results and feeding them back into LPS in "Phase 3: Memory Consolidation," Athens continuously grows through its interactions with you.
athens_main.py: The heart of the project, controlling the entire two-phase (or three-phase) inference pipeline.lps.py: Implementation of "LPS," which vectorizes text and performs similarity searches. Manages memory addition, search, saving, and loading.Clone the repository:
git clone https://huggingface.co/YOUR-USERNAME/athens # Replace with your repository name
cd athens
Create a virtual environment (recommended):
python3 -m venv venv
source venv/bin/activate
Install dependencies:
pip install -r requirements.txt
Ollama Setup: This project requires a locally running Ollama server.
ollama pull llama3).Initialize LPS (Memory Store):
Run lps.py once to initialize the LPS data store.
python3 lps.py
Launch Athens:
Run athens_main.py. You can specify the desired Ollama model name with the --model argument. The default is llama3 if not specified.
Basic execution:
python3 athens_main.py
Execution with a specified model:
# To use gemma2:9b
python3 athens_main.py --model gemma2:9b
# To use your fine-tuned model
python3 athens_main.py --model your-finetuned-model-name
Start Interaction: When "対話を開始します。" (Starting interaction.) is displayed, enter your prompt and press Enter. Type "exit" to quit.