Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

NexaAI
/
qwen3vl-4B-Instruct-4bit-mlx

Image-Text-to-Text
MLX
MLX
conversational
Model card Files Files and versions
xet
Community

Instructions to use NexaAI/qwen3vl-4B-Instruct-4bit-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use NexaAI/qwen3vl-4B-Instruct-4bit-mlx with MLX:

    # Make sure mlx-vlm is installed
    # pip install --upgrade mlx-vlm
    
    from mlx_vlm import load, generate
    from mlx_vlm.prompt_utils import apply_chat_template
    from mlx_vlm.utils import load_config
    
    # Load the model
    model, processor = load("NexaAI/qwen3vl-4B-Instruct-4bit-mlx")
    config = load_config("NexaAI/qwen3vl-4B-Instruct-4bit-mlx")
    
    # Prepare input
    image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
    prompt = "Describe this image."
    
    # Apply chat template
    formatted_prompt = apply_chat_template(
        processor, config, prompt, num_images=1
    )
    
    # Generate output
    output = generate(model, processor, formatted_prompt, image)
    print(output)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
  • Pi new

    How to use NexaAI/qwen3vl-4B-Instruct-4bit-mlx with Pi:

    Start the MLX server
    # Install MLX LM:
    uv tool install mlx-lm
    # Start a local OpenAI-compatible server:
    mlx_lm.server --model "NexaAI/qwen3vl-4B-Instruct-4bit-mlx"
    Configure the model in Pi
    # Install Pi:
    npm install -g @mariozechner/pi-coding-agent
    # Add to ~/.pi/agent/models.json:
    {
      "providers": {
        "mlx-lm": {
          "baseUrl": "http://localhost:8080/v1",
          "api": "openai-completions",
          "apiKey": "none",
          "models": [
            {
              "id": "NexaAI/qwen3vl-4B-Instruct-4bit-mlx"
            }
          ]
        }
      }
    }
    Run Pi
    # Start Pi in your project directory:
    pi
  • Hermes Agent new

    How to use NexaAI/qwen3vl-4B-Instruct-4bit-mlx with Hermes Agent:

    Start the MLX server
    # Install MLX LM:
    uv tool install mlx-lm
    # Start a local OpenAI-compatible server:
    mlx_lm.server --model "NexaAI/qwen3vl-4B-Instruct-4bit-mlx"
    Configure Hermes
    # Install Hermes:
    curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
    hermes setup
    # Point Hermes at the local server:
    hermes config set model.provider custom
    hermes config set model.base_url http://127.0.0.1:8080/v1
    hermes config set model.default NexaAI/qwen3vl-4B-Instruct-4bit-mlx
    Run Hermes
    hermes
qwen3vl-4B-Instruct-4bit-mlx
Ctrl+K
Ctrl+K
  • 4 contributors
History: 10 commits
zackli4ai's picture
zackli4ai
Create config.json
e8c724c verified 7 months ago
  • .gitattributes
    1.57 kB
    Upload 9 files 7 months ago
  • README.md
    2.11 kB
    Update README.md 7 months ago
  • added_tokens.json
    707 Bytes
    Upload 9 files 7 months ago
  • chat_template.jinja
    5.29 kB
    Upload 9 files 7 months ago
  • config.json
    0 Bytes
    Create config.json 7 months ago
  • merges.txt
    1.67 MB
    Upload 9 files 7 months ago
  • nexa.manifest
    80 Bytes
    Create nexa.manifest 7 months ago
  • qwen3vl-llm-4b_instruct-q4_0.safetensors
    3.83 GB
    xet
    Upload qwen3vl-llm-4b_instruct-q4_0.safetensors with huggingface_hub 7 months ago
  • qwen3vl-vision-4b_instruct-f16.safetensors
    1.66 GB
    xet
    Upload 9 files 7 months ago
  • special_tokens_map.json
    613 Bytes
    Upload 9 files 7 months ago
  • tokenizer.json
    11.4 MB
    xet
    Upload 9 files 7 months ago
  • tokenizer_config.json
    5.4 kB
    Upload 9 files 7 months ago
  • vocab.json
    2.78 MB
    Upload 9 files 7 months ago