mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
A few questions about vision models (multimodal) #192
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DanilZittser on GitHub (Dec 25, 2024).
Hello, developers of
ollama-python!Thank you for your hard work and dedication to building such an awesome library. Keep it up! 🚀
I have a few questions about using multimodal models.
1️⃣ Where can I find up-to-date information about what prompt techniques the model supports?
For example, the llama3.2-vision description page doesn't say anything about the model supporting prompt techniques like system prompt, few-shot examples or structured output. Am I right in thinking that for each model you need to go to the official GitHub page?
For example, on this issue I learned that the model does not support few-shot prompting.
===
2️⃣ Should the same way of representing an image as bytes be used for few-shot examples and the actual request?
The problem is this:
===
ollama server version
ollama client version
@TemugeB commented on GitHub (Dec 27, 2024):
Wouldn't this also cause assertion error
assert cv.imread('dummy.jpg').tobytes() == img.tobytes()? Imwrite saves in RGB format while internally opencv uses BGR?@TemugeB commented on GitHub (Dec 27, 2024):
Nevermind. The problem is you're using JPEG to save, which compresses the image. So the decompression is not exactly the same as the original image. Try using PNG to save.