update docs for Yi-VL
This commit is contained in:
@@ -46,12 +46,9 @@ def batch():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
runtime = sgl.Runtime(model_path="BabyChou/Yi-VL-6B",
|
||||
tokenizer_path="BabyChou/Yi-VL-6B")
|
||||
runtime = sgl.Runtime(model_path="BabyChou/Yi-VL-6B")
|
||||
# runtime = sgl.Runtime(model_path="BabyChou/Yi-VL-34B")
|
||||
sgl.set_default_backend(runtime)
|
||||
# Or you can use API models
|
||||
# sgl.set_default_backend(sgl.OpenAI("gpt-4-vision-preview"))
|
||||
# sgl.set_default_backend(sgl.VertexAI("gemini-pro-vision"))
|
||||
|
||||
# Run a single request
|
||||
print("\n========== single ==========\n")
|
||||
@@ -65,4 +62,4 @@ if __name__ == "__main__":
|
||||
print("\n========== batch ==========\n")
|
||||
batch()
|
||||
|
||||
runtime.shutdown()
|
||||
runtime.shutdown()
|
||||
|
||||
Reference in New Issue
Block a user