Image-Text-to-Text
Transformers
GGUF
multilingual
minicpm-v
vision
ocr
multi-image
video
custom_code
conversational
Instructions to use lmstudio-community/MiniCPM-V-2_6-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lmstudio-community/MiniCPM-V-2_6-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="lmstudio-community/MiniCPM-V-2_6-GGUF", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("lmstudio-community/MiniCPM-V-2_6-GGUF", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use lmstudio-community/MiniCPM-V-2_6-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M
Use Docker
docker model run hf.co/lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use lmstudio-community/MiniCPM-V-2_6-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lmstudio-community/MiniCPM-V-2_6-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmstudio-community/MiniCPM-V-2_6-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M
- SGLang
How to use lmstudio-community/MiniCPM-V-2_6-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "lmstudio-community/MiniCPM-V-2_6-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmstudio-community/MiniCPM-V-2_6-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "lmstudio-community/MiniCPM-V-2_6-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmstudio-community/MiniCPM-V-2_6-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use lmstudio-community/MiniCPM-V-2_6-GGUF with Ollama:
ollama run hf.co/lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M
- Unsloth Studio
How to use lmstudio-community/MiniCPM-V-2_6-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for lmstudio-community/MiniCPM-V-2_6-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for lmstudio-community/MiniCPM-V-2_6-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for lmstudio-community/MiniCPM-V-2_6-GGUF to start chatting
- Docker Model Runner
How to use lmstudio-community/MiniCPM-V-2_6-GGUF with Docker Model Runner:
docker model run hf.co/lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M
- Lemonade
How to use lmstudio-community/MiniCPM-V-2_6-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lmstudio-community/MiniCPM-V-2_6-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.MiniCPM-V-2_6-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Remove files
Browse files- MiniCPM-V-2_6-IQ3_M.gguf +0 -3
- MiniCPM-V-2_6-IQ4_XS.gguf +0 -3
- MiniCPM-V-2_6-Q2_K.gguf +0 -3
- MiniCPM-V-2_6-Q2_K_L.gguf +0 -3
- MiniCPM-V-2_6-Q3_K_L.gguf +0 -3
- MiniCPM-V-2_6-Q3_K_M.gguf +0 -3
- MiniCPM-V-2_6-Q3_K_XL.gguf +0 -3
- MiniCPM-V-2_6-Q4_K_L.gguf +0 -3
- MiniCPM-V-2_6-Q4_K_S.gguf +0 -3
- MiniCPM-V-2_6-Q5_K_L.gguf +0 -3
- MiniCPM-V-2_6-Q5_K_S.gguf +0 -3
- MiniCPM-V-2_6-Q6_K_L.gguf +0 -3
- MiniCPM-V-2_6-f16.gguf +0 -3
MiniCPM-V-2_6-IQ3_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5f2f4749f21d397c3579eae10fef68f5bf109f6eb25642a63ec4436176ee414d
|
| 3 |
-
size 3572217376
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-IQ4_XS.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0c89fba393af787967433830950e2be23c0ba910fefb6025330eae98cb7a0cfb
|
| 3 |
-
size 4248358944
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-Q2_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:310bd042b1e8728b96b913ed45d31b5479e9b98e7d61f2678c05b7c92a268c5d
|
| 3 |
-
size 3014290432
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-Q2_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:36349fc98be75220e561ca2e40f0b8f16ea942db7d8228ce32882d66da47ba76
|
| 3 |
-
size 3545121408
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:dd0879a451788f7a4fa7a912271a85c93bde740da68bfdb3a6169c6e8d6825ab
|
| 3 |
-
size 4086664736
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b01123562f7123c1db44b8c55bc1e1c3aef452e0abfcbcbe95373e1395e0b849
|
| 3 |
-
size 3806596640
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-Q3_K_XL.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d552ec51ba59d9824ee564c1db4c5932d7ffebae5e8bc5cf8d65b94eb5b8dd3d
|
| 3 |
-
size 4562289280
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-Q4_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:677de5c77f0e4802a8187a63e6b90d92be5ea1fc6fb083c4d51e7cd60328f702
|
| 3 |
-
size 5084521088
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:575cf878bac94431a3bcb3b5a930b11bcd28881c50f98f37259ce069c9206a55
|
| 3 |
-
size 4455784960
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-Q5_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:19f29eea9ec32c407238dec066353939cb0e850392515ace4cee129e3b5d8ab7
|
| 3 |
-
size 5778154112
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d85616535c3ee632ce27c7755833118593ea3c93e46764da6fbc011e299184e4
|
| 3 |
-
size 5313014144
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-Q6_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f24fb38009c8837af9a151a2d78ff5a0c6fb536302d188a4197ec320be2c7269
|
| 3 |
-
size 6515139200
|
|
|
|
|
|
|
|
|
|
|
|
MiniCPM-V-2_6-f16.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:da707d062f623d658d4b8078f140d33aedf802a0897d5cf6e7b1453c2e07371c
|
| 3 |
-
size 15232135936
|
|
|
|
|
|
|
|
|
|
|
|