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

gemma-4-12b-heretic-abliterated-GGUF

HF 源站

culturerevolt/gemma-4-12b-heretic-abliterated-GGUF is an uncensored open-source model hosted on Hugging Face.

Text GenerationGGUFLicense: apache-2.012Bgemma-4abliterateduncensoredhereticimatrixmulti-quantconversational
README.md说明 / 使用方法

license: apache-2.0 base_model: culturerevolt/gemma-4-12b-heretic-abliterated tags:

  • gemma-4
  • abliterated
  • uncensored
  • heretic
  • gguf
  • imatrix
  • multi-quant pipeline_tag: text-generation

Gemma-4-12B-Heretic-Abliterated-iMatrix-GGUF(完整套件)

本仓库提供了 culturerevolt/gemma-4-12b-heretic-abliterated 的完整专业级 iMatrix(重要性矩阵)GGUF 量化版本套件。

基础模型是 Google 的 gemma-4-12b-it 架构的去审查(abliterated)完全解禁变体,通过保持范数的定向消融(norm-preserving directional ablation)剥离了分类拒绝词字符串。这套全面的 GGUF 套件经过校准,可在跨多种硬件配置下最大程度地保留语言熵、用于创意小说的叙事深度以及用于智能体工具调用的严格语法解析能力。


📊 快速参考:你应该下载哪个量化版本?

所有模型(标准 Q8_0 基准版本除外)均使用自定义计算的重要性矩阵,以防止标准静态量化经常出现的推理性能损失。请使用下表匹配适合你可用硬件环境的模型文件:

文件名称量化类型显存 / VRAM 目标要求最佳使用场景
gemma-4-12b-heretic-Q8_0.ggufQ8_024GB VRAM(RTX 3090 / 4090 / Mac Studio)主参考基准。 以近乎无损的 INT8 分辨率运行。最适合需要最高精度的顶级高端配置。
gemma-4-12b-heretic-Q6_K.ggufQ6_K20GB–24GB VRAM(RTX 3090 / 双 GPU)近乎无损的黄金平衡点。 提供极高的质量保留率,同时相比原始权重节省大量空间。
gemma-4-12b-heretic-Q5_K_M.ggufQ5_K_M16GB+ VRAM(RTX 4080 / 3090 / 4090)极客发烧友级。 在遇到严重收益递减之前的最高保真度压缩级别。与源权重保持近乎完美的表现。
gemma-4-12b-heretic-Q4_K_M.ggufQ4_K_M16GB VRAM(RTX 4080 / 4070 Ti Super)经典通用标准。 具备均衡的权重分布。兼具出色的通用推理能力、聊天响应速度与运行稳定性。
gemma-4-12b-heretic-IQ4_XS.ggufIQ4_XS12GB–16GB VRAM(RTX 4070 / 4080)优化器首选。 专为最大化 token 吞吐量并保护内存余量而定制。可搭配超大上下文窗口(最高 131k+)和 MCP 流水线运行,而不会导致系统 RAM 发生剧烈溢出。
gemma-4-12b-heretic-IQ3_XS.ggufIQ3_XS8GB–12GB VRAM / 核显 / 移动端轻量级冠军。 显著缩减内存占用,以便在低配硬件、笔记本电脑或移动端后端运行。iMatrix 机制能够在普通 3-bit 模型崩溃的情况下依然保持逻辑连贯。

🧠 技术原理:iMatrix 的核心优势

当将模型压缩至 3、4 或 5 比特时,基础且未经校准的静态量化就像对图像进行全局降色一样,会破坏关键的结构细节。大语言模型包含决定逻辑模式、标点结构和指令遵循能力的敏感异常权重。无差别地压缩这些权重会导致专业化崩溃,从而导致模型输出陷入重复 token 循环、排版乱码或严重幻觉。

为了保护本仓库的模型免受降级影响,这些文件均使用**自定义混合重要性矩阵(Custom Hybrid Importance Matrix, imatrix.dat)**策略进行编译。

1. 校准配置(Calibration Profile)

校准矩阵是在专为本地 LLM 生态平衡的高熵多领域文本数据集上生成的:

  • 核心逻辑与推理能力: 使用社区标准的英文语言语料库(text_en_large)进行锚定,以锁定通用智能、演绎一致性和词汇丰富度。
  • 智能体标点与语法: 穿插了结构化工具调用字符串(tools_large),以保护自动化文件解析流水线(如 VaultForge)所需的括号、冒号、嵌套变量及 JSON 结构。
  • 叙事保真度: 注入了创意散文样本,显式训练重要性矩阵以优先保障复杂人物内心世界描摹与生动的世界观构建节奏。

