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

  • Log In
  • Sign Up

statking
/
paligemma_vqa_lower

Image-Text-to-Text
Transformers
TensorBoard
Safetensors
paligemma
Generated from Trainer
text-generation-inference
Model card Files Files and versions
xet
Metrics Training metrics Community

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

  • Libraries
  • Transformers

    How to use statking/paligemma_vqa_lower with Transformers:

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

    How to use statking/paligemma_vqa_lower with vLLM:

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

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

    How to use statking/paligemma_vqa_lower with Docker Model Runner:

    docker model run hf.co/statking/paligemma_vqa_lower
paligemma_vqa_lower
5.85 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
statking's picture
statking
Model save
14bde1e verified almost 2 years ago
  • runs
    Model save almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    1.97 kB
    Model save almost 2 years ago
  • config.json
    1.02 kB
    Training in progress, step 1000 almost 2 years ago
  • generation_config.json
    132 Bytes
    Model save almost 2 years ago
  • model-00001-of-00002.safetensors
    4.99 GB
    xet
    Model save almost 2 years ago
  • model-00002-of-00002.safetensors
    862 MB
    xet
    Model save almost 2 years ago
  • model.safetensors.index.json
    62.6 kB
    Model save almost 2 years ago
  • training_args.bin
    5.11 kB
    xet
    Training in progress, step 1000 almost 2 years ago