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

  • Log In
  • Sign Up

Shadowmachete
/
vlm_captioning

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

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

  • Libraries
  • Transformers

    How to use Shadowmachete/vlm_captioning with Transformers:

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

    How to use Shadowmachete/vlm_captioning with vLLM:

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

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

    How to use Shadowmachete/vlm_captioning with Docker Model Runner:

    docker model run hf.co/Shadowmachete/vlm_captioning
vlm_captioning / runs
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
Shadowmachete's picture
Shadowmachete
Training in progress, epoch 3
b0f3cb3 verified almost 2 years ago
  • May15_22-21-50_LAPTOP-RETT3JD7
    Training in progress, epoch 1 almost 2 years ago
  • May16_07-11-59_LAPTOP-RETT3JD7
    Training in progress, epoch 1 almost 2 years ago
  • May16_07-33-12_LAPTOP-RETT3JD7
    Training in progress, epoch 1 almost 2 years ago
  • May16_07-43-43_LAPTOP-RETT3JD7
    Training in progress, epoch 1 almost 2 years ago
  • May16_07-46-21_LAPTOP-RETT3JD7
    Training in progress, epoch 1 almost 2 years ago
  • May16_07-48-26_LAPTOP-RETT3JD7
    Training in progress, epoch 1 almost 2 years ago
  • May16_07-58-20_LAPTOP-RETT3JD7
    Training in progress, epoch 3 almost 2 years ago