2. 执行参数(Execution Parameters)

为避免计算误差或 PCIe 数据传输失真,矩阵在紧凑且隔离的内存配置下进行了评估:

  • 总轮次: 200 个高熵块(代表约 100,000 个多样化数据 token)
  • 分块边界: 512 tokens
  • 同步尺寸: -b 512 -ub 512(强制物理批次对齐以确保数学缩放的精确性)

生成的映射图在量化过程中充当明确的指导手册。它促使 llama-quantize 工具强力保护敏感的推理神经元,同时对容易压缩的背景语言权重进行更激进的压缩。


⚙️ 推荐推理设置

Gemma-4 系列架构能力强大但对环境配置要求严谨。为避免在 LM Studio、AnythingLLM 或 llama-server 等后端中出现文本卡顿、格式丢失或界面崩溃,建议采用以下配置:

1. 多模态视觉运行

Gemma-4 采用了无编码器的统一架构,可将原始图像分块直接投影到嵌入层中。若要在基于 llama.cpp 的前端中处理视觉任务,必须在加载所选文本量化版本的同时,加载配套的多模态投影器(multimodal projector)文件。

经过验证的配套文件 gemma-4-12b-it-mmproj-f16.gguf 已托管在仓库根目录下。请确保将此文件配置在后端的 Vision Adapter(视觉适配器)设置项中,以便无缝启用图像输入功能。


📜 致谢

  • 感谢 Google DeepMind 开创了统一的 Gemma-4 架构。
  • 感谢 Philipp Emanuel Weidmann 开发了底层的 Heretic 去审查(abliteration)框架。
  • 非常感谢开源本地 AI 社区不断突破本地消费级硬件的能力边界。

⚠️ 免责声明与限制说明

本模型完全未对齐(unaligned)。它在输出文本时不会进行审查、过滤、价值评判或添加警告提示。下载本模型即表示你对其输入的 Prompt 及生成的全部文本内容承担全部责任。请在本地沙盒开发环境中负责任地使用。


🎛️ 精简 Jinja 聊天模板

如果你在处理长多轮对话配置时遇到界面解析问题,或希望在快速来回的问答聊天中最大化 token 效率,请使用此简洁高效的模板:

{%- for message in messages %}
<|turn|>{{ message['role'] }}
{{ message['content'] }}<|turn|>
{%- endfor %}
{%- if add_generation_prompt %}
<|turn|>assistant<|channel>thought <channel|>
{%- endif %}
源站原文

license: apache-2.0 base_model: culturerevolt/gemma-4-12b-heretic-abliterated tags:

  • gemma-4
  • abliterated
  • uncensored
  • heretic
  • gguf
  • imatrix
  • multi-quant pipeline_tag: text-generation

Gemma-4-12B-Heretic-Abliterated-iMatrix-GGUF (Complete Suite)

This repository hosts a complete, professional-grade suite of iMatrix (Importance Matrix) GGUF quantizations of culturerevolt/gemma-4-12b-heretic-abliterated.

The base model is an abliterated, fully decensored variant of Google's gemma-4-12b-it architecture, stripped of categorical refusal strings via norm-preserving directional ablation. This comprehensive GGUF suite is calibrated to preserve maximum linguistic entropy, narrative depth for creative fiction, and strict syntax parsing for agentic tools across multiple hardware profiles.


📊 Quick-Reference: Which Quant Should You Download?

All models (except the standard Q8_0 baseline) utilize a custom calculated importance matrix to prevent the loss of reasoning performance that standard static quants suffer from. Use this table to match the model files to your available hardware footprint:

File NameQuant TypeSizing / VRAM TargetBest Use Case
gemma-4-12b-heretic-Q8_0.ggufQ8_024GB VRAM (RTX 3090 / 4090 / Mac Studio)The Master Reference. Runs at a near-lossless INT8 resolution. Best suited for high-end setups where maximum possible precision is required.
gemma-4-12b-heretic-Q6_K.ggufQ6_K20GB–24GB VRAM (RTX 3090 / Dual GPUs)The Near-Lossless Sweet Spot. Offers an incredibly high quality retention while saving significant space over the raw weights.
gemma-4-12b-heretic-Q5_K_M.ggufQ5_K_M16GB+ VRAM (RTX 4080 / 3090 / 4090)The Enthusiast Tier. The highest fidelity compression level before hitting severe diminishing returns. Retains near-flawless parity with the source weights.
gemma-4-12b-heretic-Q4_K_M.ggufQ4_K_M16GB VRAM (RTX 4080 / 4070 Ti Super)The Classic Standard. Features a balanced distribution of bit weights. Outstanding general purpose reasoning, chat response times, and stability.
gemma-4-12b-heretic-IQ4_XS.ggufIQ4_XS12GB–16GB VRAM (RTX 4070 / 4080)The Optimizer's Choice. Custom tailored to maximize token throughput while protecting memory headroom. Fits alongside large context windows (up to 131k+) and MCP pipelines without aggressive system RAM spilling.
gemma-4-12b-heretic-IQ3_XS.ggufIQ3_XS8GB–12GB VRAM / Integrated Graphics / MobileThe Lightweight Champion. Drastically reduces the memory footprint to run on lower-spec hardware, laptops, or mobile backends. The iMatrix lifeline keeps it coherent where flat 3-bit models collapse.

