Skip to content

Conversation

@cjpais
Copy link
Collaborator

@cjpais cjpais commented May 2, 2024

Ported the code from llama.cpp PR 5896

Should address llama.cpp 5852 and llama.cpp 5863

To fix, we set the number of tokens processed to it's correct value in ingest_images where the prompt is tokenized for multimodal.

Additionally a fix for the prompt being set to the empty string for multimodal responses. Basically we iteratively rebuild the initial prompt since it was cleared.

Copy link
Collaborator

@jart jart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I was wondering about that.

@jart jart merged commit a2d159e into mozilla-ai:main May 7, 2024
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.

2 participants