Instructions to use jduartedj/MiniCPM-V-4.6-35B-Abliterated with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use jduartedj/MiniCPM-V-4.6-35B-Abliterated with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="jduartedj/MiniCPM-V-4.6-35B-Abliterated", filename="ggml-model-Q4_K_M.gguf", )
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" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jduartedj/MiniCPM-V-4.6-35B-Abliterated with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M # Run inference directly in the terminal: llama-cli -hf jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M # Run inference directly in the terminal: llama-cli -hf jduartedj/MiniCPM-V-4.6-35B-Abliterated: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 jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf jduartedj/MiniCPM-V-4.6-35B-Abliterated: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 jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M
Use Docker
docker model run hf.co/jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use jduartedj/MiniCPM-V-4.6-35B-Abliterated with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jduartedj/MiniCPM-V-4.6-35B-Abliterated" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jduartedj/MiniCPM-V-4.6-35B-Abliterated", "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/jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M
- Ollama
How to use jduartedj/MiniCPM-V-4.6-35B-Abliterated with Ollama:
ollama run hf.co/jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M
- Unsloth Studio
How to use jduartedj/MiniCPM-V-4.6-35B-Abliterated 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 jduartedj/MiniCPM-V-4.6-35B-Abliterated 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 jduartedj/MiniCPM-V-4.6-35B-Abliterated to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for jduartedj/MiniCPM-V-4.6-35B-Abliterated to start chatting
- Pi
How to use jduartedj/MiniCPM-V-4.6-35B-Abliterated with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use jduartedj/MiniCPM-V-4.6-35B-Abliterated with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use jduartedj/MiniCPM-V-4.6-35B-Abliterated with Docker Model Runner:
docker model run hf.co/jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M
- Lemonade
How to use jduartedj/MiniCPM-V-4.6-35B-Abliterated with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jduartedj/MiniCPM-V-4.6-35B-Abliterated:Q4_K_M
Run and chat with the model
lemonade run user.MiniCPM-V-4.6-35B-Abliterated-Q4_K_M
List all available models
lemonade list
MiniCPM-V-4.6-35B-Abliterated
A multimodal vision-language model combining:
- Vision: openbmb/MiniCPM-V-4.6 vision tower (SigLIP 400M, 27 encoder layers + ViT merger)
- Language: huihui-ai/Huihui-Qwen3.5-35B-A3B-abliterated (Qwen3.5-35B-A3B with abliteration for uncensored text generation)
- Merger: Trained MLP bridge (4608→2048) connecting vision to language
Architecture
| Component | Source | Parameters | Status |
|---|---|---|---|
| Vision Tower | openbmb/MiniCPM-V-4.6 | 522M | Frozen (original weights) |
| ViT Merger | openbmb/MiniCPM-V-4.6 | ~25M | Frozen (original weights) |
| Merger MLP | Trained | 30.7M | Trained (proxy MSE loss) |
| Language Model | huihui-ai/Huihui-Qwen3.5-35B-A3B-abliterated | ~35B (3B active MoE) | Abliterated weights |
The merger is a single DownsampleMLP layer:
- Input: 4608-dim (2×2 spatial merge of 1152-dim vision patches)
LayerNorm(4608)→Linear(4608→4608)→GELU→Linear(4608→2048)- Output: 2048-dim (LLM embedding space)
Merger Training Details
The merger was trained using a proxy MSE loss approach:
- Dataset: LLaVA-Pretrain (558K image-caption pairs from BLIP/LAION/CC/SBU)
- Method:
MSE(mean(merger(vision_tower(image))), mean(embed_tokens(caption))) - Only merger weights trained — vision tower and LLM frozen
- Standalone training — loaded only vision tower + merger + embed_tokens (~2.4GB GPU)
Training Metrics
| Metric | Start | End |
|---|---|---|
| MSE Loss | 0.548 | 0.0006 |
| Cosine Similarity | 0.05 | 0.10-0.12 |
Hyperparameters
- Learning rate: 1e-4 with 500-step warmup + cosine decay
- Optimizer: AdamW (β1=0.9, β2=0.999, weight_decay=0.01)
- Steps: 20,000
- Batch size: 1
- Gradient clipping: max_norm=1.0
- Hardware: NVIDIA GB10 (128GB unified memory)
- Training time: ~55 minutes
Usage
from transformers import AutoModelForCausalLM, AutoProcessor
from PIL import Image
model = AutoModelForCausalLM.from_pretrained(
"jduartedj/MiniCPM-V-4.6-35B-Abliterated",
trust_remote_code=True,
torch_dtype="auto",
device_map="auto",
)
processor = AutoProcessor.from_pretrained(
"jduartedj/MiniCPM-V-4.6-35B-Abliterated",
trust_remote_code=True,
)
image = Image.open("your_image.jpg").convert("RGB")
messages = [
{"role": "user", "content": [
{"type": "image"},
{"type": "text", "text": "Describe this image in detail."},
]},
]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=[text], images=[image], return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(output[0], skip_special_tokens=True))
Requirements
transformers >= 5.7.0(nativeminicpmv4_6support)torch >= 2.1.0torchvision- ~67GB disk space for weights
- ~75GB+ GPU memory for inference (or use quantization)
Limitations
- The merger was trained with proxy MSE loss (image embedding ↔ caption embedding), not end-to-end. Vision-language alignment may not be as strong as fully fine-tuned models.
- The abliterated LLM may produce unfiltered content — use responsibly.
- Cosine similarity between vision and text embeddings reaches ~0.10-0.12, indicating meaningful but not perfect alignment.
Credits
- openbmb — MiniCPM-V-4.6 vision architecture and weights
- huihui-ai — Abliterated Qwen3.5-35B-A3B language model
- Assembly & merger training by jduartedj
License
Apache 2.0
- Downloads last month
- 1,033
Model tree for jduartedj/MiniCPM-V-4.6-35B-Abliterated
Base model
Qwen/Qwen3.5-35B-A3B-Base