Instructions to use subbu3/invoices with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use subbu3/invoices with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="subbu3/invoices")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("subbu3/invoices") model = AutoModelForMultimodalLM.from_pretrained("subbu3/invoices", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use subbu3/invoices with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "subbu3/invoices" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "subbu3/invoices", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/subbu3/invoices
- SGLang
How to use subbu3/invoices 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 "subbu3/invoices" \ --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": "subbu3/invoices", "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 "subbu3/invoices" \ --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": "subbu3/invoices", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use subbu3/invoices with Docker Model Runner:
docker model run hf.co/subbu3/invoices
Commit History
-
Training done
Verified signature0cd7669 -
Training done
Verified signature8210673 -
Training in progress, epoch 69
Verified signature13c9270 -
Training in progress, epoch 68
Verified signature8638036 -
Training in progress, epoch 67
Verified signaturec5bb58d -
Training in progress, epoch 66
Verified signature1b2bc6c -
Training in progress, epoch 65
Verified signaturedfd6c43 -
Training in progress, epoch 64
Verified signature4285bb5 -
Training in progress, epoch 63
Verified signature415c99f -
Training in progress, epoch 62
Verified signaturee4d5309 -
Training in progress, epoch 61
Verified signaturec8e99b6 -
Training in progress, epoch 60
Verified signaturecce5891
-
Training in progress, epoch 59
Verified signatured34c0a5 -
Training in progress, epoch 58
Verified signature7131a21 -
Training in progress, epoch 57
Verified signatureeab0778 -
Training in progress, epoch 56
Verified signature310ac5f -
Training in progress, epoch 55
Verified signature2bada76 -
Training in progress, epoch 54
Verified signature9af770f -
Training in progress, epoch 53
Verified signature97edf60 -
Training in progress, epoch 52
Verified signature65f9f46 -
Training in progress, epoch 51
Verified signature9f12d90 -
Training in progress, epoch 50
Verified signaturefa21c54 -
Training in progress, epoch 49
Verified signatureb3df3e8 -
Training in progress, epoch 48
Verified signature61b9597 -
Training in progress, epoch 47
Verified signatureadc0ad8 -
Training in progress, epoch 46
Verified signature787dbec -
Training in progress, epoch 45
Verified signatured412b2d -
Training in progress, epoch 44
Verified signatured4f988b -
Training in progress, epoch 43
Verified signature71b210a -
Training in progress, epoch 42
Verified signatureffb2b13 -
Training in progress, epoch 41
Verified signature89a054a -
Training in progress, epoch 40
Verified signature4943c27 -
Training in progress, epoch 39
Verified signature276a242 -
Training in progress, epoch 38
Verified signaturea495215 -
Training in progress, epoch 37
Verified signature9ad1dbb -
Training in progress, epoch 36
Verified signature70aab9c -
Training in progress, epoch 35
Verified signaturec274a8e -
Training in progress, epoch 34
Verified signature37642dd -
Training in progress, epoch 33
Verified signature9aa68f3 -
Training in progress, epoch 32
Verified signaturefc106d8 -
Training in progress, epoch 31
Verified signature5589cb5 -
Training in progress, epoch 30
Verified signature612dcfc -
Training in progress, epoch 29
Verified signatureea35adc -
Training in progress, epoch 28
Verified signature178fa5f -
Training in progress, epoch 27
Verified signature90ee5b6 -
Training in progress, epoch 26
Verified signature512cc2d -
Training in progress, epoch 25
Verified signaturecba9392 -
Training in progress, epoch 24
Verified signature7b20cae -
Training in progress, epoch 23
Verified signature732e879 -
Training in progress, epoch 22
Verified signatureb818a0b