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