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

  • Log In
  • Sign Up

Pimmada
/
git-base-COCO

Image-Text-to-Text
Transformers
TensorBoard
Safetensors
git
Model card Files Files and versions
xet
Metrics Training metrics Community

Instructions to use Pimmada/git-base-COCO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Pimmada/git-base-COCO with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="Pimmada/git-base-COCO")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("Pimmada/git-base-COCO")
    model = AutoModelForImageTextToText.from_pretrained("Pimmada/git-base-COCO")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use Pimmada/git-base-COCO with vLLM:

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

    How to use Pimmada/git-base-COCO 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 "Pimmada/git-base-COCO" \
        --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": "Pimmada/git-base-COCO",
    		"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 "Pimmada/git-base-COCO" \
            --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": "Pimmada/git-base-COCO",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use Pimmada/git-base-COCO with Docker Model Runner:

    docker model run hf.co/Pimmada/git-base-COCO
git-base-COCO / runs
89.5 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 234 commits
Pimmada's picture
Pimmada
Training in progress, step 2000
94f4903 verified about 2 years ago
  • Apr24_04-35-06_10bdd0a458ba
    Training in progress, step 3750 about 2 years ago
  • Apr24_09-10-27_4a3991284a11
    Training in progress, step 50 about 2 years ago
  • Apr24_09-12-19_4a3991284a11
    Training in progress, step 50 about 2 years ago
  • Apr24_09-15-42_4a3991284a11
    Training in progress, step 100 about 2 years ago
  • Apr24_09-16-20_4a3991284a11
    Training in progress, step 2000 about 2 years ago
  • Apr24_11-12-49_95e18b4c0e7e
    Training in progress, step 2000 about 2 years ago
  • Apr24_13-55-40_a795609fc004
    Training in progress, step 2000 about 2 years ago
  • May02_07-13-13_11d93be401e1
    Training in progress, step 2000 about 2 years ago