Update README.md
Browse files
README.md
CHANGED
|
@@ -115,7 +115,7 @@ Limitations: Although we have made efforts to ensure the safety of the model dur
|
|
| 115 |
|
| 116 |
## Quick Start
|
| 117 |
|
| 118 |
-
We provide an example code to run InternVL2-2B using `transformers`.
|
| 119 |
|
| 120 |
> Please use transformers>=4.37.2 to ensure the model works normally.
|
| 121 |
|
|
@@ -423,7 +423,7 @@ response, history = model.chat(tokenizer, pixel_values, question, generation_con
|
|
| 423 |
num_patches_list=num_patches_list, history=None, return_history=True)
|
| 424 |
print(f'User: {question}\nAssistant: {response}')
|
| 425 |
|
| 426 |
-
question = 'Describe this video in detail.
|
| 427 |
response, history = model.chat(tokenizer, pixel_values, question, generation_config,
|
| 428 |
num_patches_list=num_patches_list, history=history, return_history=True)
|
| 429 |
print(f'User: {question}\nAssistant: {response}')
|
|
|
|
| 115 |
|
| 116 |
## Quick Start
|
| 117 |
|
| 118 |
+
We provide an example code to run `InternVL2-2B` using `transformers`.
|
| 119 |
|
| 120 |
> Please use transformers>=4.37.2 to ensure the model works normally.
|
| 121 |
|
|
|
|
| 423 |
num_patches_list=num_patches_list, history=None, return_history=True)
|
| 424 |
print(f'User: {question}\nAssistant: {response}')
|
| 425 |
|
| 426 |
+
question = 'Describe this video in detail.'
|
| 427 |
response, history = model.chat(tokenizer, pixel_values, question, generation_config,
|
| 428 |
num_patches_list=num_patches_list, history=history, return_history=True)
|
| 429 |
print(f'User: {question}\nAssistant: {response}')
|