本文へスキップ
Skillpedia
APIとサーバー(バックエンド)5.7k · #14750

hf-cache-models

できること

このスキルは、実行中のMLX-VLMサーバーで利用できるモデルを確認する方法をエージェントに教えます。キャッシュされたモデルや独自のモデルを見たい人、各モデルが読み込み済みかを知りたい人向けです。

使う場面

  • ✓実行中のサーバーが使えるモデルを確認したいとき。
  • ✓モデルがすでに読み込まれているかを確認したいとき。
  • ✓独自のモデルのフォルダーがあり、サーバーにそれを一覧表示させたいとき。

スキルのリンク

https://github.com/Blaizzy/mlx-vlm/blob/main/skills/skills/hf-cache-models/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/Blaizzy/mlx-vlm/blob/main/skills/skills/hf-cache-models/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“今、実行中のMLX-VLMサーバーからどのモデルが見えますか?どれが読み込まれていますか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、サーバーのモデル一覧のアドレスを呼び出し、各モデルのIDと読み込み済みかどうかを示す一覧を読みます。この確認では、モデルの重みは読み込みません。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

HF Cache Models

Query a running MLX-VLM server to list model candidates and their loaded status. Use its configured URL and authentication; the examples assume the default local address. See Skill("mlx-vlm-skills:server-inference") for server setup.

List Models

curl http://127.0.0.1:8080/v1/models

The JSON response's data array contains model IDs and a loaded boolean. Both /models and /v1/models include loaded models, the shared Hugging Face cache, and configured custom directories by default.

Supported Model Rule

The server checks discovered candidates with mlx_vlm/server/model_discovery.py:

  • repo type is model
  • readable model metadata exists in config.json or a pipeline model_index.json
  • nonempty safetensors weights exist, including every shard referenced by any weight index
  • all cached revisions are checked, preferring main; another revision is returned using its absolute snapshot path
  • tokenizer metadata is not required

Discovery does not load weights, execute checkpoint Python, or prove generation works. Architecture compatibility is checked when loading a model.

Custom Model Directories

Each path can be a model folder or a parent containing model folders as immediate children. Configure the server with repeated --model-dir options, or MLX_VLM_MODEL_PATHS with paths separated by os.pathsep (: on macOS/Linux).

For directories scoped to one API request, use repeated model_dir query parameters on /models or /v1/models. Paths are on the server's filesystem and are added to its configured directories without persisting them:

curl --get http://127.0.0.1:8080/v1/models \
  --data-urlencode 'model_dir=/Volumes/Models' \
  --data-urlencode 'model_dir=/Users/me/my custom model'

Reporting

When reporting the result, include:

  • server URL and any custom directories requested
  • number of model candidates
  • exact model IDs
  • which models have loaded: true

If this becomes part of a bug report, switch to Skill("mlx-vlm-skills:reproducible-github-issues").

よくある質問

モデルを一覧にすると読み込まれますか?

いいえ。探索では、重みを読み込まず、チェックポイントのコードも実行しないと、スキルは説明しています。

独自のフォルダーも一覧に出ますか?

はい。サーバーに独自のモデルのディレクトリが設定されていれば、それも出ます。

一覧にあるモデルは必ず動きますか?

必ずしもそうではありません。一覧に出ても、生成が動くことは証明されないと説明されています。

詳細

作者による元の説明

Use this skill when the user wants to list, inspect, or report cached, custom, or loaded MLX-VLM models through the server's model discovery endpoint.

repo: Blaizzy/mlx-vlm

人気

GitHubのスター
5.7k
ランキング
#14750
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル