Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)5.7k · #14750

hf-cache-models

Skill này làm gì

Skill này dạy agent cách kiểm tra model nào đang dùng được trên server MLX-VLM đang chạy. Skill dành cho người muốn xem các model đã cache hoặc tùy chỉnh và xem model nào đã được tải.

Khi nào nên dùng

  • ✓Khi người dùng muốn xem những model nào server đang chạy có thể dùng.
  • ✓Khi người dùng cần kiểm tra một model đã được tải hay chưa.
  • ✓Khi người dùng có thư mục model tùy chỉnh và muốn server liệt kê chúng.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/Blaizzy/mlx-vlm/blob/main/skills/skills/hf-cache-models/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hiện tại server MLX-VLM đang chạy của tôi thấy những model nào, và model nào đã được tải?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent gọi địa chỉ danh sách model của server và đọc danh sách trả về, trong đó hiện ID từng model và việc model đã được tải hay chưa. Thao tác kiểm tra này không tải trọng số.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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").

Câu hỏi thường gặp

Liệt kê model có tải chúng lên không?

Không. Skill nói việc khám phá không tải trọng số và không chạy mã checkpoint.

Danh sách có gồm thư mục tùy chỉnh của tôi không?

Có, nếu server được thiết lập với các thư mục model tùy chỉnh.

Model nào trong danh sách cũng chạy được chứ?

Chưa chắc. Skill nói danh sách không chứng minh rằng việc sinh nội dung sẽ hoạt động.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
5.7k
Vị trí xếp hạng
#14750
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự