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

Question: Prompt tokens per second. #145

Open
stellanhaglund opened this issue Dec 6, 2024 · 1 comment
Open

Question: Prompt tokens per second. #145

stellanhaglund opened this issue Dec 6, 2024 · 1 comment

Comments

@stellanhaglund
Copy link

The prompt processing is quite slow. Around 4 tokens per second on my M2.

Is there a way to speed that up or is it related to the image processing/tokens?

@Blaizzy
Copy link
Owner

Blaizzy commented Dec 6, 2024

Yes, you can use --resize-shape.

The image is probably too big or the model has architecture that has some bottlenecks (i.e, Llama-Vision cross attention)

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

2 participants