abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.
← back to catalog · indexed 2026-12-06 07:08added 2026-12-06 07:08

hletrd/Qwen4-35B-A3B-Uncensored-MLX-6bit

hletrd Qwen 35B MoE

M1 Direction removal · 3 downloads · 0 likes

Your rigComputer guess connected
? Why do I need an app?
Reading your rig…Checking…

Below is the per-quantization compatibility for this model.Below: which compressed versions fit your computer.

Reading your computer's memory from the app right now. The fit below is measured on this machine.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/hletrd%2FQwen4-35B-A3B-Uncensored-MLX-6bit"
Response includesThe data includes
  • method_v2.family M1
  • files 20
  • author_summary 42 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload10 credits · updated hourly · reply about 4 KB Get an API key →
Abliteration classifier · v2.2.0 · M-codes 2.0How this model was made
M1
Method familyMethod

Direction removal

Converted copy of kitaniai/Qwen4-35B-A3B-Uncensored (1 hop); the uncensoring event happened there: M1 · norm-preserving · llm-abliteration.A converted copy of kitaniai/Qwen4-35B-A3B-Uncensored, where refusals were removed.

EvidenceHow we know
ᴵˢ Inherited · stated
Specialist codeShort code M1 · norm-preserving · llm-abliteration · copy · MLX ᴵˢ
  • VariantForm norm-preserving I
  • Tool llm-abliteration I
  • LineageFamily tree copy · conversion T
  • DistributionFiles MLX T
Why this label 7 answers
FamilyMethod
M1 Inherited · stated Copied from the ancestor where the answer was foundTaken from the model this one comes from
VariantForm
norm-preserving Inherited · stated Copied from the ancestor where the answer was foundTaken from the model this one comes from
Scope
not stated
Tool
llm-abliteration Inherited · stated Copied from the ancestor where the answer was foundTaken from the model this one comes from
Post-processingAfterwards
not stated
LineageFamily tree
copy · conversion Tool record Same weights as the parent in another format (names, sizes, base_model)The same model in another file format
DistributionFiles
MLX Tool record From the repository's file formatsFrom the files
Target
refusal Guessed No other target stated, so refusals
Where the change lives
weights Inherited · stated Follows from the familyFollows from the method
Hardened base
not stated
Refusal direction extractionFinding the refusal signal

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.We could not tell how the refusal signal, a pattern inside the model linked to refusing, was found here. The author did not say or used private tools.

What is a refusal direction? →What is the refusal signal? →

Licence and originprovenance

Original release
  • Provider: Qwen (Alibaba) Provider: Qwen (Alibaba) original.provider
  • Release: Qwen/Qwen4-35B-A3B Original release repo: Qwen/Qwen4-35B-A3B original.release_id
  • Licence of the original release: Apache-2.0 Licence of the original release: Apache-2.0 original.licence
  • EU training-content summary published: not found as of 2026-11-29 EU training-content summary (AI Act Art. 53(1)(d)): none found, last checked 2026-11-29 original.eu_training_summary
  • Provider documents taken from the researched release of the same release line, Qwen/Qwen1.5-0.5B-Chat Provider documents taken from the researched release of the same release line, Qwen/Qwen1.5-0.5B-Chat original.eu_training_summary.from_release
  • Original release found via models it says it is built on Link found in the lineage graph (declared base models) link_source
This model
  • Licence stated by this model: apache-2.0 Licence in the model card metadata: apache-2.0 this_model.declared_licence
  • None of the checked licence points of the original release applies None of the checked licence points of the original release applies this_model.flags
Details
  • Full licence text dated copy of 29 Nov 2026 licence_text
  • Chain to this model 2 steps, 12 file hashes chain
  • Provider documents 6 facts with sources provider_documents
  • Licences side by side licences

From public data checked on 2026-12-06. Not legal advice. How this is checked · Report a problem with this information

Downloads · lifetimeDownloads · all time
3
Likes
0
Model age
today
created 2026-12-06

GenealogyFamily tree 0 direct forks

Full fork graph →All family trees →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.Its place among other models. Above: what it comes from. Below: models built on it, directly or through other models.

kitaniai/Qwen4-35B-A3B-UncensoredM1↓ 486 this lineage
hletrd/Qwen4-35B-A3B-Uncensored-MLX-6bitM1conversionconverted copy↓ 3

MetadataDetails

