Image Feature Extraction
Transformers
Safetensors
English
DeepseekOCR2
text-generation-inference
unsloth
deepseek_vl_v2
custom_code
Instructions to use melsiddieg/deepseekocr2-ar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use melsiddieg/deepseekocr2-ar with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="melsiddieg/deepseekocr2-ar", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("melsiddieg/deepseekocr2-ar", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use melsiddieg/deepseekocr2-ar with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for melsiddieg/deepseekocr2-ar to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for melsiddieg/deepseekocr2-ar to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for melsiddieg/deepseekocr2-ar to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="melsiddieg/deepseekocr2-ar", max_seq_length=2048, )
| { | |
| "additional_special_tokens": [ | |
| "<|User|>", | |
| "<|Assistant|>" | |
| ], | |
| "bos_token": { | |
| "content": "<|begin▁of▁sentence|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<|end▁of▁sentence|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<|▁pad▁|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |