Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

melsiddieg
/
deepseekocr2-ar

Feature Extraction
Transformers
Safetensors
English
DeepseekOCR2
text-generation-inference
unsloth
deepseek_vl_v2
custom_code
Model card Files Files and versions
xet
Community

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("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
  • Unsloth Studio new

    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,
    )
deepseekocr2-ar
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
melsiddieg's picture
melsiddieg
(Trained with Unsloth)
acf8864 verified 3 months ago
  • .gitattributes
    1.52 kB
    initial commit 3 months ago
  • README.md
    597 Bytes
    Unsloth Model Card 3 months ago
  • config.json
    3.08 kB
    (Trained with Unsloth) 3 months ago
  • conversation.py
    9.25 kB
    (Trained with Unsloth) 3 months ago
  • deepencoderv2.py
    36.3 kB
    (Trained with Unsloth) 3 months ago
  • model-00001-of-000001.safetensors
    6.78 GB
    xet
    (Trained with Unsloth) 3 months ago
  • model.safetensors.index.json
    247 kB
    (Trained with Unsloth) 3 months ago
  • modeling_deepseekocr2.py
    40.7 kB
    (Trained with Unsloth) 3 months ago
  • special_tokens_map.json
    549 Bytes
    (Trained with Unsloth) 3 months ago
  • tokenizer.json
    9.98 MB
    (Trained with Unsloth) 3 months ago
  • tokenizer_config.json
    166 kB
    (Trained with Unsloth) 3 months ago