License
Tags
mlxsafetensorsqwen4_moequantizeduncensoredabliteratedqwen4text-generationconversationalbase_model:Qwen/Qwen4-35B-A3Bbase_model:quantized:Qwen/Qwen4-35B-A3Blicense:apache-2.0

Related

Control vectorsSteering files

Total size
43.0 GB
Files
20
Quantizations
none
Indexed by usAdded
2026-12-06 07:08
Last updated on HFLast updated
2026-12-06 06:49

Files by quantizationFiles by compression

Weights 9 files 43.0 GB
model-00004-of-00009.safetensors 4.96 GB 342083a7 download
model-00007-of-00009.safetensors 4.89 GB 4cba8389 download
model-00003-of-00009.safetensors 4.84 GB 003aca39 download
model-00002-of-00009.safetensors 4.84 GB e9ca08d2 download
model-00008-of-00009.safetensors 4.84 GB ef173ca1 download
model-00006-of-00009.safetensors 4.83 GB 2c654391 download
model-00005-of-00009.safetensors 4.83 GB 9536dbbd download
model-00001-of-00009.safetensors 4.72 GB 6cd99050 download
model-00009-of-00009.safetensors 4.24 GB 8aa37314 download
Auxiliary files 11 files 13.0 MB
tokenizer.json 12.7 MB acfb8b5f download
model.safetensors.index.json 160 KB a323e24d download
config.json 95.0 KB 57d86ca2 download
README.md 17.4 KB befa02c7 download
chat_template.jinja 11.6 KB b197b4ac download
LICENSE 11.3 KB f938136e download
tokenizer_config.json 8.44 KB 3d4cff7c download
MANIFEST 1.76 KB 557e0bf2 download
.gitattributes 1.53 KB 52373fe2 download
NOTICE 479 B fcc1ea2d download
generation_config.json 201 B 8fd7f7db download

READMEAuthor's description from Hugging Face, captured 2026-12-06


license: apache-2.0
base_model:

  • Qwen/Qwen4-35B-A3B
    base_model_relation: quantized
    library_name: mlx
    pipeline_tag: text-generation
    tags:
  • mlx
  • quantized
  • uncensored
  • abliterated
  • qwen4

Qwen4-35B-A3B-Uncensored-MLX-6bit

Abliterated Apple Silicon MLX 6bit quantization of Qwen/Qwen4-35B-A3B (849378c8db0d) built with 2-pass Triton Full-Hessian Block-OBS and Gauss-Seidel (scale, bias) refit (zero extra bytes, standard mlx-lm affine layout, sensitive router/norm/conv1d kept in exact BF16).

Abliteration

Scoped rank-3 SVD directional orthogonalization on layers 14-39 (embeddings, layers 0-13, 20B PLE n-gram table, and vision encoder untouched). Measured on held-out HarmBench (200 prompts) and Alpaca (200 harmless prompts):

Checkpoint HarmBench refusal Safe prompt refusal Thinking refusal
Qwen/Qwen4-35B-A3B (original) 97.5% 0.5% 96.7%
Qwen4-35B-A3B-Uncensored 7.5% 0.0% 8.3%

How to run

pip install -U mlx-lm
mlx_lm.generate --model hletrd/Qwen4-35B-A3B-Uncensored-MLX-6bit --prompt "Explain how attention works."

Accuracy

Measured on Apple Silicon MLX exact dequantization against Qwen4-35B-A3B-Uncensored BF16 reference log probabilities on WikiText-2 (80 chunks) and held-out text (40 chunks) at context 512:

Quant Size Mean KL WikiText-2 KL / Top-1 Held-out KL / Top-1
MLX 6bit (2-pass Full-H OBS) 46.17 GB 0.030538 0.029591 / 92.82% 0.031486 / 93.69%

License and notices

Licensed under apache-2.0 (see LICENSE and NOTICE). Modified and quantized by hletrd from Qwen/Qwen4-35B-A3B.

Updates

  • 2026-12-06: Published 2-pass Triton Full-Hessian OBS MLX 6bit build (46.17 GB, mean KL 0.030538).

Qwen4-35B-A3B

[!Note]
This repository contains model weights and configuration files for the post-trained model in the Hugging Face Transformers format.

These artifacts are compatible with Hugging Face Transformers, vLLM, SGLang, TokenSpeed, etc.

[!Tip]
For users seeking managed, scalable inference without infrastructure maintenance, the official Qwen API service is provided by Qwen Cloud.

In particular, Qwen4-35B-A3B is served under the model name qwen4-35b-a3b, with more production features, e.g., official built-in tools. For more information, please refer to the Qwen4-35B-A3B Overview.

Since the release of Qwen3.8-Flash-Next, the community has embraced the Qwen4 architecture with remarkable creativity. Built for efficient inference, the Qwen4 architecture has already found its way into a wide range of new use cases through community-driven work, especially in local, self-hosted deployment.

Meanwhile, we've been pushing hard to unlock the full potential of this next-generation architecture, culminating in Qwen4-Max, the flagship of the Qwen4 series: an ultra-sparse model designed for long-horizon agentic applications, with cost-effectiveness optimized across the board.

Building on the same architecture and training techniques, the Qwen4 open model series is now on its way, making the latest advances in Qwen's frontier AI available to an ever-wider community.

Qwen4 Highlights

Qwen4 features the following enhancement:

  • Efficient model architecture design: Built on a hybrid of linear attention and sparse attention, the Qwen4 architecture delivers outstanding efficiency in long-sequence scenarios — with faster inference and a drastically reduced cache footprint, enabling a native 1,000,000-token context window. Combined with n-gram embeddings, the architecture improves model quality without extra compute or accelerator memory overhead.

  • Significantly enhanced long-horizon agentic capabilities: Real-world productivity spans virtually every industry and profession. Throughout Qwen4's development, we went deep into the workflows of knowledge work, continually expanding the model's knowledge and capability boundaries, and achieved substantial progress in scenarios that demand sustained, long-term task delivery, with the goal of becoming a truly capable work assistant. Qwen4 also delivers stronger performance in coding for visual and creative deliverables, such as frontend development, 3D modeling, and game development with professional software & tools.

  • Improved token efficiency: Qwen4 substantially lowers the overall cost of task completion. Tasks require fewer interaction rounds, and within each round, thinking is markedly more concise across all effort levels, with the levels now clearly better separated. Paired with the architectural gains in inference efficiency, tasks complete faster and at lower cost.

Model Overview

  • Type: Causal Language Model with Vision Encoder
  • Training Stage: Pre-training & Post-training
  • Language Model
    • Number of Parameters: 35B with 3B activated, plus 20B n-gram embedding and 2B MTP
    • Hidden Dimension: 2048
    • Token Embedding: 248320 (Padded)
    • N-gram Embedding: 10,000,000 (bigrams/trigrams at layer 2)
    • Number of Layers: 40
    • Hidden Layout: 10 × (3 × (Gated DeltaNet → MoE) → 1 × (Qwen Sparse Attention → MoE))
    • Gated DeltaNet:
      • Number of Linear Attention Heads: 32 for V and 16 for QK
      • Head Dimension: 128
    • Qwen Sparse Attention:
      • Number of Attention Heads: 16 for Q and 2 for KV
      • Head Dimension: 256
      • Rotary Position Embedding Dimension: 64
      • Indexer Structure: MQA with 4 Query Heads and 1 Shared Key Head
      • Indexer Head Dimension: 128
      • Budget: 512 blocks or 2048 tokens
    • Mixture Of Experts
      • Number of Experts: 256
      • Number of Activated Experts: 8 Routed + 1 Shared
      • Expert Intermediate Dimension: 512
    • Gated Residual:
      • Number of Branches: 4
      • Bottleneck Rank: 256
    • LM Output: 248320 (Padded)
    • MTP: 1 layer, trained with multi-steps
  • Context Length: 1,048,576 natively.

Benchmark Results

Qwen4-35B-A3B Benchmark Results

1. Terminal Bench 4.1, FrontierCode-AA 2.0, AA-Briefcase v1.1 and AutomationBench-AA: Scores are cited from Artificial Analysis.
2. APEX-Agents v1.1: Scores are cited from the Mercor leaderboard.
3. Work360: Our built-in benchmark for evaluating models' capabilities across industrial and professional workflows.
4. ChartoGraphy: The scores of our models were obtained with min_pixels set to 4096×32×32.

Quickstart

For streamlined integration, we recommend using Qwen4-35B-A3B via APIs.

Serving Qwen4-35B-A3B

