Langsung ke konten
Skillpedia
API & server (backend)5.7k · #14750

hf-cache-models

Fungsinya

Skill ini mengajari agent cara memeriksa model apa saja yang tersedia di server MLX-VLM yang sedang berjalan. Cocok untuk Anda yang ingin melihat model cache atau kustom dan mengetahui apakah tiap model sudah dimuat.

Kapan dipakai

  • ✓Saat pengguna ingin melihat model mana saja yang bisa dipakai server yang sedang berjalan.
  • ✓Saat pengguna perlu memastikan apakah sebuah model sudah dimuat.
  • ✓Saat pengguna punya folder model kustom dan ingin server mendaftarkannya.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/Blaizzy/mlx-vlm/blob/main/skills/skills/hf-cache-models/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Model apa saja yang bisa dilihat server MLX-VLM saya sekarang, dan mana yang sudah dimuat?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memanggil alamat daftar model di server, lalu membaca hasilnya yang menampilkan ID tiap model dan statusnya apakah sudah dimuat. Pemeriksaan ini tidak memuat bobot model.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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").

Pertanyaan umum

Apakah melihat daftar model juga memuatnya?

Tidak. Skill ini menyebutkan bahwa pencarian model tidak memuat bobot atau menjalankan kode checkpoint.

Apakah daftar juga mencakup folder kustom saya?

Ya, jika server disiapkan dengan direktori model kustom.

Apakah model yang terdaftar selalu bisa dipakai?

Belum tentu. Skill ini menyebutkan bahwa daftar tersebut tidak membuktikan bahwa pembuatan teks berhasil.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
5.7k
Peringkat
#14750
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa