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

Will unsloth resize my image? #1517

Open
gigasurgeon opened this issue Jan 7, 2025 · 2 comments
Open

Will unsloth resize my image? #1517

gigasurgeon opened this issue Jan 7, 2025 · 2 comments

Comments

@gigasurgeon
Copy link

I am finetuning Llama 3.2 11B vision model. I am sending images of size 5000x5000 resolution in the prompt. The larger size is important because there are some important tiny text in the image. I was wondering if unsloth is resizing the image internally? I do not want the images to be resized.

@ariefwijaya
Copy link

No, it will use original image which is impact to you gpu memory usage. Ideally, you must resize the image smaller or use chunking method to inference high resolution image for smaller gpu

@danielhanchen
Copy link
Contributor

Currently not - but I'm planning on adding it in!

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

3 participants