Update README.md
Browse files
README.md
CHANGED
|
@@ -214,15 +214,7 @@ print(f'User: {question}\nAssistant: {response}')
|
|
| 214 |
|
| 215 |
### Inference with LMDeploy
|
| 216 |
|
| 217 |
-
Please install
|
| 218 |
-
|
| 219 |
-
```bash
|
| 220 |
-
git clone https://github.com/InternLM/lmdeploy.git
|
| 221 |
-
cd lmdeploy
|
| 222 |
-
pip install -e .
|
| 223 |
-
```
|
| 224 |
-
|
| 225 |
-
Then run the following code for inference.
|
| 226 |
|
| 227 |
```python
|
| 228 |
from lmdeploy import pipeline
|
|
@@ -230,7 +222,7 @@ from lmdeploy.vl import load_image
|
|
| 230 |
|
| 231 |
image = load_image('./examples/image1.jpg')
|
| 232 |
pipe = pipeline('OpenGVLab/Mono-InternVL-2B')
|
| 233 |
-
response = pipe(('describe
|
| 234 |
print(response.text)
|
| 235 |
```
|
| 236 |
|
|
|
|
| 214 |
|
| 215 |
### Inference with LMDeploy
|
| 216 |
|
| 217 |
+
Please install lmdeploy>=0.6.3 for Mono-InternVL support.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
|
| 219 |
```python
|
| 220 |
from lmdeploy import pipeline
|
|
|
|
| 222 |
|
| 223 |
image = load_image('./examples/image1.jpg')
|
| 224 |
pipe = pipeline('OpenGVLab/Mono-InternVL-2B')
|
| 225 |
+
response = pipe(('Please describe the image shortly.', image))
|
| 226 |
print(response.text)
|
| 227 |
```
|
| 228 |
|