You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$'You are a helpful, respectful and honest assistant. Always answer as short as possible, while being safe.\nUSER:<image>\nDo you know who drew this painting?\nASSISTANT:'
$'You are a helpful, respectful and honest assistant. Always answer as short as possible, while being safe.\nUSER:<image>\nDo you know who drew this painting?\nASSISTANT:'
$'You are a helpful, respectful and honest assistant. Always answer as short as possible, while being safe.\nUSER:<image>\nDo you know who drew this painting?\nASSISTANT:'
$'You are a helpful, respectful and honest assistant. Always answer as short as possible, while being safe.\nUSER:<image>\nDo you know who drew this painting?\nASSISTANT:'
$'[INST] <<SYS>>\nYou are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you do not know the answer to a question, please do not share false information.\n<</SYS>>\nWhat is the capital of Japan?[/INST]'
> Please refer to the [wasmedge-ggml/README.md](../README.md) for the general introduction and the setup of the WASI-NN plugin with GGML backend. This document will focus on the specific example of the Llava model.
5
+
> Refer to the [wasmedge-ggml/llava/README.md](../llava/README.md) for downloading Llava models and execution commands.
6
+
7
+
This example is to demonstrate the usage of the Llava model inference with inline base64 encoded image. Here we hardcode the base64 encoded image in the source code.
8
+
9
+
## Execute
10
+
11
+
Execute the WASM with the `wasmedge` using the named model feature to preload a large model:
12
+
13
+
> [!NOTE]
14
+
> You may see some warnings stating `key clip.vision.* not found in file.` when using llava v1.5 models. These are expected and can be ignored.
The image showcases a bowl filled with an assortment of fresh berries, including several strawberries and blueberries. A person is standing close to the bowl, holding it in their hand or about to grab some fruit from it. The colorful fruit arrangement adds vibrancy to the scene.
26
+
USER:
27
+
please tell me a kind of fruit that is not in the picture
0 commit comments