Feature Extraction
Transformers
Safetensors
English
DeepseekOCR
text-generation-inference
unsloth
deepseek_vl_v2
custom_code
Instructions to use Yousefmd/arabic_ocr_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yousefmd/arabic_ocr_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Yousefmd/arabic_ocr_model", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Yousefmd/arabic_ocr_model", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio new
How to use Yousefmd/arabic_ocr_model 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 Yousefmd/arabic_ocr_model 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 Yousefmd/arabic_ocr_model to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Yousefmd/arabic_ocr_model to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Yousefmd/arabic_ocr_model", max_seq_length=2048, )
(Trained with Unsloth)
Browse files- config.json +1 -1
- tokenizer_config.json +1 -1
config.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
| 16 |
1024
|
| 17 |
]
|
| 18 |
],
|
| 19 |
-
"torch_dtype": "
|
| 20 |
"eos_token_id": 1,
|
| 21 |
"first_k_dense_replace": 1,
|
| 22 |
"global_view_pos": "head",
|
|
|
|
| 16 |
1024
|
| 17 |
]
|
| 18 |
],
|
| 19 |
+
"torch_dtype": "bfloat16",
|
| 20 |
"eos_token_id": 1,
|
| 21 |
"first_k_dense_replace": 1,
|
| 22 |
"global_view_pos": "head",
|
tokenizer_config.json
CHANGED
|
@@ -6655,7 +6655,7 @@
|
|
| 6655 |
"legacy": true,
|
| 6656 |
"model_max_length": 1000000000000000019884624838656,
|
| 6657 |
"pad_token": "<|▁pad▁|>",
|
| 6658 |
-
"padding_side": "
|
| 6659 |
"tokenizer_class": "LlamaTokenizerFast",
|
| 6660 |
"unk_token": null,
|
| 6661 |
"use_default_system_prompt": false
|
|
|
|
| 6655 |
"legacy": true,
|
| 6656 |
"model_max_length": 1000000000000000019884624838656,
|
| 6657 |
"pad_token": "<|▁pad▁|>",
|
| 6658 |
+
"padding_side": "right",
|
| 6659 |
"tokenizer_class": "LlamaTokenizerFast",
|
| 6660 |
"unk_token": null,
|
| 6661 |
"use_default_system_prompt": false
|