Image-Text-to-Text
MLX
Safetensors
multilingual
deepseekocr
mlx-vlm
ocr
vision-language
baidu
quantized
8-bit precision
affine
conversational
Instructions to use mikoy92/Unlimited-OCR-8bit-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mikoy92/Unlimited-OCR-8bit-mlx with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("mikoy92/Unlimited-OCR-8bit-mlx") config = load_config("mikoy92/Unlimited-OCR-8bit-mlx") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
| { | |
| "add_prefix_space": null, | |
| "backend": "tokenizers", | |
| "bos_token": "<|begin▁of▁sentence|>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|end▁of▁sentence|>", | |
| "extra_special_tokens": [ | |
| "<|User|>", | |
| "<|Assistant|>" | |
| ], | |
| "is_local": true, | |
| "local_files_only": false, | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "<|▁pad▁|>", | |
| "processor_class": "DeepseekOCRProcessor", | |
| "tokenizer_class": "LlamaTokenizer", | |
| "unk_token": null, | |
| "use_default_system_prompt": false | |
| } | |