玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
genevera /

Qwen3.6-35B-A3B-Abliterated-Heretic-AWQ-4bit

HF 源站

genevera/Qwen3.6-35B-A3B-Abliterated-Heretic-AWQ-4bit is an uncensored open-source model hosted on Hugging Face.

Text GenerationsafetensorsLicense: apache-2.035Btransformersqwen3_5_moeimage-text-to-textqwenqwen3qwen3.6qwen3-moeqwen3-vlqwen3vlmoemixture-of-expertsmultimodalvisionimage-to-textvideo-to-textvideoaudiolong-contextlong-context-window4bitawqquantizedint4tool-callingfunction-callingchatauto-roundquantizationcustom-modelshereticablatedfilter:other_generatefilter:other_text-generationfilter:other_multimodalfilter:other_visionsize/36Bmodality:multimodallang:enlib:transformerslib:auto-roundconversational4-bit
README.md说明 / 使用方法

license: apache-2.0 base_models:

  • Youssofal/Qwen3.6-35B-A3B-Abliterated-Heretic-BF16 tags:
  • qwen
  • qwen3
  • qwen3.6
  • qwen3-moe
  • qwen3-vl
  • qwen3vl
  • moe
  • mixture-of-experts
  • multimodal
  • vision
  • image-to-text
  • text-generation
  • video-to-text
  • video
  • audio
  • long-context
  • long-context-window
  • 4bit
  • awq
  • quantized
  • int4
  • tool-calling
  • function-calling
  • chat
  • transformers
  • auto-round
  • quantization
  • custom-models
  • heretic
  • ablated
  • filter:other_generate
  • filter:other_text-generation
  • filter:other_multimodal
  • filter:other_vision
  • size/36B
  • modality:multimodal
  • lang:en
  • lib:transformers
  • lib:auto-round

Qwen3.6-35B-Abliterated-Heretic — 4-bit AWQ Quantized Multimodal MoE

A 4-bit AWQ-quantized multimodal Mixture-of-Experts (MoE) model derived from Youssofal/Qwen3.6-35B-A3B-Abliterated-Heretic-BF16. This is a quantized variant of Youssofal's Abliterated-Heretic-Uncensored model — an unrestricted, uncensored iteration of the Qwen3.6-35B family — compressed to 4-bit via Activation-aware Weight Quantization for deployment-friendly inference.

Model Type & Architecture

PropertyValue
ArchitectureQwen3_5MoeForConditionalGeneration
Model FamilyQwen3.6-35B Abliterated-Heretic-Uncensored (quantized)
Total Parameters~36.2B
Text Hidden Size2,048
Vision Hidden Size1,152
Text Layers40 (hybrid: 3 linear + 1 full attention repeating)
AttentionGrouped Query Attention (GQA), 16 query heads, 2 KV heads (ratio 8:1)
Head Dimension256
Vocabulary Size248,320
Max Context Length262,144 tokens
MoE Experts256 per layer, 8 activated per token
MoE Intermediate Size512
RoPE Theta10,000,000 (long-context optimized)
RoPEInterleaved multi-RoPE sections [11, 11, 10] for multimodal
ActivationSiLU (text), GELU-Tanh (vision)
Transformers Version5.6.0.dev0

Vision Encoder

PropertyValue
Layers27
Hidden Size1,152
Patches16×16
Temporal Patch Size2
Spatial Merge Size2
Output Dimension2,048 (matches text dimension)
Max Frames768
FPS (video)2

Quantization Details

PropertyValue
MethodAWQ (Activation-aware Weight Quantization)
Bits4-bit signed int
Group Size128
Providerauto-round v0.10.2
Quantization Targetmodel.language_model.layers
Preserved (full precision)lm_head, all shared_expert_gate layers (39), vision merger (linear_fc1, linear_fc2), entire vision encoder (model.visual.blocks)
SymmetricYes
Zero PointFalse
Versiongemm

The quantization strategy preserves critical components in full precision — including the language model head, all shared expert gating mechanisms across 40 layers, the vision-language merger, and the entire vision encoder — while quantizing only the language model layer weights. This hybrid approach maintains output quality while achieving significant memory reduction.

Multimodal Capabilities

This model supports multimodal inputs including:

  • Text: Full text generation, understanding, and chat
  • Images: Image-to-text via <|image|> tokens (ID: 248056)
  • Video: Video understanding with up to 768 frames at 2 FPS via <|video|> tokens (ID: 248057)
  • Audio: Audio token support (BOS/EOS defined)
  • Tool Calling: Full function/tool calling with XML-style tool call formatting
  • Reasoning: Chain-of-thought with <think>/</think> blocks

Chat Template

The model uses a sophisticated multimodal chat template with:

  • Full tool/function calling support with XML-style formatting
  • Reasoning block support (<thinking> / </think>)
  • Image/video token insertion with optional numbering
  • System message handling
  • Multi-turn conversation with tool results

See chat_template.jinja for the complete template.

Tokenizer

PropertyValue
ClassTokenizersBackend (HuggingFace tokenizers)
ProcessorQwen3VLProcessor
BOS / PAD248044 (<bos>)
EOS248046 (</s>)
Image Token248056 (`<
Video Token248057 (`<
Vision BOS248053 (`<
Vision EOS248054 (`<
Audio BOS/EOSDefined
Max Length262,144 tokens

See tokenizer_config.json for full configuration.

Generation Parameters

PropertyValue
SamplingEnabled (do_sample: true)
Temperature1.0
Top-K20
Top-P0.95
EOS Tokens[248046, 248044]

Quick Start — Inference Examples

Basic Text Generation

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "./Qwen3.6-35B-A3B-Abliterated-Heretic-AWQ-4bit"

# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)

# Simple text generation
messages = [
    {"role": "user", "content": "Hello, can you tell me a story?"}
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Multimodal (Image) Inference

from transformers import AutoModelForCausalLM, AutoTokenizer
from PIL import Image

model_id = "./Qwen3.6-35B-A3B-Abliterated-Heretic-AWQ-4bit"

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True,
)
processor = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)

# Load image
image = Image.open("path/to/image.jpg").convert("RGB")

# Multimodal conversation
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "image": image},
            {"type": "text", "text": "Describe this image in detail."}
        ]
    }
]

text = processor.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
)

# Note: For actual image processing, use Qwen3VLProcessor
# from transformers import Qwen3VLProcessor
# processor = Qwen3VLProcessor.from_pretrained(model_id)

inputs = processor(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
result = processor.decode(outputs[0], skip_special_tokens=True)
print(result)

Chat with Tool Calling

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "./Qwen3.6-35B-A3B-Abliterated-Heretic-AWQ-4bit"

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)

# Define tools
tools = [
    {
        "type": "function",
        "function": {
            "name": "get_weather",
            "description": "Get the current weather for a location",
            "parameters": {
                "type": "object",
                "properties": {
                    "location": {"type": "string", "description": "City name or coordinates"}
                },
                "required": ["location"]
            }
        }
    }
]

messages = [
    {"role": "system", "content": "You are a helpful assistant with weather lookup capabilities."},
    {"role": "user", "content": "What's the weather in Tokyo?"}
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    tools=tools,
)

inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
# The model may output a tool call in XML format:
# <function=get_weather>
HUGGING FACE

上游数据

HF 下载量906
HF 点赞量10

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
genevera
最近更新
2026/04/26
最新创建
2026/04/19
HF 趋势
未知
数据快照
2026/09/17
版本
未知
许可证
apache-2.0