Qwen 3.6
Collection
and merges with older models • 48 items • Updated • 1
How to use nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx 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("nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx")
config = load_config("nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx")
# 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)How to use nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx with Unsloth Studio:
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 nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx to start chatting
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 nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx",
max_seq_length=2048,
)How to use nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx with Pi:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx"
# 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": "nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx"
}
]
}
}
}# Start Pi in your project directory: pi
How to use nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx with Hermes Agent:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx"
# 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 nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx
hermes
How to use nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx with OpenClaw:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx"
# 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 "nightmedia/Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
openclaw agent --local --agent main --message "Hello from Hugging Face"
Brainwaves
arc arc/e boolq hswag obkqa piqa wino
mxfp8 0.673,0.846,0.905
arc arc/e boolq hswag obkqa piqa wino
Qwen3.6-27B-Instruct
mxfp8 0.647,0.803,0.910,0.773,0.450,0.806,0.742
qx86-hi 0.637,0.798,0.911,0.775,0.442,0.807,0.737
This model Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx was converted to MLX format from DavidAU/Qwen3.6-27B-Heretic2-Uncensored-Finetune-Thinking using mlx-lm version 0.31.3.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("Qwen3.6-27B-Polaris-Heretic-mxfp4-mlx")
prompt = "hello"
if tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_dict=False,
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
4-bit
Base model
trohrbaugh/Qwen3.6-27B-heretic-ara