🧠 Technical Methodology: The iMatrix Advantage

When compressing a model down to 3, 4, or 5 bits, a basic, uncalibrated static quantization acts like a global color reduction on an image because it destroys critical structural details. Large Language Models contain sensitive outlier weights that dictate logic patterns, punctuation structure, and instruction adherence. Indiscriminately compressing these weights leads to specialization collapse, which causes a model to loop tokens, output formatting gibberish, or hallucinate heavily.

To protect this repo from degradation, these files were compiled using a Custom Hybrid Importance Matrix (imatrix.dat) strategy.

1. Calibration Profile

The calibration matrix was generated over a high-entropy, multi-domain text dataset specifically balanced for the local LLM stack:

  • Core Logic & Reasoning: Grounded using community standard English linguistic corpuses (text_en_large) to lock down general intelligence, deductive consistency, and vocabulary breadth.
  • Agentic Punctuation: Interwoven with structured tool-calling strings (tools_large) to safeguard brackets, colons, nested variables, and JSON structures necessary for automated file parsing pipelines like VaultForge.
  • Narrative Fidelity: Infused with creative prose samples to explicitly train the importance matrix to prioritize complex character interiority and vivid world-building pacing.

2. Execution Parameters

To avoid calculation errors or PCIe data-transfer distortions, the matrix was evaluated over a tight, isolated memory profile:

  • Total Cycles: 200 high-entropy chunks (representing roughly 100,000 tokens of diverse data)
  • Chunk Boundary: 512 tokens
  • Synchronization Sizing: -b 512 -ub 512 (Forcing physical batch alignment to protect mathematical scaling)

The resulting map acts as an explicit instruction booklet during quantization. It forces the llama-quantize tool to fiercely protect sensitive reasoning neurons while aggressively compressing the easy background language weights.


⚙️ Recommended Inference Settings

The Gemma-4 family is a highly capable but precise architecture. To avoid text stuttering, formatting drops, or interface crashes in backends like LM Studio, AnythingLLM, or llama-server, implement the following configurations:

1. Multi-Modal Vision Execution

Gemma-4 features a unified, encoder-free architecture, projecting raw image patches straight into the embedding layers. To handle vision tasks inside llama.cpp based frontends, you must load the companion multimodal projector file alongside your chosen text quant.

The verified companion file gemma-4-12b-it-mmproj-f16.gguf is hosted right here in the repository root. Ensure you map this file inside your backend Vision Adapter settings slot to seamlessly initialize image ingestion.


📜 Acknowledgements

  • Google DeepMind for pioneering the unified Gemma-4 architecture.
  • Philipp Emanuel Weidmann for developing the underlying Heretic abliteration framework.
  • Massive thanks to the open-source local AI community for continuously pushing the boundaries of what is possible on local consumer hardware.

⚠️ Disclaimer & Boundary Limits

This model is completely unaligned. It will output text without filtering, judgment, or warning labels. By downloading this model, you accept full responsibility for the prompts fed to it and the text generated by it. Use responsibly within local sandbox development setups.


🎛️ Streamlined Jinja Chat Template

If you encounter interface parsing issues with heavy multi-turn configurations or want to maximize token efficiency during rapid back-and-forth chat sessions, use this clean, hyper-efficient template:

{%- for message in messages %}
<|turn|>{{ message['role'] }}
{{ message['content'] }}<|turn|>
{%- endfor %}
{%- if add_generation_prompt %}
<|turn|>assistant<|channel>thought <channel|>
{%- endif %}
HUGGING FACE

上游数据

HF 下载量23.7万
HF 点赞量25

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

SITE STATS

本站统计

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

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

来源与版本

作者
culturerevolt
最近更新
未知
最新创建
2026/06/05
HF 趋势
93
数据快照
2026/09/23
版本
未知
许可证
apache-2.0