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

  • Log In
  • Sign Up

sujitvasanth
/
OpenCUA7BQfp164bit

Image-Text-to-Text
Transformers
Safetensors
English
opencua
feature-extraction
VLM
Computer-Use-Agent
OS-Agent
GUI
Grounding
conversational
custom_code
4-bit precision
bitsandbytes
Model card Files Files and versions
xet
Community

Instructions to use sujitvasanth/OpenCUA7BQfp164bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use sujitvasanth/OpenCUA7BQfp164bit with Transformers:

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

    How to use sujitvasanth/OpenCUA7BQfp164bit with vLLM:

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

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

    docker model run hf.co/sujitvasanth/OpenCUA7BQfp164bit
OpenCUA7BQfp164bit
5.9 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
sujitvasanth's picture
sujitvasanth
Update README.md
3c05eb6 verified 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • README.md
    21.3 kB
    Update README.md 7 months ago
  • args.json
    845 Bytes
    Upload 15 files 7 months ago
  • bnb_snapshot.json
    31 Bytes
    Upload 15 files 7 months ago
  • config.json
    7.02 kB
    Upload 15 files 7 months ago
  • configuration_opencua.py
    1.33 kB
    Upload 15 files 7 months ago
  • generation_config.json
    155 Bytes
    Upload 15 files 7 months ago
  • model-00001-of-00002.safetensors
    4.81 GB
    xet
    Upload 15 files 7 months ago
  • model-00002-of-00002.safetensors
    1.09 GB
    xet
    Upload 15 files 7 months ago
  • model.safetensors.index.json
    255 kB
    Upload 15 files 7 months ago
  • modeling_opencua.py
    22.3 kB
    Upload modeling_opencua.py 7 months ago
  • preprocessor_config.json
    306 Bytes
    Upload 15 files 7 months ago
  • quantization_config.json
    451 Bytes
    Upload 15 files 7 months ago
  • special_tokens_map.json
    1.08 kB
    Upload 15 files 7 months ago
  • tiktoken.model
    2.56 MB
    xet
    Upload 15 files 7 months ago
  • tokenization_opencua.py
    14.2 kB
    Upload 15 files 7 months ago
  • tokenizer_config.json
    6.23 kB
    Upload 15 files 7 months ago