Instructions to use danush99/Model_LightOnOCR-Sin-Handwritten-Text with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use danush99/Model_LightOnOCR-Sin-Handwritten-Text with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("lightonai/LightOnOCR-2-1B") model = PeftModel.from_pretrained(base_model, "danush99/Model_LightOnOCR-Sin-Handwritten-Text") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from danush99/Model_LightOnOCR-Sin-Handwritten-Text: direct link, hf CLI and curl.
- Browser
- Download file 969 Bytes
-
https://huggingface.co/danush99/Model_LightOnOCR-Sin-Handwritten-Text/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://danush99/Model_LightOnOCR-Sin-Handwritten-Text/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/danush99/Model_LightOnOCR-Sin-Handwritten-Text/resolve/main/tokenizer_config.json
969 Bytes
| { | |
| "add_prefix_space": false, | |
| "backend": "tokenizers", | |
| "bos_token": null, | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|im_end|>", | |
| "errors": "replace", | |
| "extra_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>", | |
| "<|object_ref_start|>", | |
| "<|object_ref_end|>", | |
| "<|box_start|>", | |
| "<|box_end|>", | |
| "<|quad_start|>", | |
| "<|quad_end|>", | |
| "<|vision_start|>", | |
| "<|vision_end|>", | |
| "<|vision_pad|>", | |
| "<|image_pad|>", | |
| "<|video_pad|>" | |
| ], | |
| "image_break_token": "<|vision_pad|>", | |
| "image_end_token": "<|vision_end|>", | |
| "image_token": "<|image_pad|>", | |
| "is_local": false, | |
| "max_length": null, | |
| "model_max_length": 131072, | |
| "model_specific_special_tokens": {}, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "<|endoftext|>", | |
| "pad_token_type_id": 0, | |
| "padding_side": "left", | |
| "processor_class": "LightOnOcrProcessor", | |
| "split_special_tokens": false, | |
| "tokenizer_class": "TokenizersBackend", | |
| "unk_token": null | |
| } | |