Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Cierra0506
/
MM-PRM

Image-Text-to-Text
Transformers
Safetensors
English
Chinese
internvl_chat
feature-extraction
conversational
custom_code
Model card Files Files and versions
xet
Community
2

Instructions to use Cierra0506/MM-PRM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Cierra0506/MM-PRM with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="Cierra0506/MM-PRM", 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 AutoModel
    model = AutoModel.from_pretrained("Cierra0506/MM-PRM", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use Cierra0506/MM-PRM with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "Cierra0506/MM-PRM"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "Cierra0506/MM-PRM",
    		"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/Cierra0506/MM-PRM
  • SGLang

    How to use Cierra0506/MM-PRM 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 "Cierra0506/MM-PRM" \
        --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": "Cierra0506/MM-PRM",
    		"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 "Cierra0506/MM-PRM" \
            --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": "Cierra0506/MM-PRM",
    		"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 Cierra0506/MM-PRM with Docker Model Runner:

    docker model run hf.co/Cierra0506/MM-PRM
MM-PRM
16.2 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 5 commits
Cierra0506's picture
Cierra0506
nielsr's picture
nielsr HF Staff
Update README.md (#2)
70279cd verified 9 months ago
  • .gitattributes
    1.52 kB
    initial commit 12 months ago
  • README.md
    794 Bytes
    Update README.md (#2) 9 months ago
  • added_tokens.json
    279 Bytes
    Upload folder using huggingface_hub 12 months ago
  • all_results.json
    197 Bytes
    Upload folder using huggingface_hub 12 months ago
  • config.json
    5.73 kB
    Upload folder using huggingface_hub 12 months ago
  • generation_config.json
    115 Bytes
    Upload folder using huggingface_hub 12 months ago
  • model-00001-of-00004.safetensors
    4.94 GB
    xet
    Upload folder using huggingface_hub 12 months ago
  • model-00002-of-00004.safetensors
    4.92 GB
    xet
    Upload folder using huggingface_hub 12 months ago
  • model-00003-of-00004.safetensors
    4.92 GB
    xet
    Upload folder using huggingface_hub 12 months ago
  • model-00004-of-00004.safetensors
    1.38 GB
    xet
    Upload folder using huggingface_hub 12 months ago
  • model.safetensors.index.json
    51.2 kB
    Upload folder using huggingface_hub 12 months ago
  • special_tokens_map.json
    1.05 kB
    Upload folder using huggingface_hub 12 months ago
  • tokenization_internlm2.py
    8.79 kB
    Upload folder using huggingface_hub 12 months ago
  • tokenizer.model
    1.48 MB
    xet
    Upload folder using huggingface_hub 12 months ago
  • tokenizer_config.json
    4.95 kB
    Upload folder using huggingface_hub 12 months ago