[!Important]
Inference efficiency and throughput vary significantly across frameworks.
We recommend using the latest framework versions to ensure optimal performance and compatibility.
For production workloads or high-throughput scenarios, dedicated serving engines such as SGLang, vLLM, and TokenSpeed are strongly recommended.

Qwen4-35B-A3B can be deployed with popular inference frameworks for production-level serving, e.g.:

For local deployment, model repositories in compatible formats can be found in the model tree on the right.
The Qwen4 architecture is supported by general-purpose inference engines such as llama.cpp, ollama, unsloth, mlx-vlm, and LiteRT-LM as well as by specialized inference engines for Qwen4.

Qwen4 Tokenizer

Along with the model weights, we release a reference implementation of the Qwen4 Tokenizer/Processor. It ships with the original BPE vocabulary and provides methods for formatting messages into token sequences and parsing messages from generated token sequences. The implementation additionally depends on tiktoken, and trust_remote_code=True is required when creating the tokenizer instance. We recommend using this implementation.

For ecosystems that rely on Jinja chat templates, we include one in tokenizer-compat/ for backward compatibility only. Please note that although it produces the same formatted text, the resulting token IDs can be different, since the reference implementation distinguishes control tokens from regular tokens at the ID level.

See README-tokenizer.md for details.

API Usage

[!Tip]
We recommend using the following sets of sampling parameters for generation:

  • Thinking Mode: temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=0.0, repetition_penalty=1.0
  • Non-thinking Mode: temperature=0.7, top_p=0.80, top_k=20, min_p=0.0, presence_penalty=1.5, repetition_penalty=1.0

Please note that the support for sampling parameters varies according to inference frameworks.

Thinking Control

Qwen4 supports controlling thinking behavior via reasoning_effort and preserve_thinking. By default, Qwen4 operates in thinking mode reasoning_effort="high" and preserve_thinking enabled.

The supported reasoning effort levels are:

  • xhigh: for complex tasks where quality matters most
  • high: for common tasks (default)
  • low: for fast responses with minimal thinking
  • off: disables thinking entirely

The enable_thinking switch can still be used and enable_thinking=False is equivalent to reasoning_effort="off". Please also note that the model may judge a task simple enough to answer directly without thinking, even at non-off reasoning effort levels.

[!Tip]
In multi-turn agentic tasks, lower reasoning effort does not always reduce overall task completion time. Although it may produce faster per-turn responses, it can also lead to insufficient analysis, more failures, and repeated retries, which may increase total latency and token consumption.

Chat Completions API

The Chat Completions API is available in most inference frameworks, as well as on Qwen Cloud. You can call the API directly from your application, or connect it to agentic tools such as Qoder CLI and Qwen Code.

Below we show an example of calling the API directly. For connecting agentic applications, please refer to the respective guides for each tool.


Before starting, make sure it is installed and the API key and the API base URL is configured, e.g.:

pip install -U openai

# Set the following accordingly
export OPENAI_BASE_URL="http://localhost:8000/v1"
export OPENAI_API_KEY="EMPTY"
from openai import OpenAI
# Configured by environment variables
client = OpenAI()

# Text-only Input
messages = [
    {"role": "user", "content": "Write a Python function to merge two sorted linked lists."},
]
# Image Input
# messages = [
#     {
#         "role": "user",
#         "content": [
#             {
#                 "type": "image_url",
#                 "image_url": {
#                     "url": "https://qianwen-res.oss-accelerate.aliyuncs.com/Qwen3.5/demo/CI_Demo/mathv-1327.jpg"
#                 }
#             },
#             {
#                 "type": "text",
#                 "text": "The centres of the four illustrated circles are in the corners of the square. The two big circles touch each other and also the two little circles. With which factor do you have to multiply the radii of the little circles to obtain the radius of the big circles?\nChoices:\n(A) $\\frac{2}{9}$\n(B) $\\sqrt{5}$\n(C) $0.8 \\cdot \\pi$\n(D) 2.5\n(E) $1+\\sqrt{2}$"
#             }
#         ]
#     }
# ]

# Video Input
# messages = [
#     {
#         "role": "user",
#         "content": [
#             {
#                 "type": "video_url",
#                 "video_url": {
#                     "url": "https://qianwen-res.oss-accelerate.aliyuncs.com/Qwen3.5/demo/video/N1cdUjctpG8.mp4"
#                 }
#             },
#             {
#                 "type": "text",
#                 "text": "How many porcelain jars were discovered in the niches located in the primary chamber of the tomb?"
#             }
#         ]
#     }
# ]

