Instructions to use larabe/combo1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use larabe/combo1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="larabe/combo1")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("larabe/combo1") model = AutoModelForMultimodalLM.from_pretrained("larabe/combo1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use larabe/combo1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "larabe/combo1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "larabe/combo1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/larabe/combo1
- SGLang
How to use larabe/combo1 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 "larabe/combo1" \ --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": "larabe/combo1", "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 "larabe/combo1" \ --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": "larabe/combo1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use larabe/combo1 with Docker Model Runner:
docker model run hf.co/larabe/combo1
Download special_tokens_map.json from larabe/combo1: direct link, hf CLI and curl.
- Browser
- Download file 3.23 kB
-
https://huggingface.co/larabe/combo1/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://larabe/combo1/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/larabe/combo1/resolve/main/special_tokens_map.json
3.23 kB
| { | |
| "additional_special_tokens": [ | |
| "<s_h_taxrate2>", | |
| "</s_h_taxrate2>", | |
| "<s_h_taxrate1>", | |
| "</s_h_taxrate1>", | |
| "<s_h_taxamount2>", | |
| "</s_h_taxamount2>", | |
| "<s_h_taxamount1>", | |
| "</s_h_taxamount1>", | |
| "<s_h_receiptdate>", | |
| "</s_h_receiptdate>", | |
| "<s_h_netamount1>", | |
| "</s_h_netamount1>", | |
| "<s_h_invoicerecipient>", | |
| "</s_h_invoicerecipient>", | |
| "<s_h_invoicenumber>", | |
| "</s_h_invoicenumber>", | |
| "<s_h_grossamount>", | |
| "</s_h_grossamount>", | |
| "<s_h_extracharges>", | |
| "</s_h_extracharges>", | |
| "<s_h_documenttype>", | |
| "</s_h_documenttype>", | |
| "<s_h_documentdate>", | |
| "</s_h_documentdate>", | |
| "<s_h_deldate>", | |
| "</s_h_deldate>", | |
| "<s_h_currency1>", | |
| "</s_h_currency1>", | |
| "<s_h_creditortaxid>", | |
| "</s_h_creditortaxid>", | |
| "<s_h_creditorsalestaxid>", | |
| "</s_h_creditorsalestaxid>", | |
| "<s_h_creditorname>", | |
| "</s_h_creditorname>", | |
| "<s_h_creditoriban>", | |
| "</s_h_creditoriban>", | |
| "<s_h_creditorcountry>", | |
| "</s_h_creditorcountry>", | |
| "<s_h_creditorcity>", | |
| "</s_h_creditorcity>", | |
| "<s_h_taxbasisamount1>", | |
| "</s_h_taxbasisamount1>", | |
| "<s_h_ordernumber>", | |
| "</s_h_ordernumber>", | |
| "<s_h_creditorstreet>", | |
| "</s_h_creditorstreet>", | |
| "<s_h_creditorpostcode>", | |
| "</s_h_creditorpostcode>", | |
| "<s_h_web>", | |
| "</s_h_web>", | |
| "<s_h_paymentterms>", | |
| "</s_h_paymentterms>", | |
| "<s_h_discount>", | |
| "</s_h_discount>", | |
| "<s_h_contactperson>", | |
| "</s_h_contactperson>", | |
| "<s_h_bic>", | |
| "</s_h_bic>", | |
| "<s_h_recipientsalestaxid>", | |
| "</s_h_recipientsalestaxid>", | |
| "<s_h_deliverynotenumber>", | |
| "</s_h_deliverynotenumber>", | |
| "<s_h_taxbasisamount2>", | |
| "</s_h_taxbasisamount2>", | |
| "<s_h_creditorsearch>", | |
| "</s_h_creditorsearch>", | |
| "<s_h_taxbasisamount3>", | |
| "</s_h_taxbasisamount3>", | |
| "<s_h_creditorpobox>", | |
| "</s_h_creditorpobox>", | |
| "<s_summary>", | |
| "</s_summary>", | |
| "<s_total_vat>", | |
| "</s_total_vat>", | |
| "<s_total_net_worth>", | |
| "</s_total_net_worth>", | |
| "<s_total_gross_worth>", | |
| "</s_total_gross_worth>", | |
| "<s_items>", | |
| "</s_items>", | |
| "<s_item_vat>", | |
| "</s_item_vat>", | |
| "<s_item_qty>", | |
| "</s_item_qty>", | |
| "<s_item_net_worth>", | |
| "</s_item_net_worth>", | |
| "<s_item_net_price>", | |
| "</s_item_net_price>", | |
| "<s_item_gross_worth>", | |
| "</s_item_gross_worth>", | |
| "<s_item_desc>", | |
| "</s_item_desc>", | |
| "<s_header>", | |
| "</s_header>", | |
| "<s_seller_tax_id>", | |
| "</s_seller_tax_id>", | |
| "<s_seller>", | |
| "</s_seller>", | |
| "<s_invoice_no>", | |
| "</s_invoice_no>", | |
| "<s_invoice_date>", | |
| "</s_invoice_date>", | |
| "<s_iban>", | |
| "</s_iban>", | |
| "<s_client_tax_id>", | |
| "</s_client_tax_id>", | |
| "<s_client>", | |
| "</s_client>", | |
| "<s_None>", | |
| "</s_None>", | |
| "<s_total>", | |
| "</s_total>", | |
| "<s_date>", | |
| "</s_date>", | |
| "<s_company>", | |
| "</s_company>", | |
| "<s_address>", | |
| "</s_address>", | |
| "<s>", | |
| "</s>" | |
| ], | |
| "bos_token": "<s>", | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "mask_token": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": "<pad>", | |
| "sep_token": "</s>", | |
| "unk_token": "<unk>" | |
| } | |