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