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

vastai-ais
/
GLM-OCR-FP8

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

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

  • Libraries
  • Transformers

    How to use vastai-ais/GLM-OCR-FP8 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="vastai-ais/GLM-OCR-FP8")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("vastai-ais/GLM-OCR-FP8")
    model = AutoModelForMultimodalLM.from_pretrained("vastai-ais/GLM-OCR-FP8", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
GLM-OCR-FP8
1.73 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
liqiac's picture
liqiac
Update README.md
dab6c3c verified 9 days ago
  • .gitattributes
    1.52 kB
    initial commit 3 months ago
  • .ms_upload_cache
    1.29 kB
    Add files using upload-large-folder tool 3 months ago
  • README.md
    1.12 kB
    Update README.md 9 days ago
  • chat_template.jinja
    4.61 kB
    Add files using upload-large-folder tool 3 months ago
  • config.json
    9.44 kB
    Add files using upload-large-folder tool 3 months ago
  • generation_config.json
    161 Bytes
    Add files using upload-large-folder tool 3 months ago
  • model.safetensors
    1.72 GB
    xet
    Add files using upload-large-folder tool 3 months ago
  • processor_config.json
    1.5 kB
    Add files using upload-large-folder tool 3 months ago
  • recipe.yaml
    277 Bytes
    Add files using upload-large-folder tool 3 months ago
  • tokenizer.json
    6.84 MB
    Add files using upload-large-folder tool 3 months ago
  • tokenizer_config.json
    1.07 kB
    Add files using upload-large-folder tool 3 months ago