Instructions to use Nabin1995/huggingface_test_cleaned_173 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nabin1995/huggingface_test_cleaned_173 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Nabin1995/huggingface_test_cleaned_173")# Load model directly from transformers import AutoTokenizer, AutoModelForImageTextToText tokenizer = AutoTokenizer.from_pretrained("Nabin1995/huggingface_test_cleaned_173") model = AutoModelForImageTextToText.from_pretrained("Nabin1995/huggingface_test_cleaned_173") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Nabin1995/huggingface_test_cleaned_173 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nabin1995/huggingface_test_cleaned_173" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nabin1995/huggingface_test_cleaned_173", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Nabin1995/huggingface_test_cleaned_173
- SGLang
How to use Nabin1995/huggingface_test_cleaned_173 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 "Nabin1995/huggingface_test_cleaned_173" \ --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": "Nabin1995/huggingface_test_cleaned_173", "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 "Nabin1995/huggingface_test_cleaned_173" \ --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": "Nabin1995/huggingface_test_cleaned_173", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Nabin1995/huggingface_test_cleaned_173 with Docker Model Runner:
docker model run hf.co/Nabin1995/huggingface_test_cleaned_173
| { | |
| "</s_header>": 57526, | |
| "</s_invoice_date>": 57530, | |
| "</s_invoice_no>": 57532, | |
| "</s_invoice_type>": 57528, | |
| "</s_item_code>": 57538, | |
| "</s_item_description>": 57540, | |
| "</s_items>": 57536, | |
| "</s_qty_supplied>": 57544, | |
| "</s_seller_abn>": 57534, | |
| "</s_summary>": 57548, | |
| "</s_total_incl_gst>": 57550, | |
| "</s_unit_price_ex_gst>": 57546, | |
| "</s_uom>": 57542, | |
| "<s_header>": 57525, | |
| "<s_iitcdip>": 57523, | |
| "<s_invoice_date>": 57529, | |
| "<s_invoice_no>": 57531, | |
| "<s_invoice_type>": 57527, | |
| "<s_item_code>": 57537, | |
| "<s_item_description>": 57539, | |
| "<s_items>": 57535, | |
| "<s_qty_supplied>": 57543, | |
| "<s_seller_abn>": 57533, | |
| "<s_summary>": 57547, | |
| "<s_synthdog>": 57524, | |
| "<s_total_incl_gst>": 57549, | |
| "<s_unit_price_ex_gst>": 57545, | |
| "<s_uom>": 57541, | |
| "<sep/>": 57522 | |
| } | |