Update README.md
Browse files
README.md
CHANGED
@@ -26,7 +26,9 @@ Yi-VL adopts the [LLaVA](https://github.com/haotian-liu/LLaVA) architecture, whi
|
|
26 |
|
27 |
This has been implemented into the SGLang codebase, where you can simply call this model by creating a function like so:
|
28 |
```
|
29 |
-
sgl
|
|
|
|
|
30 |
def image_qa(s, image_path, question):
|
31 |
s += sgl.user(sgl.image(image_path) + question)
|
32 |
s += sgl.assistant(sgl.gen("answer"))
|
|
|
26 |
|
27 |
This has been implemented into the SGLang codebase, where you can simply call this model by creating a function like so:
|
28 |
```
|
29 |
+
import sglang as sgl
|
30 |
+
|
31 |
+
@sgl.function
|
32 |
def image_qa(s, image_path, question):
|
33 |
s += sgl.user(sgl.image(image_path) + question)
|
34 |
s += sgl.assistant(sgl.gen("answer"))
|