completion = client.chat.completions.create(
    model="Qwen/Qwen4-35B-A3B",
    messages=messages,
    extra_body={
        "chat_template_kwargs": {
            "preserve_thinking": True,  # on by default
            "reasoning_effort": "high",  # optional; supported levels: "xhigh", "high", "low", "off" (default: high)
        },
    },
    stream=True,
    stream_options={"include_usage": True},
)

reasoning_content = ""
answer_content = ""
is_answering = False
print("\n" + "=" * 20 + "Reasoning" + "=" * 20 + "\n")

for chunk in completion:
    if not chunk.choices:
        print("\nUsage:")
        print(chunk.usage)
        continue

    delta = chunk.choices[0].delta

    if hasattr(delta, "reasoning_content") and delta.reasoning_content is not None:
        if not is_answering:
            print(delta.reasoning_content, end="", flush=True)
        reasoning_content += delta.reasoning_content
    elif hasattr(delta, "reasoning") and delta.reasoning is not None:
        if not is_answering:
            print(delta.reasoning, end="", flush=True)
        reasoning_content += delta.reasoning

    if hasattr(delta, "content") and delta.content:
        if not is_answering:
            print("\n" + "=" * 20 + "Answer" + "=" * 20 + "\n")
            is_answering = True
        print(delta.content, end="", flush=True)
        answer_content += delta.content

messages.append({
    "role": "assistant",
    "content": answer_content,
    "reasoning_content": reasoning_content,
})

Best Practices

To achieve optimal performance, we recommend the following settings:

  1. Sampling Parameters: We suggest using the following sets of sampling parameters:

    • Thinking Mode: temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=0.0, repetition_penalty=1.0
    • Non-thinking Mode: temperature=0.7, top_p=0.80, top_k=20, min_p=0.0, presence_penalty=1.5, repetition_penalty=1.0

    For supported frameworks, you can adjust the presence_penalty parameter between 0 and 2 to reduce endless repetition. However, using a higher value may occasionally result in language mixing and a slight decrease in model performance.

  2. Adequate Output Length: To optimize performance on agentic tasks, we recommend allocating sufficient output length to allow the model to generate detailed and comprehensive responses. For frameworks that support separate token limits for internal reasoning and final outputs, we suggest the following configuration within the 1M context length:

    • Reasoning Content: Set the maximum output length to 262,144 tokens.
    • Final Response: Set the maximum output length to 131,072 tokens.

    These settings provide the necessary capacity for complex reasoning while ensuring ample space for high-quality final deliverables.

  3. Long Video Understanding: To optimize inference efficiency for plain text and images, the size parameter in the released video_preprocessor_config.json is conservatively configured. It is recommended to set the longest_edge parameter in the video_preprocessor_config file to 469,762,048 (corresponding to 224k video tokens) to enable higher frame-rate sampling for hour-scale videos and thereby achieve superior performance. For example,

    {"longest_edge": 469762048, "shortest_edge": 4096}
    

    Alternatively, override the default values via engine startup parameters. For implementation details, refer to: vLLM / SGLang.

  4. Video Frame Sampling: When vLLM is launched with --media-io-kwargs '{"video": {"num_frames": -1}}', video frame sampling can be configured via extra_body (e.g., by setting fps). This feature is currently supported only in vLLM. By default, fps=2 and do_sample_frames=True.

    # With `do_sample_frames=True`, you can customize the `fps` value to set your desired video sampling rate.
    chat_response = client.chat.completions.create(
        model="Qwen/Qwen4-35B-A3B",
        messages=messages,
        extra_body={
            "mm_processor_kwargs": {"fps": 2, "do_sample_frames": True},
        }, 
    )
    

Citation

If you find our work helpful, feel free to give us a cite.

@techreport{qwen2026design,
    title       = {On the Design of {Qwen3.8-Next} Architecture: Evaluation, Efficiency, and Training Stability},
    author      = {{Qwen Team}},
    institution = {Alibaba Group},
    month       = {August},
    year        = {2026}
}

@misc{qwen4-35ba3b,
    title  = {{Qwen4-35B-A3B}},
    author = {{Qwen Team}},
    month  = {December},
    year   = {2026},
    url    = {https://huggingface.co/Qwen/Qwen4-35B-A3B}
}
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration