minicpm5-deploy-mlx
यह क्या करती है
यह स्किल आपके AI को Apple Silicon वाले Mac पर Apple के MLX फ़्रेमवर्क से MiniCPM5 चलाने का मार्गदर्शन देती है। यह उन Mac उपयोगकर्ताओं के लिए है जो अपनी मशीन पर सबसे तेज़ लोकल विकल्प चाहते हैं।
कब इस्तेमाल करें
- ✓जब आपके पास M-सीरीज़ Mac है और आप MiniCPM5 लोकली चलाना चाहते हैं।
- ✓जब आप command line से टेक्स्ट जनरेट करने के लिए mlx_lm इस्तेमाल करना चाहते हैं।
- ✓जब आपके पास Hugging Face मॉडल है और आप उसे अपने Mac पर MLX प्रारूप में बदलना चाहते हैं।
Skill का लिंक
https://github.com/OpenBMB/MiniCPM/blob/main/skills/minicpm5-deploy-mlx/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Mac पर MLX से MiniCPM5 चलाने में मदद कीजिए, और जाँचिए कि 1+1 का सही जवाब देता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल mlx-lm टूल इंस्टॉल करती है, तैयार MLX मॉडल के साथ एक परीक्षण prompt चलाती है, और आपके पास मौजूद मॉडल को 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 repository मौजूद हो, तो स्किल उसे सुझाती है।
मुझे कैसे पता चलेगा कि यह काम करता है?
स्किल कहती है कि 1+1 के सवाल पर जवाब में संख्या 2 होनी चाहिए।
क्या यह लोकल server चला सकती है?
हाँ। स्किल mlx_lm.server के ज़रिए OpenAI-compatible server शामिल करती है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 21/9/2026
कमेंट
- …
इस repository की और skills
minicpm5-deploy-litert
12kआपके एजेंट को Google के LiteRT-LM रनटाइम से कंप्यूटर या Android फ़ोन पर MiniCPM5 मॉडल चलाने देती है, एक ही मॉडल फ़ाइल के साथ।
minicpm5-deploy-llama-cpp
12kआपके एजेंट को दिखाती है कि llama.cpp से CPU या घरेलू graphics card पर MiniCPM5 मॉडल कैसे चलाएँ, तैयार GGUF फ़ाइलों के साथ।
minicpm5-deploy-lmstudio
12kआपके एजेंट को LM Studio में MiniCPM5 मॉडल चलाने में मदद करती है, जो चैट विंडो वाला डेस्कटॉप ऐप है, और उसका लोकल OpenAI शैली का server शुरू करती है।
minicpm5-deploy-ollama
12kआपके एजेंट को Mac या Linux लैपटॉप पर Ollama से MiniCPM5 चलाना सिखाती है, एक GGUF फ़ाइल और कुछ सरल कमांड के साथ।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।