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

gemma-3-4b-null-space-abliterated-RP-writer-GGUF

HF 源站

jwest33/gemma-3-4b-null-space-abliterated-RP-writer-GGUF is an uncensored open-source model hosted on Hugging Face.

Unsloth DesktopGGUFLicense: gemma4Bgemma-3abliterateduncensoredllama-cppcreative-writingroleplayloradataset:lemonilia/LimaRPconversational
README.md说明 / 使用方法

license: gemma library_name: gguf base_model: jwest33/gemma-3-4b-it-null-space-abliterated tags:

  • gemma
  • gemma-3
  • abliterated
  • uncensored
  • gguf
  • llama-cpp
  • creative-writing
  • roleplay
  • lora
  • unsloth datasets:
  • lemonilia/LimaRP

Gemma 3 4B Null Space Abliterated RP Writer (GGUF)

A creative writing and roleplay fine-tune built on jwest33/gemma-3-4b-it-null-space-abliterated. Trained on a curated subset of LimaRP with certain explicit and low-quality content filtered out.

Note: This model will produce uncensored outputs. Use responsibly.

Model Details

This model combines two modifications to the original Gemma 3 4B Instruct:

  1. Abliteration — Refusal behavior removed via null-space orthogonal projection
  2. LoRA Fine-tuning — Creative writing and roleplay capabilities enhanced via SFT on curated conversational data

LoRA Training Configuration

ParameterValue
LoRA Rank (r)8
LoRA Alpha8
LoRA Dropout0.05
Target ModulesAll attention & MLP projections
Max Sequence Length4096
Effective Batch Size8
Learning Rate1e-4
LR SchedulerCosine
Warmup Steps10
Max Steps200
OptimizerAdamW 8-bit
Training MethodResponse-only SFT

Target Modules

LoRA adapters applied to all language model attention and feed-forward layers:

  • q_proj, k_proj, v_proj, o_proj (attention)
  • gate_proj, up_proj, down_proj (MLP)

Dataset

Source: lemonilia/LimaRP

LimaRP is a roleplay-focused dataset converted from raw YAML conversations to ShareGPT format. The following preprocessing was applied:

  • Conversations with certain explicit or low-quality content filtered out
  • Minimum conversation length enforced (3+ turns)
  • Character personas and scenarios prepended to first user message as context
  • Strict user/assistant turn alternation for Gemma-3 compatibility
  • Response-only training (loss computed only on assistant turns)

Usage

To optionally trigger roleplay turn mode, use the context tag format from the LimaRP dataset. Prepend your first user message with character personas and scenario information:

[Context: <Character A>'s Persona: <description>

<Character B>'s Persona: <description>

Scenario: <scenario description>

Take the role of <Character A>. Write <Character A>'s responses only.]

<Your message as Character B>

This format signals the model to respond in-character as the specified persona, continuing the roleplay scenario turn-by-turn.

Base Model: Abliteration Details

The base model (jwest33/gemma-3-4b-it-null-space-abliterated) has refusal behavior removed via orthogonal projection with null-space constraints.

GGUF quantizations of base model: jwest33/gemma-3-4b-it-null-space-abliterated-GGUF

Abliteration Techniques

  • Winsorization: Clips outlier activations at the 99th percentile for cleaner refusal direction estimation
  • Null-Space Projection: Constrains weight updates to the null space of preservation activations
    • Preservation Prompts: Generated via Gemma Scope 2 SAE circuit analysis
  • Adaptive Weighting: Gaussian-weighted per-layer ablation strength, focusing on middle-to-later layers
  • Norm Preservation: Maintains original Frobenius norms after projection
ParameterValue
Harmful Prompts5000
Harmless Prompts637
Winsorization99.5th percentile
Null-Space Constraintsrank ratio: 0.90
Directional Multiplier1.03
SAE Targeted Coverage1.00

Credits

Fine-tuning

  • Training Framework: Unsloth
  • Dataset: lemonilia/LimaRP

Base Model & Abliteration

  • Original Model: google/gemma-3-4b-it by Google
  • Abliteration Toolkit: github.com/jwest33/abliterator
  • SAE Analysis: GemmaScope by Google DeepMind

References

  • Norm-Preserving Biprojected Abliteration — Jim Lai (2025)
  • AlphaEdit: Null-Space Constrained Knowledge Editing — Fang et al. (ICLR 2025)
  • Refusal in Language Models Is Mediated by a Single Direction — Arditi et al. (2024)
  • Representation Engineering — Zou et al. (2023)

License

This model inherits the Gemma license from the base model. Please review and comply with Google's usage terms.

Disclaimer

This model is provided for research and educational purposes. The creators are not responsible for any misuse. Users are solely responsible for ensuring their use complies with applicable laws and ethical standards.

HUGGING FACE

上游数据

HF 下载量1059
HF 点赞量1

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

SITE STATS

本站统计

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

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

来源与版本

作者
jwest33
最近更新
2026/01/09
最新创建
2026/01/09
HF 趋势
未知
数据快照
2026/10/06
版本
未知
许可证
gemma