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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

mobilint
/
Qwen3-VL-4B-Instruct

Image-Text-to-Text
Transformers
Safetensors
Mobilint
English
mobilint-qwen3_vl
text-generation
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use mobilint/Qwen3-VL-4B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use mobilint/Qwen3-VL-4B-Instruct with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="mobilint/Qwen3-VL-4B-Instruct", trust_remote_code=True)
    messages = [
        {
            "role": "user",
            "content": [
                {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
                {"type": "text", "text": "What animal is on the candy?"}
            ]
        },
    ]
    pipe(text=messages)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("mobilint/Qwen3-VL-4B-Instruct", trust_remote_code=True, dtype="auto")
  • Mobilint

    How to use mobilint/Qwen3-VL-4B-Instruct with Mobilint:

    # pip install mblt-model-zoo
    from mblt_model_zoo.vision import MBLT_Engine
    
    model = MBLT_Engine(
        model_cls="Qwen3-VL-4B-Instruct",
        model_type="DEFAULT",
        model_path="",
        core_mode="global8",
    )
    
    try:
        image = model.preprocess("path/to/image.jpg")
        output = model(image)
        result = model.postprocess(output)
    finally:
        model.dispose()
    
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use mobilint/Qwen3-VL-4B-Instruct with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "mobilint/Qwen3-VL-4B-Instruct"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "mobilint/Qwen3-VL-4B-Instruct",
    		"messages": [
    			{
    				"role": "user",
    				"content": [
    					{
    						"type": "text",
    						"text": "Describe this image in one sentence."
    					},
    					{
    						"type": "image_url",
    						"image_url": {
    							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
    						}
    					}
    				]
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/mobilint/Qwen3-VL-4B-Instruct
  • SGLang

    How to use mobilint/Qwen3-VL-4B-Instruct with SGLang:

    Install from pip and serve model
    # Install SGLang from pip:
    pip install sglang
    # Start the SGLang server:
    python3 -m sglang.launch_server \
        --model-path "mobilint/Qwen3-VL-4B-Instruct" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "mobilint/Qwen3-VL-4B-Instruct",
    		"messages": [
    			{
    				"role": "user",
    				"content": [
    					{
    						"type": "text",
    						"text": "Describe this image in one sentence."
    					},
    					{
    						"type": "image_url",
    						"image_url": {
    							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
    						}
    					}
    				]
    			}
    		]
    	}'
    Use Docker images
    docker run --gpus all \
        --shm-size 32g \
        -p 30000:30000 \
        -v ~/.cache/huggingface:/root/.cache/huggingface \
        --env "HF_TOKEN=<secret>" \
        --ipc=host \
        lmsysorg/sglang:latest \
        python3 -m sglang.launch_server \
            --model-path "mobilint/Qwen3-VL-4B-Instruct" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "mobilint/Qwen3-VL-4B-Instruct",
    		"messages": [
    			{
    				"role": "user",
    				"content": [
    					{
    						"type": "text",
    						"text": "Describe this image in one sentence."
    					},
    					{
    						"type": "image_url",
    						"image_url": {
    							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
    						}
    					}
    				]
    			}
    		]
    	}'
  • Docker Model Runner

    How to use mobilint/Qwen3-VL-4B-Instruct with Docker Model Runner:

    docker model run hf.co/mobilint/Qwen3-VL-4B-Instruct
Qwen3-VL-4B-Instruct
6.13 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 16 commits
lbs1163's picture
lbs1163
Update model card metadata
6bb4802 verified 14 days ago
  • .gitattributes
    1.56 kB
    Upload Qwen3-VL-4B-Instruct artifacts 3 months ago
  • .gitignore
    6 Bytes
    Update: replace .mxq file(decoder input/deepstack 16bit) about 2 months ago
  • Qwen3-VL-4B-Instruct_text-W8.mxq
    4.12 GB
    xet
    Update: SOTA .mxq about 2 months ago
  • Qwen3-VL-4B-Instruct_vision-W8.mxq
    451 MB
    xet
    Update: SOTA .mxq about 2 months ago
  • README.md
    656 Bytes
    Update model card metadata 14 days ago
  • chat_template.json
    5.5 kB
    Upload Qwen3-VL-4B-Instruct artifacts 3 months ago
  • config.json
    2.13 kB
    Update max_batch_size metadata about 2 months ago
  • generation_config.json
    269 Bytes
    Upload Qwen3-VL-4B-Instruct artifacts 3 months ago
  • merges.txt
    1.67 MB
    Upload Qwen3-VL-4B-Instruct artifacts 3 months ago
  • model.safetensors
    1.56 GB
    xet
    Update: SOTA .mxq about 2 months ago
  • preprocessor_config.json
    490 Bytes
    Update preprocessor_config.json 3 months ago
  • proxy_qwen3_vl.py
    667 Bytes
    Update proxy_qwen3_vl.py 3 months ago
  • tokenizer.json
    7.03 MB
    Upload Qwen3-VL-4B-Instruct artifacts 3 months ago
  • tokenizer_config.json
    10.9 kB
    Upload Qwen3-VL-4B-Instruct artifacts 3 months ago
  • video_preprocessor_config.json
    393 Bytes
    Update video_preprocessor_config.json 3 months ago
  • vocab.json
    2.78 MB
    Upload Qwen3-VL-4B-Instruct artifacts 3 months ago