본문으로 건너뛰기
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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