Instructions to use vishnu027/s1738T1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vishnu027/s1738T1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="vishnu027/s1738T1")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("vishnu027/s1738T1") model = AutoModelForMultimodalLM.from_pretrained("vishnu027/s1738T1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use vishnu027/s1738T1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vishnu027/s1738T1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vishnu027/s1738T1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/vishnu027/s1738T1
- SGLang
How to use vishnu027/s1738T1 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 "vishnu027/s1738T1" \ --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": "vishnu027/s1738T1", "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 "vishnu027/s1738T1" \ --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": "vishnu027/s1738T1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use vishnu027/s1738T1 with Docker Model Runner:
docker model run hf.co/vishnu027/s1738T1
| { | |
| "</s_BRIDE>": 57540, | |
| "</s_Bride_Age>": 57546, | |
| "</s_Bride_Birthplace>": 57564, | |
| "</s_Bride_Marital_Status>": 57550, | |
| "</s_Bride_Race>": 57548, | |
| "</s_Bride_Residence>": 57544, | |
| "</s_Bride_name>": 57542, | |
| "</s_City>": 57528, | |
| "</s_County>": 57566, | |
| "</s_DATE>": 57552, | |
| "</s_GROOM>": 57530, | |
| "</s_Groom_Age>": 57536, | |
| "</s_Groom_Birthplace>": 57562, | |
| "</s_Groom_Marital_Status>": 57560, | |
| "</s_Groom_Race>": 57538, | |
| "</s_Groom_Residence>": 57534, | |
| "</s_Groom_name>": 57532, | |
| "</s_Marriage_Day>": 57554, | |
| "</s_Marriage_Month>": 57556, | |
| "</s_Marriage_Year>": 57558, | |
| "</s_PLACE>": 57526, | |
| "<s_BRIDE>": 57539, | |
| "<s_Bride_Age>": 57545, | |
| "<s_Bride_Birthplace>": 57563, | |
| "<s_Bride_Marital_Status>": 57549, | |
| "<s_Bride_Race>": 57547, | |
| "<s_Bride_Residence>": 57543, | |
| "<s_Bride_name>": 57541, | |
| "<s_City>": 57527, | |
| "<s_County>": 57565, | |
| "<s_DATE>": 57551, | |
| "<s_GROOM>": 57529, | |
| "<s_Groom_Age>": 57535, | |
| "<s_Groom_Birthplace>": 57561, | |
| "<s_Groom_Marital_Status>": 57559, | |
| "<s_Groom_Race>": 57537, | |
| "<s_Groom_Residence>": 57533, | |
| "<s_Groom_name>": 57531, | |
| "<s_Marriage_Day>": 57553, | |
| "<s_Marriage_Month>": 57555, | |
| "<s_Marriage_Year>": 57557, | |
| "<s_PLACE>": 57525, | |
| "<s_cord-v2>": 57567, | |
| "<s_iitcdip>": 57523, | |
| "<s_synthdog>": 57524, | |
| "<sep/>": 57522 | |
| } | |