Instructions to use SimpliFlow/tax-extract-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SimpliFlow/tax-extract-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="SimpliFlow/tax-extract-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("SimpliFlow/tax-extract-model") model = AutoModelForMultimodalLM.from_pretrained("SimpliFlow/tax-extract-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SimpliFlow/tax-extract-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SimpliFlow/tax-extract-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SimpliFlow/tax-extract-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SimpliFlow/tax-extract-model
- SGLang
How to use SimpliFlow/tax-extract-model 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 "SimpliFlow/tax-extract-model" \ --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": "SimpliFlow/tax-extract-model", "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 "SimpliFlow/tax-extract-model" \ --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": "SimpliFlow/tax-extract-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SimpliFlow/tax-extract-model with Docker Model Runner:
docker model run hf.co/SimpliFlow/tax-extract-model
Download added_tokens.json from SimpliFlow/tax-extract-model: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/SimpliFlow/tax-extract-model/resolve/main/added_tokens.json
- Command line
-
hf download hf://SimpliFlow/tax-extract-model/added_tokens.json
-
curl -L -o added_tokens.json https://huggingface.co/SimpliFlow/tax-extract-model/resolve/main/added_tokens.json
1.45 kB
| { | |
| "</s_AccountNumber>": 57542, | |
| "</s_Box10>": 57560, | |
| "</s_Box11>": 57562, | |
| "</s_Box12>": 57564, | |
| "</s_Box13>": 57566, | |
| "</s_Box14>": 57568, | |
| "</s_Box15a>": 57570, | |
| "</s_Box15b>": 57572, | |
| "</s_Box16a>": 57574, | |
| "</s_Box16b>": 57576, | |
| "</s_Box17a>": 57578, | |
| "</s_Box17b>": 57580, | |
| "</s_Box1>": 57530, | |
| "</s_Box2>": 57544, | |
| "</s_Box3>": 57546, | |
| "</s_Box4>": 57548, | |
| "</s_Box5>": 57550, | |
| "</s_Box6>": 57552, | |
| "</s_Box7>": 57554, | |
| "</s_Box8>": 57556, | |
| "</s_Box9>": 57558, | |
| "</s_Payer>": 57526, | |
| "</s_PayerRTN>": 57528, | |
| "</s_PayerTin>": 57532, | |
| "</s_RecipientAddress2>": 57540, | |
| "</s_RecipientAddress>": 57538, | |
| "</s_RecipientName>": 57536, | |
| "</s_RecipientTin>": 57534, | |
| "<s_AccountNumber>": 57541, | |
| "<s_Box10>": 57559, | |
| "<s_Box11>": 57561, | |
| "<s_Box12>": 57563, | |
| "<s_Box13>": 57565, | |
| "<s_Box14>": 57567, | |
| "<s_Box15a>": 57569, | |
| "<s_Box15b>": 57571, | |
| "<s_Box16a>": 57573, | |
| "<s_Box16b>": 57575, | |
| "<s_Box17a>": 57577, | |
| "<s_Box17b>": 57579, | |
| "<s_Box1>": 57529, | |
| "<s_Box2>": 57543, | |
| "<s_Box3>": 57545, | |
| "<s_Box4>": 57547, | |
| "<s_Box5>": 57549, | |
| "<s_Box6>": 57551, | |
| "<s_Box7>": 57553, | |
| "<s_Box8>": 57555, | |
| "<s_Box9>": 57557, | |
| "<s_Payer>": 57525, | |
| "<s_PayerRTN>": 57527, | |
| "<s_PayerTin>": 57531, | |
| "<s_RecipientAddress2>": 57539, | |
| "<s_RecipientAddress>": 57537, | |
| "<s_RecipientName>": 57535, | |
| "<s_RecipientTin>": 57533, | |
| "<s_cord-v2>": 57581, | |
| "<s_iitcdip>": 57523, | |
| "<s_synthdog>": 57524, | |
| "<sep/>": 57522 | |
| } | |