Text Generation
MLX
Safetensors
qwen3_5
mlx-5bit
quantized
apple-silicon
Qwen
Qwen3.6
Qwen3_5
abliterated
uncensored
conversational
5-bit
Instructions to use nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit 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 "nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit"
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 nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit"
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 "nabi-chan/Huihui-Qwen3.6-27B-abliterated-MLX-5bit" \ --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"
| library_name: mlx | |
| license: "apache-2.0" | |
| license_link: https://huggingface.co/Qwen/Qwen3.6-27B/blob/main/LICENSE | |
| pipeline_tag: text-generation | |
| language: | |
| - en | |
| - ko | |
| - zh | |
| - ja | |
| tags: | |
| - mlx | |
| - "mlx-5bit" | |
| - quantized | |
| - safetensors | |
| - apple-silicon | |
| - Qwen | |
| - Qwen3.6 | |
| - Qwen3_5 | |
| - abliterated | |
| - uncensored | |
| base_model: | |
| - huihui-ai/Huihui-Qwen3.6-27B-abliterated | |
| # 🌌 `huihui-ai/Huihui-Qwen3.6-27B-abliterated` converted to MLX 5-bit | |
| ## About This Quantization | |
| **Apple Sllicon / MLX 5-bit** | |
| - **Source Model (BF16)** : [huihui-ai/Huihui-Qwen3.6-27B-abliterated](https://huggingface.co/huihui-ai/Huihui-Qwen3.6-27B-abliterated) | |
| - **Quantized By:** [@nabi-chan](https://huggingface.co/nabi-chan) | |
| ### Quickstart | |
| #### Install | |
| ```bash | |
| pip install -U "mlx-lm>=0.31.2" | |
| ``` | |
| #### Python | |
| ```python | |
| from mlx_lm import load, generate | |
| model, tokenizer = load("nabi-chan/.Huihui-Qwen3.6-27B-abliterated-MLX-5bit.tmp-1478") | |
| print(generate(model, tokenizer, prompt="Explain quantum entanglement simply.", max_tokens=128)) | |
| ``` | |
| #### CLI | |
| ```bash | |
| python3 -m mlx_lm generate \ | |
| --model nabi-chan/.Huihui-Qwen3.6-27B-abliterated-MLX-5bit.tmp-1478 \ | |
| --prompt "Write a haiku about Apple Silicon." \ | |
| --max-tokens 128 | |
| ``` | |
| ### Quantization Details | |
| | Property | Value | | |
| | --------------------- | ---------------------------------------------------------------------------------------------- | | |
| | **Method** | MLX affine quantization | | |
| | **Bits / weight** | 5 | | |
| | **Group size** | 64 | | |
| | **Non-quant dtype** | bfloat16 | | |
| | **Quantizer version** | `mlx` : 0.31.2 / `mlx-lm` : 0.31.3 / `mlx-vlm`: 0.4.4 | | |
| > [!WARNING] | |
| > Protected tensors keep their original dtype. In VLM models, vision tensors and some guarded layers may remain unquantized. | |
| --- | |
| Everything below is huihui-ai's original model card, preserved verbatim. | |
| --- | |
| # huihui-ai/Huihui-Qwen3.6-27B-abliterated | |
| This is an uncensored version of [Qwen/Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B) created with abliteration (see [remove-refusals-with-transformers](https://github.com/Sumandora/remove-refusals-with-transformers) to know more about it). | |
| This is a crude, proof-of-concept implementation to remove refusals from an LLM model without using TransformerLens. | |
| ## ollama | |
| Please use the latest version of [ollama](https://github.com/ollama/ollama/releases/tag) | |
| You can use [huihui_ai/qwen3.6-abliterated:27b](https://ollama.com/huihui_ai/qwen3.6-abliterated:27b) directly, | |
| ``` | |
| ollama run huihui_ai/qwen3.6-abliterated:27b | |
| ``` | |
| ### Usage Warnings | |
| - **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. | |
| - **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. | |
| - **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. | |
| - **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. | |
| - **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. | |
| - **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. | |
| ### Donation | |
| ##### Your donation helps us continue our further development and improvement, a cup of coffee can do it. | |
| - bitcoin: | |
| ``` | |
| bc1qqnkhuchxw0zqjh2ku3lu4hq45hc6gy84uk70ge | |
| ``` | |
| - Support our work on [Ko-fi](https://ko-fi.com/huihuiai)! | |