Instructions to use asw97/TM10545-parser with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use asw97/TM10545-parser with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="asw97/TM10545-parser")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("asw97/TM10545-parser") model = AutoModelForMultimodalLM.from_pretrained("asw97/TM10545-parser", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use asw97/TM10545-parser with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "asw97/TM10545-parser" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "asw97/TM10545-parser", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/asw97/TM10545-parser
- SGLang
How to use asw97/TM10545-parser 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 "asw97/TM10545-parser" \ --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": "asw97/TM10545-parser", "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 "asw97/TM10545-parser" \ --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": "asw97/TM10545-parser", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use asw97/TM10545-parser with Docker Model Runner:
docker model run hf.co/asw97/TM10545-parser
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.da6a2e1
-
Training finished
30117d8 -
Training finished
4bf05bc -
Training in progress, current epoch_2
08f4f9b -
Training in progress, current epoch_1
916381d -
Training in progress, current epoch_0
cfc035a -
Training finished
32a0a43 -
Training finished
25b3e48 -
Training in progress, current epoch_1
9352317 -
Training in progress, current epoch_0
231580d -
Training finished
01deddd -
Training finished
aaae01d -
Training in progress, current epoch_0
9867fec -
Training finished
b06c61f -
Training finished
c304419 -
Training in progress, current epoch_0
34ba8ed
-
Training finished
4a01371 -
Training finished
ca271ef -
Training in progress, current epoch_1
233f406 -
Training in progress, current epoch_0
d417aa8 -
Training finished
642cca0 -
Training finished
0e6f081 -
Training in progress, current epoch_1
ae6c2fd -
Training in progress, current epoch_0
266e535 -
Training finished
f90a7cc -
Training finished
773b78a -
Training in progress, current epoch_3
12b5a03 -
Training in progress, current epoch_2
d50abb8 -
Training in progress, current epoch_1
63a724b -
Training in progress, current epoch_0
08a91e7 -
Training finished
c51c91c -
Training finished
2936ea2 -
Training in progress, current epoch_3
26cc052 -
Training in progress, current epoch_2
49a5929 -
Training in progress, current epoch_1
c99343b -
Training in progress, current epoch_0
bc8e583 -
Training in progress, current epoch_5
fbfc7e3 -
Training in progress, current epoch_4
efc56b0 -
Training in progress, current epoch_3
ae50682 -
Training in progress, current epoch_2
ea7ed6a -
Training in progress, current epoch_1
252c64a -
Training in progress, current epoch_0
52ffebe
-
Training in progress, current epoch_5
3b81317 -
Training in progress, current epoch_4
e7f95d2 -
Training in progress, current epoch_3
f7dd4dd -
Training in progress, current epoch_2
ff2bb66 -
Training in progress, current epoch_1
4045bc0 -
Training in progress, current epoch_0
765dc36 -
Training in progress, current epoch_14
16b481a -
Training in progress, current epoch_13
e3cca25