Image-Text-to-Text
Safetensors
MLX
mlx-vlm
qwen3_5
multimodal
vision-language
qwen
abliterated
8bit
conversational
8-bit precision
Instructions to use vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit 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("vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit") config = load_config("vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit") # 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
- Pi
How to use vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit"
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": "vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit"
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 "vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit" \ --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"
- Hermes Agent
How to use vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit 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 "vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit"
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 vanch007/Huihui-Qwen3.5-9B-abliterated-mlx-8bit
Run Hermes
hermes
- Atomic Chat
Upload config.json with huggingface_hub
Browse files- config.json +115 -110
config.json
CHANGED
|
@@ -1,113 +1,118 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
],
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
"
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
"
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
"linear_attention",
|
| 33 |
-
"full_attention",
|
| 34 |
-
"linear_attention",
|
| 35 |
-
"linear_attention",
|
| 36 |
-
"linear_attention",
|
| 37 |
-
"full_attention",
|
| 38 |
-
"linear_attention",
|
| 39 |
-
"linear_attention",
|
| 40 |
-
"linear_attention",
|
| 41 |
-
"full_attention",
|
| 42 |
-
"linear_attention",
|
| 43 |
-
"linear_attention",
|
| 44 |
-
"linear_attention",
|
| 45 |
-
"full_attention",
|
| 46 |
-
"linear_attention",
|
| 47 |
-
"linear_attention",
|
| 48 |
-
"linear_attention",
|
| 49 |
-
"full_attention",
|
| 50 |
-
"linear_attention",
|
| 51 |
-
"linear_attention",
|
| 52 |
-
"linear_attention",
|
| 53 |
-
"full_attention",
|
| 54 |
-
"linear_attention",
|
| 55 |
-
"linear_attention",
|
| 56 |
-
"linear_attention",
|
| 57 |
-
"full_attention",
|
| 58 |
-
"linear_attention",
|
| 59 |
-
"linear_attention",
|
| 60 |
-
"linear_attention",
|
| 61 |
-
"full_attention"
|
| 62 |
-
],
|
| 63 |
-
"linear_conv_kernel_dim": 4,
|
| 64 |
-
"linear_key_head_dim": 128,
|
| 65 |
-
"linear_num_key_heads": 16,
|
| 66 |
-
"linear_num_value_heads": 32,
|
| 67 |
-
"linear_value_head_dim": 128,
|
| 68 |
-
"max_position_embeddings": 262144,
|
| 69 |
-
"mlp_only_layers": [],
|
| 70 |
-
"model_type": "qwen3_5_text",
|
| 71 |
-
"mtp_num_hidden_layers": 1,
|
| 72 |
-
"mtp_use_dedicated_embeddings": false,
|
| 73 |
-
"num_attention_heads": 16,
|
| 74 |
-
"num_hidden_layers": 32,
|
| 75 |
-
"num_key_value_heads": 4,
|
| 76 |
-
"rms_norm_eps": 1e-06,
|
| 77 |
-
"use_cache": true,
|
| 78 |
-
"vocab_size": 248320,
|
| 79 |
-
"mamba_ssm_dtype": "float32",
|
| 80 |
-
"rope_parameters": {
|
| 81 |
-
"mrope_interleaved": true,
|
| 82 |
-
"mrope_section": [
|
| 83 |
-
11,
|
| 84 |
-
11,
|
| 85 |
-
10
|
| 86 |
-
],
|
| 87 |
-
"rope_type": "default",
|
| 88 |
-
"rope_theta": 10000000,
|
| 89 |
-
"partial_rotary_factor": 0.25
|
| 90 |
-
}
|
| 91 |
},
|
| 92 |
-
"
|
| 93 |
-
"
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
"
|
| 112 |
-
"
|
| 113 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"image_token_id": 248056,
|
| 6 |
+
"model_type": "qwen3_5",
|
| 7 |
+
"quantization": {
|
| 8 |
+
"group_size": 64,
|
| 9 |
+
"bits": 8,
|
| 10 |
+
"mode": "affine"
|
| 11 |
+
},
|
| 12 |
+
"quantization_config": {
|
| 13 |
+
"group_size": 64,
|
| 14 |
+
"bits": 8,
|
| 15 |
+
"mode": "affine"
|
| 16 |
+
},
|
| 17 |
+
"text_config": {
|
| 18 |
+
"attention_bias": false,
|
| 19 |
+
"attention_dropout": 0.0,
|
| 20 |
+
"attn_output_gate": true,
|
| 21 |
+
"dtype": "bfloat16",
|
| 22 |
+
"eos_token_id": 248046,
|
| 23 |
+
"full_attention_interval": 4,
|
| 24 |
+
"head_dim": 256,
|
| 25 |
+
"hidden_act": "silu",
|
| 26 |
+
"hidden_size": 4096,
|
| 27 |
+
"initializer_range": 0.02,
|
| 28 |
+
"intermediate_size": 12288,
|
| 29 |
+
"layer_types": [
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"linear_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"linear_attention",
|
| 37 |
+
"full_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"linear_attention",
|
| 41 |
+
"full_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"linear_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"linear_attention",
|
| 47 |
+
"linear_attention",
|
| 48 |
+
"linear_attention",
|
| 49 |
+
"full_attention",
|
| 50 |
+
"linear_attention",
|
| 51 |
+
"linear_attention",
|
| 52 |
+
"linear_attention",
|
| 53 |
+
"full_attention",
|
| 54 |
+
"linear_attention",
|
| 55 |
+
"linear_attention",
|
| 56 |
+
"linear_attention",
|
| 57 |
+
"full_attention",
|
| 58 |
+
"linear_attention",
|
| 59 |
+
"linear_attention",
|
| 60 |
+
"linear_attention",
|
| 61 |
+
"full_attention"
|
| 62 |
],
|
| 63 |
+
"linear_conv_kernel_dim": 4,
|
| 64 |
+
"linear_key_head_dim": 128,
|
| 65 |
+
"linear_num_key_heads": 16,
|
| 66 |
+
"linear_num_value_heads": 32,
|
| 67 |
+
"linear_value_head_dim": 128,
|
| 68 |
+
"max_position_embeddings": 262144,
|
| 69 |
+
"mlp_only_layers": [],
|
| 70 |
+
"model_type": "qwen3_5_text",
|
| 71 |
+
"mtp_num_hidden_layers": 1,
|
| 72 |
+
"mtp_use_dedicated_embeddings": false,
|
| 73 |
+
"num_attention_heads": 16,
|
| 74 |
+
"num_hidden_layers": 32,
|
| 75 |
+
"num_key_value_heads": 4,
|
| 76 |
+
"rms_norm_eps": 1e-06,
|
| 77 |
+
"use_cache": true,
|
| 78 |
+
"vocab_size": 248320,
|
| 79 |
+
"mamba_ssm_dtype": "float32",
|
| 80 |
+
"rope_parameters": {
|
| 81 |
+
"mrope_interleaved": true,
|
| 82 |
+
"mrope_section": [
|
| 83 |
+
11,
|
| 84 |
+
11,
|
| 85 |
+
10
|
| 86 |
+
],
|
| 87 |
+
"rope_type": "default",
|
| 88 |
+
"rope_theta": 10000000,
|
| 89 |
+
"partial_rotary_factor": 0.25
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
},
|
| 91 |
+
"bos_token_id": 248045,
|
| 92 |
+
"pad_token_id": 248044
|
| 93 |
+
},
|
| 94 |
+
"tie_word_embeddings": false,
|
| 95 |
+
"transformers_version": "4.57.0.dev0",
|
| 96 |
+
"video_token_id": 248057,
|
| 97 |
+
"vision_config": {
|
| 98 |
+
"deepstack_visual_indexes": [],
|
| 99 |
+
"depth": 27,
|
| 100 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 101 |
+
"hidden_size": 1152,
|
| 102 |
+
"in_channels": 3,
|
| 103 |
+
"initializer_range": 0.02,
|
| 104 |
+
"intermediate_size": 4304,
|
| 105 |
+
"model_type": "qwen3_5",
|
| 106 |
+
"num_heads": 16,
|
| 107 |
+
"num_position_embeddings": 2304,
|
| 108 |
+
"out_hidden_size": 4096,
|
| 109 |
+
"patch_size": 16,
|
| 110 |
+
"spatial_merge_size": 2,
|
| 111 |
+
"temporal_patch_size": 2
|
| 112 |
+
},
|
| 113 |
+
"vision_end_token_id": 248054,
|
| 114 |
+
"vision_start_token_id": 248053,
|
| 115 |
+
"bos_token_id": 248045,
|
| 116 |
+
"eos_token_id": 248046,
|
| 117 |
+
"pad_token_id": 248044
|
| 118 |
+
}
|