mirror of
https://github.com/OpenBMB/MiniCPM-V.git
synced 2026-02-05 18:29:18 +08:00
@@ -500,6 +500,9 @@ Please refer to the following codes to run `MiniCPM-V` and `OmniLMM`.
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
from chat import OmniLMMChat, img2base64
|
from chat import OmniLMMChat, img2base64
|
||||||
|
import torch
|
||||||
|
import json
|
||||||
|
|
||||||
torch.manual_seed(0)
|
torch.manual_seed(0)
|
||||||
|
|
||||||
chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5')
|
chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5')
|
||||||
|
|||||||
@@ -471,6 +471,9 @@ Please refer to the following codes to run `MiniCPM-V` and `OmniLMM`.
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
from chat import OmniLMMChat, img2base64
|
from chat import OmniLMMChat, img2base64
|
||||||
|
import torch
|
||||||
|
import json
|
||||||
|
|
||||||
torch.manual_seed(0)
|
torch.manual_seed(0)
|
||||||
|
|
||||||
chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5')
|
chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5')
|
||||||
|
|||||||
@@ -507,6 +507,9 @@ pip install -r requirements.txt
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
from chat import OmniLMMChat, img2base64
|
from chat import OmniLMMChat, img2base64
|
||||||
|
import torch
|
||||||
|
import json
|
||||||
|
|
||||||
torch.manual_seed(0)
|
torch.manual_seed(0)
|
||||||
|
|
||||||
chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5')
|
chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5')
|
||||||
|
|||||||
Reference in New Issue
Block a user