← back to catalog · registered 2026-08-22 13:56

brine7302/gemma-4-E2B-abliterated-litert-lm

brine7302 Gemma multimodal
Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/brine7302%2Fgemma-4-E2B-abliterated-litert-lm"
Response includes
  • classification m1
  • files 5
  • author_summary 1 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M1
Primary method

Direct removal

No other method signals detected in this model.
Confidence
MEDIUM
Why this label 3 signals
Method inferred from partial signals - repository name, related files, or tag patterns. Producer identity not confirmed; label may sharpen or shift as we gather more evidence.
  • 'abliterated' in name/tags
  • is_gguf=0 (base model)
  • no specific method indicators - defaulting to M1 (most common)
Refusal direction extracted via
Extraction technique

Difference-of-means

Confidence
MEDIUM
Why we say so
primary_method=M1; difference-of-means is the reference extraction for M1/M3 (Arditi 2024)
Downloads · 30-day
0
Likes
3
Model age
4mo ago
created 2026-05-21
Downloads over time
Now0→from0↑0%
00110 on May 200 on Oct 11MayJunJulAugSepOct
May 20 → Oct 11 · 60 snapshots · spans 144 days

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
gemma
Tags
litert litertlm gemma gemma4 abliterated uncensored multimodal text-generation image-text-to-text on-device license:gemma region:us

Related

Total size
0 B
Files
5
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2026-05-22 05:42

Files by quantization

Auxiliary files 5 files 5.98 GB
model.litertlm 5.98 GB 8e148ed6 download
icon.png 12.4 KB 3c60d781 download
README.md 3.79 KB 7f8ddaf4 download
.gitattributes 1.53 KB 6b5330fb download
allow_list.json 1.23 KB 80530f76 download

README current version from Hugging Face


base_model: google/gemma-4-e2b-it
tags:

  • litert
  • litertlm
  • gemma
  • gemma4
  • abliterated
  • uncensored
  • multimodal
  • text-generation
  • image-text-to-text
  • on-device
    license: gemma

Gemma 4 E2B — Abliterated LiteRT

An abliterated (uncensored) version of Google's Gemma 4 E2B Instruct, converted to LiteRT format (.litertlm) for on-device inference.

Capabilities

Inherits all capabilities of the base Gemma 4 E2B model:

  • Text generation — instruction-tuned chat
  • Vision — image understanding
  • Audio — audio input processing
  • Thinking — extended reasoning
  • Tool use — function/tool calling

Refusal behaviours have been removed via abliteration (see below). The model will respond to requests that the base model would decline.

Files

File Size Description
model.litertlm 4.9 GB Full LiteRT package (text + vision + embedder + tokenizer)

The package contains INT8 weight-quantized TFLite subgraphs (4x compression from original BF16 weights):

Component Quantized size
Text model (prefill/decode) 2.14 GB
Per-layer embedder 2.19 GB
Embedder 387 MB
Vision encoder 163 MB
Vision adapter 1.2 MB

Built with --cache-length 1024 and --prefill-lengths 256.

Usage

LiteRT CLI

pip install litert-cli-nightly[lm]
litert lm run model.litertlm

LiteRT-LM SDK (Android / iOS)

Drop model.litertlm into your app and load it with the LiteRT-LM LlmInference API:

// Android (Kotlin)
val options = LlmInference.LlmInferenceOptions.builder()
    .setModelPath("/path/to/model.litertlm")
    .setMaxTokens(1024)
    .build()
val inference = LlmInference.createFromOptions(context, options)
val result = inference.generateResponse("Hello!")

See the LiteRT-LM documentation for full SDK usage.

How This Was Made

1. Abliteration

The refusal direction was identified and removed from the model weights using the FailSpy abliterator methodology:

  1. Forward passes were run on 15 harmful and 15 harmless prompts through the base model
  2. The mean difference in hidden states at layer 17 (the probe layer, mid-model) was computed and normalised to produce the refusal direction
  3. That direction was projected out of the o_proj and down_proj weight matrices in layers 11–22 (the middle third of the model's 35 layers) using:
W_new = W - outer(r, r @ W)

where r is the unit refusal direction. This removes the model's ability to activate refusal behaviour without degrading general capability.

2. LiteRT Conversion

The abliterated HuggingFace checkpoint was converted using litert-cli-nightly:

litert convert ./gemma-4-e2b-abliterated \
  --output ./gemma-4-e2b-abliterated-litert \
  --quantize weight_only_wi8_afp32 \
  --cache-length 1024

This uses litert-torch-nightly under the hood, which applies the Gemma4-specific export pipeline (image_text_to_text task, vision encoder export, externalized embedder).

Limitations

  • Cache length: Built with --cache-length 1024. Context beyond ~1024 tokens may degrade or not be supported depending on the runtime.
  • Prefill length: Fixed at 256 tokens. Prompts longer than this will be chunked at runtime.
  • No RLHF safety: This model has no content filters. Use responsibly.
  • Quantization: INT8 weight-only quantization introduces minor quality loss vs the BF16 original.

Base Model

google/gemma-4-e2b-it — subject to the Gemma Terms of Use. Usage of this model is also subject to those terms.

README history 1 version

The author's README evolved over time. Click a version to see its content at that point.

  1. 2026-05-21Add model cardf19b4563.8 KB
    Loading...
Catalog is the map. Apps are the tools.

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

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration