typo ...
Browse files
README.md
CHANGED
@@ -103,8 +103,9 @@ output = model.generate(**inputs, max_new_tokens=200, do_sample=False)
|
|
103 |
print(processor.decode(output[0][2:], skip_special_tokens=True))
|
104 |
```
|
105 |
|
|
|
106 |
From transformers>=v4.48, you can also pass image url or local path to the conversation history, and let the chat template handle the rest.
|
107 |
-
Chat template will load the image for you and return inputs in `torch.Tensor` which you can pass
|
108 |
|
109 |
```python
|
110 |
messages = [
|
|
|
103 |
print(processor.decode(output[0][2:], skip_special_tokens=True))
|
104 |
```
|
105 |
|
106 |
+
-----------
|
107 |
From transformers>=v4.48, you can also pass image url or local path to the conversation history, and let the chat template handle the rest.
|
108 |
+
Chat template will load the image for you and return inputs in `torch.Tensor` which you can pass directly to `model.generate()`
|
109 |
|
110 |
```python
|
111 |
messages = [
|