Skip to content

Colab GLM-OCR error #2

Description

@ryzen3100

When trying to use GLM-OCR in google colab returns an error:

2026-04-09 14:42:30,541 - src.models.glm_ocr_model - ERROR - Failed to load GLM-OCR model: The checkpoint you are trying to load has model type `glm_ocr` but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

You can update Transformers with the command `pip install --upgrade transformers`. If this does not work, and the checkpoint is very new, then there may not be a release version that supports this model yet. In this case, you can get the most up-to-date code by installing Transformers from source with the command `pip install git+[https://github.com/huggingface/transformers.git`](https://github.com/huggingface/transformers.git%60)
2026-04-09 14:42:30,541 - src.ui.app - ERROR - Error processing PDF: The checkpoint you are trying to load has model type `glm_ocr` but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions