Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

johnlockejrr
/
GLM-OCR-samaritan

Image-to-Text
Transformers
Safetensors
Samaritan
Samaritan Aramaic
glm_ocr
image-text-to-text
ocr
samaritan
ancient-languages
vision
glm-ocr
Model card Files Files and versions
xet
Community

Instructions to use johnlockejrr/GLM-OCR-samaritan with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use johnlockejrr/GLM-OCR-samaritan with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # 'pip install "transformers<5.0.0'
    from transformers import pipeline
    
    pipe = pipeline("image-to-text", model="johnlockejrr/GLM-OCR-samaritan")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("johnlockejrr/GLM-OCR-samaritan")
    model = AutoModelForMultimodalLM.from_pretrained("johnlockejrr/GLM-OCR-samaritan")
  • Notebooks
  • Google Colab
  • Kaggle
GLM-OCR-samaritan
2.22 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
johnlockejrr's picture
johnlockejrr
Update README.md
414bfce verified 5 months ago
  • .gitattributes
    1.52 kB
    initial commit 5 months ago
  • Modelfile
    398 Bytes
    Add files using upload-large-folder tool 5 months ago
  • README.md
    2.44 kB
    Update README.md 5 months ago
  • chat_template.jinja
    4.61 kB
    Add files using upload-large-folder tool 5 months ago
  • config.json
    1.74 kB
    Add files using upload-large-folder tool 5 months ago
  • generation_config.json
    161 Bytes
    Add files using upload-large-folder tool 5 months ago
  • model.safetensors
    2.21 GB
    xet
    Add files using upload-large-folder tool 5 months ago
  • processor_config.json
    1.5 kB
    Add files using upload-large-folder tool 5 months ago
  • tokenizer.json
    6.84 MB
    Add files using upload-large-folder tool 5 months ago
  • tokenizer_config.json
    398 Bytes
    Add files using upload-large-folder tool 5 months ago