-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To make LLaVA simpler to use I've created an eval_string() function that accepts an arbitrary string input, which is tokenized and decoded. If it has any legal data:foo URI substrings inside it then they'll be replaced with image emdeddings and evaluated separately. This means you can embed images into your JSON chat.completion.messages using <img>, ![](data:..) or simply putting the naked data:.... uri in your message. If it decodes as a valid image file format that STB supports, then LLaVA shall see it. This change additionally sneaks in the following improvements: - Introduce --nologo flag for chatbot - Support --no-display-prompt in chatbot - Upgrade STB libraries to latest versions - Overhaul --help and man page documentation - Be smarter about printing \n in chatbot output - Make --gpu flag imply -ngl 999 for ease of use - Use srgb rather than linear scaling in stable diffusion - Support the --verbose flag in the chatbot to display logs - Fix the /stats command which wasn't working correctly earlier
- Loading branch information
Showing
28 changed files
with
18,286 additions
and
9,756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.