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

  • Log In
  • Sign Up

gagan3012
/
arblip

Image-Text-to-Text
Transformers
PyTorch
instructblip
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Transformers

    How to use gagan3012/arblip with Transformers:

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

    How to use gagan3012/arblip with vLLM:

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

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

    How to use gagan3012/arblip with Docker Model Runner:

    docker model run hf.co/gagan3012/arblip
arblip
4.27 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
gagan3012's picture
gagan3012
Upload InstructBlipForConditionalGeneration
ea26fbf over 2 years ago
  • qformer_tokenizer
    Upload processor over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • config.json
    80.9 kB
    Upload InstructBlipForConditionalGeneration over 2 years ago
  • preprocessor_config.json
    461 Bytes
    Upload processor over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    4.26 GB
    xet
    Upload InstructBlipForConditionalGeneration over 2 years ago
  • special_tokens_map.json
    2.2 kB
    Upload processor over 2 years ago
  • tokenizer.json
    8.4 MB
    Upload processor over 2 years ago
  • tokenizer_config.json
    2.42 kB
    Upload processor over 2 years ago
  • vocab.txt
    1.17 MB
    Upload processor over 2 years ago