Commit
•
e66fcaa
1
Parent(s):
f62124c
update processor kwargs
Browse files
README.md
CHANGED
@@ -64,7 +64,7 @@ conversation = [
|
|
64 |
]
|
65 |
prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
|
66 |
|
67 |
-
inputs = processor(
|
68 |
|
69 |
# autoregressively complete prompt
|
70 |
output = model.generate(**inputs, max_new_tokens=100)
|
|
|
64 |
]
|
65 |
prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
|
66 |
|
67 |
+
inputs = processor(images=image, text=prompt, return_tensors="pt").to("cuda:0")
|
68 |
|
69 |
# autoregressively complete prompt
|
70 |
output = model.generate(**inputs, max_new_tokens=100)
|