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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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.jsonor a pipelinemodel_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
Comments
- …
More skills from this repository
cli-inference
5.7kHelps your agent run or troubleshoot MLX-VLM model inference from the command line, with text, image, and audio inputs, and find the right flags for each task.
convert-quantize
5.7kHelps your agent convert a Hugging Face model into MLX format and shrink it with quantization, choosing the bit size, mode, and calibration for a local device.
reproducible-github-issues
5.7kHelps your agent write a clear, reproducible GitHub issue for MLX-VLM, with environment details, exact commands, and a small example, for bugs or slow results.
server-inference
5.7kHelps your agent run and debug the MLX-VLM API server, covering health checks, chat and responses requests, streaming, and common request errors.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.