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

DeepGlint-AI
/
UniME-R1-2B

Image-Text-to-Text
Transformers
Safetensors
English
Retrieval
Multimodal
Embedding
Chain-of-Thought
Reinforcement-Learning
Model card Files Files and versions
xet
Community

Instructions to use DeepGlint-AI/UniME-R1-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use DeepGlint-AI/UniME-R1-2B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="DeepGlint-AI/UniME-R1-2B")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("DeepGlint-AI/UniME-R1-2B", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use DeepGlint-AI/UniME-R1-2B with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "DeepGlint-AI/UniME-R1-2B"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "DeepGlint-AI/UniME-R1-2B",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/DeepGlint-AI/UniME-R1-2B
  • SGLang

    How to use DeepGlint-AI/UniME-R1-2B 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 "DeepGlint-AI/UniME-R1-2B" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "DeepGlint-AI/UniME-R1-2B",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    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 "DeepGlint-AI/UniME-R1-2B" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "DeepGlint-AI/UniME-R1-2B",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use DeepGlint-AI/UniME-R1-2B with Docker Model Runner:

    docker model run hf.co/DeepGlint-AI/UniME-R1-2B
UniME-R1-2B
10.4 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
JunWangSpace's picture
JunWangSpace
Upload README.md with huggingface_hub
6c39459 verified about 3 hours ago
  • adviser
    Upload folder using huggingface_hub 2 days ago
  • embedder
    Upload folder using huggingface_hub 2 days ago
  • figures
    Upload folder using huggingface_hub 1 day ago
  • .gitattributes
    1.86 kB
    Upload folder using huggingface_hub 1 day ago
  • README.md
    6.44 kB
    Upload README.md with huggingface_hub about 3 hours ago