Instructions to use ryanznie/layoutlmv3-lora-invoice-number with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ryanznie/layoutlmv3-lora-invoice-number with PEFT:
from peft import PeftModel from transformers import AutoModelForTokenClassification base_model = AutoModelForTokenClassification.from_pretrained("microsoft/layoutlmv3-base") model = PeftModel.from_pretrained(base_model, "ryanznie/layoutlmv3-lora-invoice-number") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from ryanznie/layoutlmv3-lora-invoice-number: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/ryanznie/layoutlmv3-lora-invoice-number/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://ryanznie/layoutlmv3-lora-invoice-number/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/ryanznie/layoutlmv3-lora-invoice-number/resolve/main/tokenizer_config.json
1.54 kB
| { | |
| "add_prefix_space": true, | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "50264": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "apply_ocr": false, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": false, | |
| "cls_token": "<s>", | |
| "cls_token_box": [ | |
| 0, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| "eos_token": "</s>", | |
| "errors": "replace", | |
| "extra_special_tokens": {}, | |
| "mask_token": "<mask>", | |
| "model_max_length": 512, | |
| "only_label_first_subword": true, | |
| "pad_token": "<pad>", | |
| "pad_token_box": [ | |
| 0, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| "pad_token_label": -100, | |
| "processor_class": "LayoutLMv3Processor", | |
| "sep_token": "</s>", | |
| "sep_token_box": [ | |
| 0, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| "tokenizer_class": "LayoutLMv3Tokenizer", | |
| "trim_offsets": true, | |
| "unk_token": "<unk>" | |
| } | |