cli-inference
하는 일
이 스킬은 터미널에서 MLX-VLM 비전 및 언어 모델을 실행하는 방법을 에이전트에게 가르칩니다. 텍스트, 이미지, 오디오 입력을 다루며, 로딩이나 처리 관련 오류를 고치는 데 도움을 줍니다.
사용하는 경우
- ✓사용자가 명령줄에서 Mac으로 비전 또는 언어 모델을 실행하고 싶을 때.
- ✓MLX-VLM 명령이 모델, 프롬프트, 누락된 가중치에 관한 오류를 낼 때.
- ✓이미지나 오디오 파일로 모델을 테스트하는 반복 가능한 명령이 필요할 때.
스킬 링크
https://github.com/Blaizzy/mlx-vlm/blob/main/skills/skills/cli-inference/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 로컬 MLX-VLM 모델로 이 이미지를 설명하는 명령을 보여 주세요. 답변은 짧게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 모델, 프롬프트, 미디어 파일을 확인하고, 최신 옵션을 알기 위해 명령의 도움말 출력을 읽은 뒤, 작업에 맞는 명령을 만듭니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
CLI Inference
Use this workflow for uv run mlx_vlm.generate and related command-line inference tasks.
First Checks
- Identify the model ID or local path, modality, prompt, media files, and expected output.
- Prefer an existing local model path or cached Hugging Face model when reproducing. Do not download a large model unless the user asks.
- Check model-specific docs first when the family has a README under
mlx_vlm/models/<family>/README.md. - Use
uv run mlx_vlm.generate --helpto verify current flags before giving a final command.
Command Patterns
Text:
uv run mlx_vlm.generate \
--model <model-or-path> \
--prompt "Write a short answer." \
--max-tokens 128
Image:
uv run mlx_vlm.generate \
--model <model-or-path> \
--image /path/to/image.jpg \
--prompt "Describe this image." \
--max-tokens 128
Audio or multimodal:
uv run mlx_vlm.generate \
--model <model-or-path> \
--image /path/to/image.jpg \
--audio /path/to/audio.wav \
--prompt "Describe what you see and hear." \
--max-tokens 128
More Flags & Modalities
uv run mlx_vlm.generate --help is the source of truth (the CLI lives in the mlx_vlm/generate/ package). Beyond --model/--prompt/--image/--audio/--max-tokens, common flags:
--chat— interactive multi-turn session.--adapter-path— apply a LoRA adapter.--eos-tokensand sampling flags — use greedy/low-temp when debugging quality.--trust-remote-code— needed for some custom processors.--kv-bits/--kv-quant-scheme/--max-kv-size— quantized/bounded KV cache.--draft-model/--draft-kind— speculative decoding.- Image generation/editing:
--output-modality image,--output <file>, and the--diffusion-*flags drive diffusion image models — not just text-out VLMs.
Reproducibility Rules
- Include the exact command, model ID/path, media file type and size, Python version, package version or git commit, and full error.
- Use low-temperature or greedy settings when debugging quality or regressions.
- Bound output with
--max-tokens. - Preserve shell quoting exactly, especially prompts with JSON, XML-like thinking tokens, or newlines.
- If the failure depends on an image/audio/video file, record dimensions, duration, codec, and whether a small synthetic input reproduces it.
Common Failure Routing
model_typeunsupported: inspectconfig.jsonand current folders undermlx_vlm/models/.- Missing weights: check for
.safetensorsormodel.safetensors.index.json. - Processor/chat template errors: inspect
processing_*.py,prompt_utils.py, and model-specific README examples. - Media shape errors: test one image/audio/video item first, then multi-input cases.
- If the user needs an issue report rather than a fix, switch to
Skill("mlx-vlm-skills:reproducible-github-issues").
Validation
- Run the smallest command that exercises the requested modality.
- For code changes touching CLI parsing, run
uv run pytest mlx_vlm/tests/test_cli.py -q. - For generation behavior, prefer focused tests such as
test_generate.py,test_processors.py, or a model-specific test file before broad suites.
자주 묻는 질문
이 스킬은 큰 모델을 내려받나요?
사용자가 요청하지 않으면 큰 모델을 내려받지 않도록 스킬이 안내합니다.
오디오와 비디오도 다룰 수 있나요?
네. 이미지, 오디오, 비디오 입력을 다룹니다.
옵션은 어디에서 먼저 확인하나요?
명령의 도움말 출력이 기준이라고 스킬이 설명합니다.
상세 정보
작성자의 원본 설명
Use this skill when the user wants to run or debug MLX-VLM inference from the command line, including uv run mlx_vlm.generate, image/audio/video inputs, local model paths, Hugging Face model IDs, deterministic repro commands, and CLI errors around processors, prompts, model loading, or missing weights.
repo: Blaizzy/mlx-vlm
인기도
- GitHub 스타
- 5.7k
- 순위
- #14748
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
convert-quantize
5.7kHugging Face 모델을 MLX 형식으로 변환하고 양자화로 줄이며, 로컬 기기에 맞는 비트 크기, 모드, 보정을 고르도록 에이전트를 돕습니다.
hf-cache-models
5.7k에이전트가 실행 중인 MLX-VLM 서버가 볼 수 있는 모델을 캐시, 사용자 정의, 로드 여부까지 포함해 확인하도록 돕습니다.
reproducible-github-issues
5.7k에이전트가 MLX-VLM의 버그나 느린 결과에 대해 환경 세부 정보, 정확한 명령, 작은 예제를 담은 재현 가능한 GitHub 이슈를 작성하도록 돕습니다.
server-inference
5.7k상태 확인, 채팅과 responses 요청, 스트리밍, 흔한 요청 오류를 다루며 MLX-VLM API 서버를 실행하고 디버그하도록 에이전트를 돕습니다.