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

mlx-community
/
UGround-V1-2B-bf16

Image-Text-to-Text
MLX
Safetensors
English
qwen2_vl
mlx-vlm
apple-silicon
conversational
gui
vision-language-model
uground
grounding
computer-use
agent
2b
bf16
Model card Files Files and versions
xet
Community

Instructions to use mlx-community/UGround-V1-2B-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use mlx-community/UGround-V1-2B-bf16 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("mlx-community/UGround-V1-2B-bf16")
    config = load_config("mlx-community/UGround-V1-2B-bf16")
    
    # 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
UGround-V1-2B-bf16
4.43 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Swaylen Hayes
Add files using upload-large-folder tool
b50468c verified 2 months ago
  • .gitattributes
    1.57 kB
    Add files using upload-large-folder tool 2 months ago
  • README.md
    5.78 kB
    Add files using upload-large-folder tool 2 months ago
  • chat_template.jinja
    1.02 kB
    Add files using upload-large-folder tool 2 months ago
  • chat_template.json
    1.05 kB
    Add files using upload-large-folder tool 2 months ago
  • config.json
    1.18 kB
    Add files using upload-large-folder tool 2 months ago
  • generation_config.json
    143 Bytes
    Add files using upload-large-folder tool 2 months ago
  • model.safetensors
    4.42 GB
    xet
    Add files using upload-large-folder tool 2 months ago
  • model.safetensors.index.json
    55.8 kB
    Add files using upload-large-folder tool 2 months ago
  • preprocessor_config.json
    348 Bytes
    Add files using upload-large-folder tool 2 months ago
  • processor_config.json
    1.42 kB
    Add files using upload-large-folder tool 2 months ago
  • tokenizer.json
    11.4 MB
    xet
    Add files using upload-large-folder tool 2 months ago
  • tokenizer_config.json
    1.78 kB
    Add files using upload-large-folder tool 2 months ago
  • vocab.json
    2.78 MB
    Add files using upload-large-folder tool 2 months ago