मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग5.7k · #14748

cli-inference

यह क्या करती है

यह स्किल एजेंट को सिखाती है कि टर्मिनल से MLX-VLM विज़न और भाषा मॉडल कैसे चलाएँ। इसमें टेक्स्ट, इमेज और ऑडियो इनपुट शामिल हैं, और मॉडल लोड करने या प्रोसेसिंग की त्रुटियाँ ठीक करने में मदद मिलती है।

कब इस्तेमाल करें

  • ✓जब उपयोगकर्ता Mac पर कमांड लाइन से विज़न या भाषा मॉडल चलाना चाहता है।
  • ✓जब MLX-VLM का कमांड मॉडल, प्रॉम्प्ट या गायब वज़न के बारे में त्रुटि दे।
  • ✓जब उपयोगकर्ता किसी इमेज या ऑडियो फ़ाइल से मॉडल को बार-बार परखने के लिए दोहराने योग्य कमांड चाहता है।

Skill का लिंक

https://github.com/Blaizzy/mlx-vlm/blob/main/skills/skills/cli-inference/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/Blaizzy/mlx-vlm/blob/main/skills/skills/cli-inference/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे लोकल MLX-VLM मॉडल से इस इमेज का वर्णन करने का कमांड दिखाइए, और उत्तर छोटा रखिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट मॉडल, प्रॉम्प्ट और मीडिया फ़ाइलें जाँचता है, फिर वर्तमान फ़्लैग के लिए कमांड का help आउटपुट पढ़ता है। वह काम से मेल खाता कमांड बनाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

CLI Inference

Use this workflow for uv run mlx_vlm.generate and related command-line inference tasks.

First Checks

  1. Identify the model ID or local path, modality, prompt, media files, and expected output.
  2. Prefer an existing local model path or cached Hugging Face model when reproducing. Do not download a large model unless the user asks.
  3. Check model-specific docs first when the family has a README under mlx_vlm/models/<family>/README.md.
  4. Use uv run mlx_vlm.generate --help to 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-tokens and 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_type unsupported: inspect config.json and current folders under mlx_vlm/models/.
  • Missing weights: check for .safetensors or model.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.
अक्सर पूछे जाने वाले सवाल

क्या यह बड़े मॉडल डाउनलोड करती है?

स्किल कहती है कि जब तक उपयोगकर्ता न माँगे, बड़ा मॉडल डाउनलोड न करें।

क्या यह ऑडियो और वीडियो संभालती है?

हाँ। स्किल इमेज, ऑडियो और वीडियो इनपुट कवर करती है।

फ़्लैग पहले कहाँ जाँचूँ?

स्किल कहती है कि कमांड का help आउटपुट ही सही स्रोत है।

जानकारी

लेखक का मूल विवरण

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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

convert-quantize

5.7k

आपके एजेंट को Hugging Face मॉडल को MLX फ़ॉर्मैट में बदलने और क्वांटाइज़ेशन से छोटा करने में मदद करती है, स्थानीय डिवाइस के लिए बिट आकार, मोड और कैलिब्रेशन चुनते हुए।

कोडिंगसामान्य कोडिंग

hf-cache-models

5.7k

आपके एजेंट को चल रहे MLX-VLM सर्वर पर दिखने वाले मॉडल की सूची बनाने में मदद करती है, जिनमें कैश्ड, कस्टम और लोड किए गए मॉडल शामिल हैं।

कोडिंगAPI और सर्वर (backend)

reproducible-github-issues

5.7k

आपके एजेंट को MLX-VLM के लिए साफ़ और दोबारा परखी जा सकने वाली GitHub इश्यू लिखने में मदद करती है, बग या धीमे नतीजों के लिए, वातावरण के विवरण, सटीक कमांड और छोटे उदाहरण के साथ।

कोडिंगसामान्य कोडिंग

server-inference

5.7k

आपके एजेंट को MLX-VLM API सर्वर चलाने और उसकी गड़बड़ी ठीक करने में मदद करती है, जिसमें हेल्थ जाँच, चैट और रिस्पॉन्स अनुरोध, स्ट्रीमिंग और आम अनुरोध त्रुटियाँ शामिल हैं।

कोडिंगAPI और सर्वर (backend)

मिलती-जुलती skills