Instructions to use vishnu027/cm1132_type2_re with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vishnu027/cm1132_type2_re with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="vishnu027/cm1132_type2_re")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("vishnu027/cm1132_type2_re") model = AutoModelForMultimodalLM.from_pretrained("vishnu027/cm1132_type2_re", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use vishnu027/cm1132_type2_re with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vishnu027/cm1132_type2_re" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vishnu027/cm1132_type2_re", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/vishnu027/cm1132_type2_re
- SGLang
How to use vishnu027/cm1132_type2_re 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/cm1132_type2_re" \ --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/cm1132_type2_re", "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/cm1132_type2_re" \ --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/cm1132_type2_re", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use vishnu027/cm1132_type2_re with Docker Model Runner:
docker model run hf.co/vishnu027/cm1132_type2_re
Download added_tokens.json from vishnu027/cm1132_type2_re: direct link, hf CLI and curl.
- Browser
- Download file 993 Bytes
-
https://huggingface.co/vishnu027/cm1132_type2_re/resolve/main/added_tokens.json
- Command line
-
hf download hf://vishnu027/cm1132_type2_re/added_tokens.json
-
curl -L -o added_tokens.json https://huggingface.co/vishnu027/cm1132_type2_re/resolve/main/added_tokens.json
993 Bytes
| { | |
| "</s_Age>": 57542, | |
| "</s_Date_of_birth>": 57540, | |
| "</s_Date_of_death>": 57538, | |
| "</s_FatherFullName>": 57550, | |
| "</s_Father_Birthplacee>": 57552, | |
| "</s_FullName>": 57530, | |
| "</s_Gender>": 57534, | |
| "</s_HEADER>": 57526, | |
| "</s_Marital_Status>": 57544, | |
| "</s_MotherFullName>": 57554, | |
| "</s_Mother_Birthplacee>": 57556, | |
| "</s_PERSON>": 57532, | |
| "</s_Place_of_birth>": 57546, | |
| "</s_Race>": 57536, | |
| "</s_State_file_#>": 57528, | |
| "</s_parent>": 57548, | |
| "<s_Age>": 57541, | |
| "<s_Date_of_birth>": 57539, | |
| "<s_Date_of_death>": 57537, | |
| "<s_FatherFullName>": 57549, | |
| "<s_Father_Birthplacee>": 57551, | |
| "<s_FullName>": 57529, | |
| "<s_Gender>": 57533, | |
| "<s_HEADER>": 57525, | |
| "<s_Marital_Status>": 57543, | |
| "<s_MotherFullName>": 57553, | |
| "<s_Mother_Birthplacee>": 57555, | |
| "<s_PERSON>": 57531, | |
| "<s_Place_of_birth>": 57545, | |
| "<s_Race>": 57535, | |
| "<s_State_file_#>": 57527, | |
| "<s_cord-v2>": 57557, | |
| "<s_iitcdip>": 57523, | |
| "<s_parent>": 57547, | |
| "<s_synthdog>": 57524, | |
| "<sep/>": 57522 | |
| } | |