Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
context-segmentation — ローカルAIエージェントにおける長期的タスク向けのマルチエージェント自動コンテキスト管理 | Kitploit
ツール/GitHubGitHub/9xeb/context-segmentation
CTF機械学習論文と研究学習と教育AIセキュリティラボと実践
GitHub9xeb/context-segmentation

context-segmentation

ローカルAIエージェントにおける長期的タスク向けのマルチエージェント自動コンテキスト管理

リポジトリを見る
12ヶ月前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

SLMエージェントのためのコンテキストセグメンテーション

これは、科学論文 Evaluating Context Segmentation in Locally Deployable SLMs for Cybersecurity CTF Tasks で提案されたソリューションの実装です。

セットアップ

Python 3.12.3+ がインストールされていること、および Docker engine があることを確認してください。

Python環境

root@kitploit:~
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt

llama.cpp

Vulkanでllama.cppを起動する

root@kitploit:~
docker compose --profile vulkan up -d

またはCudaで

root@kitploit:~
docker compose --profile cuda up -d

モデルとコンテナのビルド

HuggingFaceから希望する大規模言語モデル(LLM)をGGUF形式でダウンロードし、intercode-ctfコンテナをビルドします。

root@kitploit:~
docker exec -it llamacpp ./llama-cli -hf unsloth/gemma-4-E2B-it-GGUF:Q4_K_M  # or any other GGUF model on HF
docker build -t intercode-ctf -f intercode/docker/ctf.Dockerfile ./intercode
docker restart llamacpp

ベンチマークの実行

戦略(plainまたはexplorer)のベンチマークをN回実行する

これは結果を $MODEL_NAME.$STRATEGY.bench ファイルに蓄積します

root@kitploit:~
OPENAI_API_BASE=http://127.0.0.1:8080/ \
OPENAI_API_KEY=1234 \ #Mock key (we run locally)
python3 intercode_test.py \
  --model unsloth/gemma-4-E2B-it-GGUF:Q4_K_M \ #HF model
  --strategy plain \ #plain or explorer
  --count 1 #N

ベンチマーク結果を確認する

root@kitploit:~
jq '.' gemma-4-E2b-it-GGUF:Q4_K_M.plain.bench

備考

ディレクトリ intercode 内のコードは princeton-nlp/intercode から取得し、私たちのセットアップで動作するように調整したものです。

ツールをダウンロード