minicpm5-deploy-mlx
하는 일
이 스킬은 Apple의 MLX 프레임워크로 Apple Silicon Mac에서 MiniCPM5를 실행하도록 AI를 안내합니다. 자신의 기기에서 가장 빠른 로컬 옵션을 원하는 Mac 사용자를 위한 스킬입니다.
사용하는 경우
- ✓M 시리즈 Mac이 있고 MiniCPM5를 로컬에서 실행하고 싶을 때.
- ✓명령줄에서 mlx_lm으로 텍스트를 생성하고 싶을 때.
- ✓Hugging Face 모델이 있고 Mac에서 MLX 형식으로 변환하고 싶은 경우.
스킬 링크
https://github.com/OpenBMB/MiniCPM/blob/main/skills/minicpm5-deploy-mlx/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Mac에서 MLX로 MiniCPM5를 실행하고, 1+1에 대해 올바른 답을 주는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 mlx-lm 도구를 설치하고, 준비된 MLX 모델로 테스트 프롬프트를 실행합니다. 이미 가지고 있는 모델을 MLX 형식으로 변환할 수도 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Deploy MiniCPM5-1B and MiniCPM5-2B with MLX (Apple Silicon)
Apple's on-device tensor framework. Highest throughput on M-series. Stays inside one Python process — no separate server, no llama.cpp build chain.
Required input
| Var | Example | Default |
|---|---|---|
MLX_REPO |
openbmb/MiniCPM5-2B-MLX (pre-converted 4-bit affine) |
required; openbmb/MiniCPM5-1B-MLX also works |
OR HF_REPO + QUANT |
openbmb/MiniCPM5-2B, 4bit or bf16 |
for local conversion |
MAX_TOKENS |
200 |
200 |
Steps
1. Install (once)
pip install "mlx-lm>=0.31" "gguf"
2A. Use a pre-converted MLX repo (recommended when available)
mlx_lm.generate --model "${MLX_REPO}" \
--prompt "<|im_start|>user
1+1=?<|im_end|>
<|im_start|>assistant
" \
--max-tokens ${MAX_TOKENS} --temp 1.0 --top-p 0.95
2B. Convert from a HF checkpoint locally (advanced)
Use mlx_lm.convert only if you have a self-trained HF fp16 checkpoint:
HF=/path/to/your-fp16-hf
# Convert: bf16
mlx_lm.convert --hf-path "$HF" --mlx-path ./minicpm5-mlx-bf16
# Convert: 4-bit (smaller / faster)
mlx_lm.convert --hf-path "$HF" --mlx-path ./minicpm5-mlx-q4 -q --q-bits 4
Then run as in 2A.
3. Validate
The reply should contain "2" for 1+1=?.
OpenAI-compatible server (mlx-lm)
mlx_lm.server --model "${MLX_REPO}" --host 127.0.0.1 --port 8000
curl http://127.0.0.1:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "default",
"messages": [{"role":"user","content":"1+1=?"}],
"temperature": 1.0, "top_p": 0.95, "max_tokens": 64
}'
Common pitfalls
- Slow first generate: MLX JIT-compiles kernels on first call (~5-10 s); subsequent calls hit the warm cache.
- Model runs past
<|im_end|>: only happens onmlx-lm < 0.31(older versions ignore multi-ideos_token_idlists). Upgrade, or pass--extra-eos-token "<|im_end|>"as a manual override —<|im_end|>is token id 130073 and is already listed ingeneration_config.jsonon 0.31+.
When NOT to use
- Not on Apple Silicon →
minicpm5-deploy-llama-cpp(CPU/CUDA) orminicpm5-deploy-vllm(CUDA) - Want a desktop GUI →
minicpm5-deploy-lmstudio(LM Studio bundles an MLX runtime) - Want one-line CLI run →
minicpm5-deploy-ollama
Reference
자주 묻는 질문
모델을 직접 변환해야 하나요?
보통은 아닙니다. 이 스킬은 준비된 MLX 저장소가 있으면 그것을 사용하라고 권장합니다.
작동하는지 어떻게 알 수 있나요?
1+1 질문에 대한 답에 숫자 2가 들어 있어야 한다고 이 스킬은 설명합니다.
로컬 서버도 실행할 수 있나요?
네. mlx_lm.server를 통한 OpenAI 호환 서버가 포함되어 있습니다.
상세 정보
작성자의 원본 설명
Run MiniCPM5-1B or MiniCPM5-2B natively on Apple Silicon with Apple's MLX framework. Use when the user has an Apple Silicon Mac and asks for "MLX", "mlx_lm", "mlx_lm.convert", "mlx_lm.generate", or wants the fastest path on Apple Silicon.
repo: OpenBMB/MiniCPM
인기도
- GitHub 스타
- 12k
- 순위
- #11533
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 9. 21.
댓글
- …
이 저장소의 다른 스킬
minicpm5-deploy-litert
12k에이전트가 Google의 LiteRT-LM 런타임과 하나의 모델 파일로 컴퓨터나 Android 휴대폰에서 MiniCPM5 모델을 실행하도록 돕습니다.
minicpm5-deploy-llama-cpp
12k에이전트에게 llama.cpp와 미리 만들어진 GGUF 파일로 CPU나 가정용 그래픽 카드에서 MiniCPM5 모델을 실행하는 방법을 보여 줍니다.
minicpm5-deploy-lmstudio
12k에이전트가 채팅 창이 있는 데스크톱 앱 LM Studio에서 MiniCPM5 모델을 실행하고, OpenAI 방식의 로컬 서버를 시작하도록 돕습니다.
minicpm5-deploy-ollama
12k에이전트에게 GGUF 파일과 몇 가지 간단한 명령으로 Mac 또는 Linux 노트북에서 Ollama로 MiniCPM5를 실행하는 방법을 가르칩니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.