Skip to content

make it work with transformers 5 - #509

Draft
milahu wants to merge 11 commits into
datalab-to:masterfrom
milahu:transformers-5
Draft

make it work with transformers 5#509
milahu wants to merge 11 commits into
datalab-to:masterfrom
milahu:transformers-5

Conversation

@milahu

@milahu milahu commented May 6, 2026

Copy link
Copy Markdown

fix #484

all patches were generated by chatGPT

with these patches, the errors are gone
but the OCR function seems broken...

hopefully someone with more insight into the surya codebase
(and with more experience with pytorch)
can fix the patches

i have tried to run
surya_ocr test-images/ --output_dir test-images-ocr/
but the output json file contains only garbage

the model load report always says that lm_head.weight is missing
how bad is this?

SuryaModel LOAD REPORT
Key            | Status  | 
---------------+---------+-
lm_head.weight | MISSING | 

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown
Contributor

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@milahu

milahu commented May 6, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG: Breaking] 'SuryaDecoderConfig' object has no attribute 'pad_token_id'

1 participant