Model Matrix Addのロゴ

Model Matrix Add

コミュニティ
SouthpawIN
model-matrix-add

Add a model to the TurboFit catalog and fit ladders across tiers.

概要

公開者SouthpawIN
リポジトリbot-wiki
スキル名model-matrix-add
スター
45
フォーク
5
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    SouthpawINがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Model Matrix Add」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/SouthpawIN/bot-wiki/tree/main/bots/turbofit/skills/model-matrix-add
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SouthpawIN/bot-wiki.git /tmp/bot-wiki
mkdir -p .claude/skills
cp -r /tmp/bot-wiki/bots/turbofit/skills/model-matrix-add .claude/skills/model-matrix-add
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでModel Matrix Addを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にModel Matrix Addを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Model Matrix Addは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Model matrix add

Use when Chris names a model to support. Produces catalog entries plus fit rungs, never a claim that something fits.

Procedure

  1. Measure the repo first.
    bash
    curl -s "https://huggingface.co/api/models/<repo>/tree/main?recursive=true" \
      | jq -r '.[] | select(.type=="file") | "\(.path)\t\(.size)"' \
      | awk -F'\t' '{s[$1]=$2} END {for (f in s) printf "%.2f GiB\t%s\n", s[f]/1073741824, f}' \
      | sort -n
    Sum shards per quant directory. Record the head revision with curl -s https://huggingface.co/api/models/<repo> | jq -r .sha.
  2. Classify: dense vs MoE (active params), vision (mmproj-* present), MTP (-mtp artifacts), and whether the repo ships a real quant ladder or only pre-baked memory envelopes (Flint ships Mix-12G/Mix-24G — not quants).
  3. Pick the q3 floor — smallest artifact in the Q3/IQ3 class. If the repo has no q3 (Qwen 3.8 GSQ-RCO stops at IQ3_S; DeepSeek starts at IQ1_M), record the floor in note so nobody asks for a quant that does not exist.
  4. Budget the tier. weights + KV + draft + projector ≤ usable pool. Dense 27B at 128K needs 6–10 GiB KV depending on GQA and KV quant — measure, do not assume. When in doubt, publish the smaller context rung.
  5. Write catalog variants in references/model-catalog.json:
    json
    {"id":"arete-27b-q4","name":"Arete 27B Q4_K_M","family":"Arete 27B",
     "source":"https://huggingface.co/bartowski/NousResearch_Arete-27B-GGUF",
     "revision":"<40-hex sha>","artifact":"NousResearch_Arete-27B-Q4_K_M.gguf",
     "quantization":"Q4_K_M","vision":true,"moe":false,
     "runtime_features":["vision-projector"],"roles":["main"],
     "upstream_source":"https://huggingface.co/NousResearch/Arete-27B"}
    id is kebab-case and unique; every required field present or ModelVariant validation throws.
  6. Wire rungs (or let fit_ladders.py regenerate) in references/fit-lists.json with model, quants, size_gb, context, note. Keep the tier keys as-is: dedicated 8-11gb / 12-15gb / 16-23gb / 24-63gb / 64gb+; unified 8-15gb / 16-23gb / 24-31gb / 32-47gb / 48-63gb / 64gb+.
  7. Tag requirements — MoE above the pool needs requires: strata-stream so fit_check.py stops refusing it on dedicated-VRAM physics.
  8. Wire the recipe — a catalog variant without a recipe cannot launch. references/model-recipes.json has one entry per family (binary, port, model_root, projector, methods per context) and one per variant (model file, draft, methods). Copy the nearest family; give the family a unique port; list a method for every context the catalog advertises, or the compiler fails with no method recipe for context <n>.
  9. Register the artifact — references/artifact-manifest.json needs one entry per file the recipes reference, with sha256 taken from Hugging Face's LFS oid (not computed by downloading) and size_bytes from the tree API. The manifest set must equal the referenced-file set exactly: extra shard entries fail the contract just as missing ones do.
  10. Regenerate the matrix — it is generated, never hand-edited:
bash
PYTHONPATH=src python - <<'PY'
from turbofit_runtime.model_catalog import ModelCatalog, build_configuration_matrix
import json, pathlib
cat = ModelCatalog.load(pathlib.Path("references/model-catalog.json"))
pathlib.Path("references/configuration-matrix.json").write_text(
    json.dumps(build_configuration_matrix(cat), indent=2) + "\n")
PY

If the artifact-manifest test pins the catalog length, bump that number in the same commit — it is a deliberate snapshot guard, not an obstacle. 11. Verify no regressions, comparing failure lists rather than counts (this suite has environment-dependent failures):

bash
PYTHONPATH=src pytest -q --ignore=tests/test_hermes_fit.py 2>&1 | grep ^FAILED | sort > /tmp/after
git stash && PYTHONPATH=src pytest -q --ignore=tests/test_hermes_fit.py 2>&1 | grep ^FAILED | sort > /tmp/before && git stash pop
comm -23 /tmp/after /tmp/before      # must be empty
  1. Offer, never displace. A new family is an option in check_local_options and ALLOWED_MAIN; the band default (local_main_for_vram_gb, speed_main_for_vram_gb, shared_main_for_total_memory_gb) must not change. Promotion to a ladder winner is a benchmark decision, not a catalog edit.

What "q3 or higher" means per repo

The quant ladder is whatever the uploader published, so map the floor honestly: Qwen 3.8 27B GSQ-RCO tops out at IQ3_S; Nanbeige's ladder starts at IQ2 and its q3 is IQ3_XS; Flint ships memory envelopes (Mix-12G/Mix-24G), not quants; DeepSeek starts at IQ1_M. Naming a Q4 that does not exist is the same error as inventing a size.

Refusals

  • No GGUF in the repo → do not add a variant. File it as a conversion project (Darwin 180B is the current example: 335 GiB safetensors).
  • No pinned revision → do not add. main moves.
  • A quant name that does not exist in the tree → do not invent it.

よくある質問

AIスキル「Model Matrix Add」では何ができますか?

Add a model to the TurboFit catalog and fit ladders across tiers.

TypingMindでModel Matrix Addを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Model Matrix Addはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにModel Matrix Addをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/SouthpawIN/bot-wiki/tree/main/bots/turbofit/skills/model-matrix-addを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Model Matrix Addを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Model Matrix Addで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもModel Matrix Addを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Model Matrix Add」は無料ですか?

はい。SouthpawINがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