Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors uploading PDF files #6

Closed
bijuabraham opened this issue Dec 3, 2023 · 8 comments
Closed

Errors uploading PDF files #6

bijuabraham opened this issue Dec 3, 2023 · 8 comments

Comments

@bijuabraham
Copy link

I am getting different errors while uploading PDF files. Some files are working too.
The error comes to the top right and disappears and unable to capture it.
OrtRun(). error code = 6 and out of Bounds are the usual ones.
Where do I see the logs so that I can debug the same ?

@jacoblee93
Copy link
Owner

jacoblee93 commented Dec 4, 2023

Hey @bijuabraham,

It's a bit janky but I ended up doing this with postMessage since errors in the worker were getting swallowed:

self.postMessage({

Let me know what you find!

@smayanks
Copy link

smayanks commented Mar 9, 2024

Hey @jacoblee93 - did you find a resolution to this issue? I'm getting the same error. OrtRun failed to run. Error code = 6.

@bijuabraham
Copy link
Author

Hey @jacoblee93 - did you find a resolution to this issue? I'm getting the same error. OrtRun failed to run. Error code = 6.

No. It seems something to do with the file size or content of file. I abandoned and using LMStudio that has all these built in.

@jacoblee93
Copy link
Owner

That's a good clue! This is definitely meant as a proof of concept more than a super robust app but if you have the PDF causing problems I'd be interested in seeing it.

@arbitraryking
Copy link

#13 solved OrtRun(). error code = 6, I followed the hint and everything goes well

@jacoblee93
Copy link
Owner

jacoblee93 commented Mar 14, 2024

Oh nice. Will mark this as closed. Thank you to all for the reports!

I do want to leave Transformers.js as the default embeddings to put as much in the browser as possible - maybe @xenova has seen this before?

@xenova
Copy link

xenova commented Mar 14, 2024

OrtRun failed to run. Error code = 6 is an error code raised by onnxruntime-web, typically due to out of memory issues. For now, you can try (1) reduce batch size, or (2) reduce sequence length. However, this will most likely be fixed with v3 (onnxruntime-web v1.17.0 fixed a WASM memory access bug for > 2GB). You will then also be enable WebGPU support for this.

@jacoblee93
Copy link
Owner

Thank you for the context!

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

No branches or pull requests

5 participants