Instructions to use chaley22/pali-captioning-lm-nolora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chaley22/pali-captioning-lm-nolora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="chaley22/pali-captioning-lm-nolora")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("chaley22/pali-captioning-lm-nolora") model = AutoModelForCausalLM.from_pretrained("chaley22/pali-captioning-lm-nolora") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use chaley22/pali-captioning-lm-nolora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "chaley22/pali-captioning-lm-nolora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chaley22/pali-captioning-lm-nolora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/chaley22/pali-captioning-lm-nolora
- SGLang
How to use chaley22/pali-captioning-lm-nolora 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 "chaley22/pali-captioning-lm-nolora" \ --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": "chaley22/pali-captioning-lm-nolora", "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 "chaley22/pali-captioning-lm-nolora" \ --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": "chaley22/pali-captioning-lm-nolora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use chaley22/pali-captioning-lm-nolora with Docker Model Runner:
docker model run hf.co/chaley22/pali-captioning-lm-nolora
Ctrl+K
- 13-58-26
- 13-59-50
- 14-38-01
- 14-52-44
- 15-06-48
- 15-21-17
- 15-37-51
- 15-52-50
- 16-08-04
- 16-24-52
- 16-38-51
- 16-55-02
- 17-04-37
- 17-19-33
- 17-33-53
- 17-51-32
- 18-06-46
- 18-20-17
- 18-34-45
- 18-49-16
- 19-03-27
- 19-17-30
- 19-33-40
- 19-47-47
- 20-02-17
- 20-17-12
- 20-31-17
- 20-46-07
- 21-01-11
- 21-16-13
- 21-32-39
- 21-46-53
- 22-01-28
- 22-17-08
- 22-31-57
- 22-39-56