Skip to content
Skillpedia
APIs & servers (backend)5.7k · #14750

hf-cache-models

What it does

This skill teaches an agent how to check which models are available on a running MLX-VLM server. It is for people who want to see cached or custom models and whether each one is loaded.

When to use it

  • ✓When a user wants to see which models a running server can use.
  • ✓When a user needs to check whether a model is already loaded.
  • ✓When a user has custom model folders and wants the server to list them.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/Blaizzy/mlx-vlm/blob/main/skills/skills/hf-cache-models/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Which models can my running MLX-VLM server see right now, and which ones are loaded?”

5 new skills a week. 1 minute to read.

How it works

The agent calls the server's model list address and reads the returned list, which shows each model ID and whether it is loaded. The check does not load the weights.

Technical content (original SKILL.md)

Original text by the author, straight from 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").

FAQ

Does listing models load them?

No. The skill says discovery does not load weights or run checkpoint code.

Does the list include my custom folders?

Yes, if the server was set up with custom model directories.

Does a listed model always work?

Not necessarily. The skill says the list does not prove that generation works.

Details

Original description by the author

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

Popularity

GitHub stars
5.7k
Ranking position
#14750
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills