
chrishayuk/chuk-mcp-lazarus
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
メカニスティック・インタプリタビリティ MCP サーバー チャク・ラザース.
概要
メカニスティック・インタプリタビリティ MCP サーバー チャク・ラザース 任意のモデルをロードし、アクティベーションを抽出し、プローブ、ステア生成を訓練し、コンポーネントをablate - Claude(または任意のMCPクライアント)が自律的に呼び出すことができるMCPツールを介してすべて。 Claudeデスクトップコンフィグ(~/ Library/Application Support/Claude/claude desktop config.json)に追加します。 あらゆるモデルの chuk-lazarus に対応: - -- ジェムマ3 (270M--27B)、TranslateGemma 4B/12B - -- Llama 2/3、Mistral、SmolLM2 - -- Qwen 2/3 - -- IBMの花崗岩3.x/4.x (ハイブリッドMamba-2/変圧器) - -- AI21 ジャバ(ハイブリッドMamba-変圧器MOE) - -- 純粋なSSMモデル - -- コード生成 - -- GPT-2および互換性のある デフォルトのデモターゲット: (34 層, アップルシリコンに収まる). 煙テストは速度のために使用します。 フラッグシップ実験は15ステップのワークフローに従います。 1. -- load model("google/gemma-3-4b-it") 2. -- get model info() は 34 層を明らかにします 3. -- プロンプトがトークンに分割する方法を参照してください。 4. -- ベースラインモデルの出力 5. -- アクティベーションが非トリバイアルであることを確認します。 6.
概要(AI 翻訳)
メカニスティック・インタプリタビリティ MCP サーバー チャク・ラザース
任意のモデルをロードし、活性化を抽出し、プローブ、ステア生成を訓練します。 Claude(または任意のMCPクライアント)のMCPツールを介して、コンポーネントをablate autonomously を呼び出すことができます。
クイックスタート
クロードデスクトップ
Claudeデスクトップコンフィグ(~/Library/Application Support/Claude/claude_desktop_config.json])に追加します。
ツール (64)
| グループ | ツール | 目的 |
お問い合わせ
| モデル | [[[T1]|ハッギングフェイスモデルをメモリにロード |
| モデル | [[T2] | 戻りアーキテクチャメタデータ |
| ジェネレーション | [[T3] | ロードモデルからテキストを生成 |
| 世代別 | [[T4] | 確率で予報 |
| ジェネレーション | [[T5] | テキストがトークン化されているかを見る |
| 世代別 | [[T6] | 層別層予測進化(キャリブレーションドレンズ) |
| ジェネレーション | [[T7] | レイヤー全体で特定のトークンの確率を追跡 |
| 世代別 | [track_race | 交差検出でレイヤー全体でN候補トークンをレース |
| ジェネレーション | [[T9] | 埋め込む空間に最も近いトークンを見つける |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
chuk-mcp-lazarus
Mechanistic interpretability MCP server wrapping chuk-lazarus.
Load any model, extract activations, train probes, steer generation, and ablate components – all via MCP tools that Claude (or any MCP client) can call autonomously.
Quick Start
# Clone and install
git clone https://github.com/chuk-ai/chuk-mcp-lazarus.git
cd chuk-mcp-lazarus
uv sync
# Run the smoke test (53 tests on SmolLM2-135M, ~3 seconds)
uv run python examples/smoke_test.py
# Run the full 15-step language transition demo
uv run python examples/language_transition_demo.py
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"lazarus": {
"command": "uv",
"args": ["run", "chuk-mcp-lazarus", "stdio"],
"cwd": "/path/to/chuk-mcp-lazarus"
}
}
}
Tools (64)
| Group | Tool | Purpose |
|---|---|---|
| Model | load_model |
Load any HuggingFace model into memory |
| Model | get_model_info |
Return architecture metadata |
| Generation | generate_text |
Generate text from the loaded model |
| Generation | predict_next_token |
Top-k next-token predictions with probabilities |
| Generation | tokenize |
Show how text is tokenized |
| Generation | logit_lens |
Layer-by-layer prediction evolution (calibrated logit lens) |
| Generation | track_token |
Track a specific token’s probability across layers |
| Generation | track_race |
Race N candidate tokens across layers with crossing detection |
| Generation | embedding_neighbors |
Find nearest tokens in embedding space (cosine similarity) |
| Activations | extract_activations |
Hidden states at specific layers and positions |
| Activations | compare_activations |
Cosine similarity + PCA across prompts |
| Attention | attention_pattern |
Per-head attention weights at specified layers |
| Attention | attention_heads |
Per-head entropy and focus analysis |
| Probing | train_probe |
Train a classifier on activations |
| Probing | evaluate_probe |
Evaluate on held-out data |
| Probing | scan_probe_across_layers |
Find the crossover layer |
| Probing | probe_at_inference |
Run a trained probe during autoregressive generation |
| Probing | list_probes |
List all trained probes |
| Steering | compute_steering_vector |
Contrastive activation addition |
| Steering | steer_and_generate |
Generate with steering applied |
| Steering | list_steering_vectors |
List all computed vectors |
| Ablation | ablate_layers |
Zero out layers, measure disruption |
| Ablation | patch_activations |
Swap activations between prompts |
| Causal | trace_token |
Which layers are causally necessary for a prediction |
| Causal | full_causal_trace |
Position × layer causal heatmap (Meng et al. style) |
| Residual | residual_decomposition |
Attention vs MLP contribution per layer |
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"lazarus": {
"command": "uv",
"args": ["run", "chuk-mcp-lazarus", "stdio"],
"cwd": "/path/to/chuk-mcp-lazarus"
}
}
}