How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="llaa33219/MiniCPM-V-4.6-GGUF",
	filename="",
)
llm.create_chat_completion(
	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"
					}
				}
			]
		}
	]
)

MiniCPM-V-4.6 GGUF

GGUF format quantized versions of openbmb/MiniCPM-V-4.6.

Available Variants

File Quantization Size BPW Description
MiniCPM-V-4.6-F16.gguf F16 1.5GB 16.0 Full precision
MiniCPM-V-4.6-Q4_K_M.gguf Q4_K_M 812MB 8.5 4-bit, medium
MiniCPM-V-4.6-Q4_K_S.gguf Q4_K_S 812MB 8.5 4-bit, small
MiniCPM-V-4.6-Q3_K_M.gguf Q3_K_M 812MB 8.5 3-bit, medium
MiniCPM-V-4.6-Q3_K_S.gguf Q3_K_S 812MB 8.5 3-bit, small
MiniCPM-V-4.6-Q2_K.gguf Q2_K 812MB 8.5 2-bit, smallest

Model Info

  • Architecture: MiniCPMV4_6ForConditionalGeneration
  • Vision Encoder: SigLIP2-400M (27 layers, hidden_size=1152)
  • Language Model: Qwen3.5-0.8B (24 layers, hidden_size=1024)
  • Total Parameters: 1.3B
  • Context Length: 262K tokens
  • License: Apache-2.0

Usage

llama.cpp

llama-server -m MiniCPM-V-4.6-Q2_K.gguf --port 8080

Python

from llama_cpp import Llama

llm = Llama(model_path="./MiniCPM-V-4.6-Q2_K.gguf", n_ctx=512, n_threads=4)
output = llm.create_chat_completion(
    messages=[{"role": "user", "content": "你好,你是谁?"}],
    max_tokens=100,
    temperature=0.0,
)
print(output['choices'][0]['message']['content'])

Ollama

FROM ./MiniCPM-V-4.6-Q2_K.gguf
ollama create minicpm-v-4.6 -f Modelfile
ollama run minicpm-v-4.6

Quantization Guide

Type Bits Quality Speed Use Case
F16 16 Best Slow Development
Q4_K_M 4 Good Fast General use
Q3_K_M 3 Medium Faster Balanced
Q2_K 2 Lower Fastest Edge/mobile

Conversion

python convert_hf_to_gguf.py openbmb/MiniCPM-V-4.6 --outfile MiniCPM-V-4.6-F16.gguf --outtype f16
llama-quantize MiniCPM-V-4.6-F16.gguf MiniCPM-V-4.6-Q2_K.gguf Q2_K

License

Apache-2.0

Downloads last month
886
GGUF
Model size
0.4B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for llaa33219/MiniCPM-V-4.6-GGUF

Quantized
(17)
this model

Collection including llaa33219/MiniCPM-V-4.6-GGUF