Image-Text-to-Text
Transformers
Safetensors
MLX
qwen3_vl_moe
abliterated
uncensored
4bit
quantization
conversational
4-bit precision
Instructions to use MLXBits/huihui-qwen3-vl-30b-abliterated-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MLXBits/huihui-qwen3-vl-30b-abliterated-4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="MLXBits/huihui-qwen3-vl-30b-abliterated-4bit") 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 AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("MLXBits/huihui-qwen3-vl-30b-abliterated-4bit") model = AutoModelForMultimodalLM.from_pretrained("MLXBits/huihui-qwen3-vl-30b-abliterated-4bit", device_map="auto") 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?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - MLX
How to use MLXBits/huihui-qwen3-vl-30b-abliterated-4bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("MLXBits/huihui-qwen3-vl-30b-abliterated-4bit") config = load_config("MLXBits/huihui-qwen3-vl-30b-abliterated-4bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- vLLM
How to use MLXBits/huihui-qwen3-vl-30b-abliterated-4bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MLXBits/huihui-qwen3-vl-30b-abliterated-4bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MLXBits/huihui-qwen3-vl-30b-abliterated-4bit", "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/MLXBits/huihui-qwen3-vl-30b-abliterated-4bit
- SGLang
How to use MLXBits/huihui-qwen3-vl-30b-abliterated-4bit 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 "MLXBits/huihui-qwen3-vl-30b-abliterated-4bit" \ --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": "MLXBits/huihui-qwen3-vl-30b-abliterated-4bit", "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 "MLXBits/huihui-qwen3-vl-30b-abliterated-4bit" \ --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": "MLXBits/huihui-qwen3-vl-30b-abliterated-4bit", "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" } } ] } ] }' - Pi
How to use MLXBits/huihui-qwen3-vl-30b-abliterated-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "MLXBits/huihui-qwen3-vl-30b-abliterated-4bit"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MLXBits/huihui-qwen3-vl-30b-abliterated-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use MLXBits/huihui-qwen3-vl-30b-abliterated-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "MLXBits/huihui-qwen3-vl-30b-abliterated-4bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "MLXBits/huihui-qwen3-vl-30b-abliterated-4bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use MLXBits/huihui-qwen3-vl-30b-abliterated-4bit with Docker Model Runner:
docker model run hf.co/MLXBits/huihui-qwen3-vl-30b-abliterated-4bit
- Hermes Agent
How to use MLXBits/huihui-qwen3-vl-30b-abliterated-4bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "MLXBits/huihui-qwen3-vl-30b-abliterated-4bit"
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 MLXBits/huihui-qwen3-vl-30b-abliterated-4bit
Run Hermes
hermes
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,10 +1,55 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
pipeline_tag: image-text-to-text
|
| 4 |
-
library_name:
|
| 5 |
-
base_model:
|
|
|
|
|
|
|
| 6 |
tags:
|
| 7 |
- abliterated
|
| 8 |
- uncensored
|
|
|
|
| 9 |
- mlx
|
|
|
|
| 10 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
pipeline_tag: image-text-to-text
|
| 4 |
+
library_name: transformers
|
| 5 |
+
base_model:
|
| 6 |
+
- huihui-ai/Huihui-Qwen3-VL-30B-A3B-Instruct-abliterated
|
| 7 |
+
base_model_relation: quantized
|
| 8 |
tags:
|
| 9 |
- abliterated
|
| 10 |
- uncensored
|
| 11 |
+
- 4bit
|
| 12 |
- mlx
|
| 13 |
+
- quantization
|
| 14 |
---
|
| 15 |
+
|
| 16 |
+
# MLXBits/huihui-qwen3-vl-30b-abliterated-4bit
|
| 17 |
+
|
| 18 |
+
This is MLX conversion and quantization of [huihui-ai/Huihui-Qwen3-VL-30B-A3B-Instruct-abliterated](https://huggingface.co/huihui-ai/Huihui-Qwen3-VL-30B-A3B-Instruct-abliterated) for us on MacOS M-series SOC's using mlx-vlm.
|
| 19 |
+
|
| 20 |
+
The base model is an uncensored version of [Qwen/Qwen3-VL-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-30B-A3B-Instruct) created with abliteration (see [remove-refusals-with-transformers](https://github.com/Sumandora/remove-refusals-with-transformers) to know more about it).
|
| 21 |
+
|
| 22 |
+
It has been tested with LM Studio, confirming both text input and image input work as expected.
|
| 23 |
+
|
| 24 |
+
Cnversion syntax:
|
| 25 |
+
``` bash
|
| 26 |
+
mlx-forge> uv run mlx_vlm.convert \
|
| 27 |
+
--hf-path huihui-ai/Huihui-Qwen3-VL-30B-A3B-Instruct-abliterated \
|
| 28 |
+
--mlx-path ~/models/huihui-qwen3-vl-30b-abliterated-4bit \
|
| 29 |
+
--quantize --q-bits 4
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
### Usage Warnings
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
- **Risk of Sensitive or Controversial Outputs**: This model’s safety filtering has been significantly reduced, potentially generating sensitive, controversial, or inappropriate content. Users should exercise caution and rigorously review generated outputs.
|
| 36 |
+
|
| 37 |
+
- **Not Suitable for All Audiences**: Due to limited content filtering, the model’s outputs may be inappropriate for public settings, underage users, or applications requiring high security.
|
| 38 |
+
|
| 39 |
+
- **Legal and Ethical Responsibilities**: Users must ensure their usage complies with local laws and ethical standards. Generated content may carry legal or ethical risks, and users are solely responsible for any consequences.
|
| 40 |
+
|
| 41 |
+
- **Research and Experimental Use**: It is recommended to use this model for research, testing, or controlled environments, avoiding direct use in production or public-facing commercial applications.
|
| 42 |
+
|
| 43 |
+
- **Monitoring and Review Recommendations**: Users are strongly advised to monitor model outputs in real-time and conduct manual reviews when necessary to prevent the dissemination of inappropriate content.
|
| 44 |
+
|
| 45 |
+
- **No Default Safety Guarantees**: Unlike standard models, this model has not undergone rigorous safety optimization. huihui.ai bears no responsibility for any consequences arising from its use.
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
### Donation
|
| 49 |
+
##### Your donation helps us continue our further development and improvement, a cup of coffee can do it.
|
| 50 |
+
- bitcoin:
|
| 51 |
+
```
|
| 52 |
+
bc1qqnkhuchxw0zqjh2ku3lu4hq45hc6gy84uk70ge
|
| 53 |
+
```
|
| 54 |
+
- Support our work on [Ko-fi](https://ko-fi.com/huihuiai)!
|
| 55 |
+
|