Image-Text-to-Text
Transformers
TensorBoard
Safetensors
vision-encoder-decoder
Generated from Trainer
Instructions to use Abhay1212/content with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Abhay1212/content with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Abhay1212/content")# Load model directly from transformers import AutoTokenizer, AutoModelForImageTextToText tokenizer = AutoTokenizer.from_pretrained("Abhay1212/content") model = AutoModelForImageTextToText.from_pretrained("Abhay1212/content") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Abhay1212/content with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Abhay1212/content" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Abhay1212/content", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Abhay1212/content
- SGLang
How to use Abhay1212/content 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 "Abhay1212/content" \ --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": "Abhay1212/content", "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 "Abhay1212/content" \ --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": "Abhay1212/content", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Abhay1212/content with Docker Model Runner:
docker model run hf.co/Abhay1212/content
Ctrl+K
- 2.72 kB
- 2.62 kB
- 1.36 kB
- 1.81 kB
- 1.27 kB
- 1.37 kB
- 994 Bytes
- 1.24 kB
- 1.39 kB
- 1.13 kB
- 1.38 kB
- 1.33 kB
- 1.37 kB
- 1.35 kB
- 1.43 kB
- 1.24 kB
- 1.33 kB
- 1.24 kB
- 989 Bytes
- 1.39 kB
- 1.14 kB
- 1.49 kB
- 1.59 kB
- 1.57 kB
- 1.64 kB
- 1.61 kB
- 1.46 kB
- 1.42 kB
- 1.35 kB
- 1.43 kB
- 1.33 kB
- 1.67 kB
- 1.36 kB
- 1.49 kB
- 1.52 kB
- 1.35 kB
- 1.45 kB
- 1.5 kB
- 1.59 kB
- 1.11 kB
- 1.53 kB
- 1.45 kB
- 1.57 kB
- 1.67 kB
- 1.45 kB
- 1.58 kB
- 1.05 kB
- 936 Bytes
- 934 Bytes
- 832 Bytes