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

  • Log In
  • Sign Up

cognaize
/
glm_ocr_ft

Image-to-Text
Transformers
Safetensors
glm_ocr
image-text-to-text
Model card Files Files and versions
xet
Community

Instructions to use cognaize/glm_ocr_ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use cognaize/glm_ocr_ft 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="cognaize/glm_ocr_ft")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("cognaize/glm_ocr_ft")
    model = AutoModelForImageTextToText.from_pretrained("cognaize/glm_ocr_ft")
  • Notebooks
  • Google Colab
  • Kaggle
glm_ocr_ft
2.66 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
vaheandonians's picture
vaheandonians
Upload model from source account
e6e8471 verified 3 months ago
  • .gitattributes
    1.52 kB
    initial commit 3 months ago
  • README.md
    7.52 kB
    Upload model from source account 3 months ago
  • chat_template.jinja
    4.61 kB
    Upload model from source account 3 months ago
  • config.json
    1.57 kB
    Upload model from source account 3 months ago
  • generation_config.json
    165 Bytes
    Upload model from source account 3 months ago
  • model.safetensors
    2.65 GB
    xet
    Upload model from source account 3 months ago
  • preprocessor_config.json
    367 Bytes
    Upload model from source account 3 months ago
  • tokenizer.json
    6.84 MB
    Upload model from source account 3 months ago
  • tokenizer_config.json
    1.07 kB
    Upload model from source account 3 months ago