You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Download [MiniCPM-o-4](https://huggingface.co/openbmb/MiniCPM-o-4) PyTorch model from huggingface to "MiniCPM-o-4" folder.
6
+
7
+
8
+
### Build llama.cpp
9
+
Readme modification time: 20250206
10
+
11
+
If there are differences in usage, please refer to the official build [documentation](https://github.com/ggerganov/llama.cpp/blob/master/docs/build.md)
12
+
13
+
Clone llama.cpp:
14
+
```bash
15
+
git clone https://github.com/ggerganov/llama.cpp
16
+
cd llama.cpp
17
+
```
18
+
19
+
Build llama.cpp using `CMake`:
20
+
```bash
21
+
cmake -B build
22
+
cmake --build build --config Release
23
+
```
24
+
25
+
26
+
### Usage of MiniCPM-o 4
27
+
28
+
Convert PyTorch model to gguf files (You can also download the converted [gguf](https://huggingface.co/openbmb/MiniCPM-o-4-gguf) by us)
Download [MiniCPM-V-4](https://huggingface.co/openbmb/MiniCPM-V-4) PyTorch model from huggingface to "MiniCPM-V-4" folder.
6
+
7
+
8
+
### Build llama.cpp
9
+
Readme modification time: 20250206
10
+
11
+
If there are differences in usage, please refer to the official build [documentation](https://github.com/ggerganov/llama.cpp/blob/master/docs/build.md)
12
+
13
+
Clone llama.cpp:
14
+
```bash
15
+
git clone https://github.com/ggerganov/llama.cpp
16
+
cd llama.cpp
17
+
```
18
+
19
+
Build llama.cpp using `CMake`:
20
+
```bash
21
+
cmake -B build
22
+
cmake --build build --config Release
23
+
```
24
+
25
+
26
+
### Usage of MiniCPM-V 4
27
+
28
+
Convert PyTorch model to gguf files (You can also download the converted [gguf](https://huggingface.co/openbmb/MiniCPM-V-4-gguf) by us)
ap.add_argument('--image-mean', type=float, nargs='+', help='Mean of the images for normalization (overrides processor) ', default=None)
503
503
ap.add_argument('--image-std', type=float, nargs='+', help='Standard deviation of the images for normalization (overrides processor)', default=None)
504
-
ap.add_argument('--minicpmv_version', type=int, help='minicpmv_version: MiniCPM-V-2 use 1; MiniCPM-V-2.5 use 2; MiniCPM-V-2.6 use 3; MiniCPM-o-2.6 use 4', default=2)
504
+
ap.add_argument('--minicpmv_version', type=int, help='minicpmv_version: MiniCPM-V-2 use 1; MiniCPM-V-2.5 use 2; MiniCPM-V-2.6 use 3; MiniCPM-o-2.6 use 4; MiniCPM-V 4.0 use 5; MiniCPM-o-4.0 use 6', default=2)
505
505
506
506
# with proper
507
507
args=ap.parse_args()
@@ -517,6 +517,17 @@ def bytes_to_unicode():
517
517
# output in the same directory as the model if output_dir is None
518
518
dir_model=args.model_dir
519
519
520
+
# If minicpmv_projector is not specified but the default path exists, use the default path
0 commit comments