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

tiggychan/gemma-4-E4B-it-uncensored-mnn-int4

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/tiggychan%2Fgemma-4-E4B-it-uncensored-mnn-int4"
Response includes
  • classification m-uncensored
  • files 14
  • hub_downloads_all_time 238
  • author_summary 6 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M-U
Primary method

Uncensored (method unknown)

No other method signals detected in this model.
Confidence
LOW
Why this label 3 signals
Weak or ambiguous signals. Best guess based on catalog patterns; treat as tentative and check the evidence below.
  • 'uncensored' in name/tags but no 'abliterated' marker
  • method not identifiable from author declaration alone
  • may be DPO fine-tune, prompt engineering, or unknown technique
Refusal direction extraction

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.

What is a refusal direction? →
Downloads · lifetime
238
71 last 30d - stable
Likes
1
Model age
6mo ago
created 2026-04-11
Downloads over time
Now283→from89↑218%
7915422830289 on Apr 15283 on Oct 11283 on Oct 9AprMayJunJulAugSepOct
Apr 15 → Oct 11 · 65 snapshots · spans 179 days

Metadata

License
apache-2.0
Languages
en
Tags
mnn gemma-4 uncensored int4 hqq quantized mobile text-generation en license:apache-2.0 region:us

Related

Total size
1.64 GB
Files
14
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2026-04-13 05:33

Files by quantization

Auxiliary files 14 files 5.16 GB
ple_embeddings_int4.bin 1.64 GB f81c831b download
llm.mnn.weight 2.74 GB c035ea75 download
audio.mnn.weight 566 MB 9a74d294 download
visual.mnn.weight 216 MB 77b52589 download
tokenizer.mtok 9.60 MB e08a1293 download
llm.mnn.json 7.42 MB 093702e3 download
llm.mnn 3.40 MB 7fe59ade download
audio.mnn 1.36 MB 8e6ba3ab download
visual.mnn 1.01 MB ada822fc download
README.md 3.99 KB dba6650f download
.gitattributes 1.82 KB a226a398 download
llm_config.json 1.38 KB 3ebadb85 download
export_args.json 1.12 KB 46cf1f08 download
config.json 685 B 33ac8fbc download

README current version from Hugging Face


license: apache-2.0
language:

  • en
    pipeline_tag: text-generation
    tags:
  • mnn
  • gemma-4
  • uncensored
  • int4
  • hqq
  • quantized
  • mobile

gemma-4-E4B-it-uncensored-mnn-int4

MNN format 4-bit HQQ quantized conversion of TrevorJS/gemma-4-E4B-it-uncensored, compatible with the MNN inference engine.

Model Information

Property Value
Base Model google/gemma-4-E4B-it
Uncensored Fork TrevorJS/gemma-4-E4B-it-uncensored
Quantization 4-bit HQQ (Half-Quadratic Quantization)
Embedding Quantization 4-bit (PLE embeddings also quantized)
Total Size ~5.4 GB
LLM Weight 2.7 GB
PLE Embeddings 1.6 GB

File Structure

File Size Description
llm.mnn 3.5 MB LLM model structure (converted from ONNX)
llm.mnn.weight 2.7 GB LLM weights (4-bit HQQ quantized)
ple_embeddings_int4.bin 1.6 GB Per-Layer Embeddings (4-bit quantized)
visual.mnn / .weight 1.1 MB / 217 MB Vision tower (optional)
audio.mnn / .weight 1.4 MB / 566 MB Audio tower (optional)
tokenizer.mtok 9.7 MB MNN tokenizer
config.json - MNN runtime configuration
llm_config.json - LLM architecture configuration

Usage

Local Inference (CPU)

# Clone MNN source
git clone https://github.com/alibaba/MNN.git

# Build (CPU backend)
cd MNN
mkdir build && cd build
cmake .. -DMNN_LOW_MEMORY=true \
         -DMNN_CPU_WEIGHT_DEQUANT_GEMM=true \
         -DMNN_BUILD_LLM=true \
         -DMNN_SUPPORT_TRANSFORMER_FUSE=true
make -j$(nproc)

# Run inference
echo "Hello, who are you?" > prompt.txt
./llm_demo /path/to/config.json prompt.txt

MNN Chat (Android)

A custom Android APK with Gemma 4 support is available in the companion GitHub repository:

https://github.com/Tiggy-Chan/gemma4-mnn-android

Download the pre-built APK directly: 📱 app-standard-release-tiggy-gemma4.apk (35 MB)

Or follow the build instructions to compile your own APK.

Download the model folder to your device and import it via "Add Local Model".

Configuration Example

{
    "llm_model": "llm.mnn",
    "llm_weight": "llm.mnn.weight",
    "tokenizer_file": "tokenizer.mtok",
    "backend_type": "cpu",
    "thread_num": 4,
    "precision": "low",
    "memory": "low",
    "sampler_type": "mixed",
    "temperature": 1.0,
    "top_k": 64,
    "top_p": 0.95
}

Other Quantization Versions

Version Size Repo
INT4 HQQ (this) 5.4 GB —
INT8 8.7 GB gemma-4-E4B-it-uncensored-mnn-int8
BF16 (full precision) 15 GB gemma-4-E4B-it-uncensored-mnn-bf16

Conversion

Converted using MNN's llmexport.py:

cd MNN/transformers/llm/export
python3 llmexport.py \
    --path TrevorJS/gemma-4-E4B-it-uncensored \
    --export mnn \
    --quant_bit 4 \
    --embed_bit 4 \
    --hqq \
    --dst_path ./output

License

This model is distributed under the Apache License 2.0, inherited from the original Gemma 4 model by Google DeepMind. See the LICENSE file for the full license text.

Usage of Gemma models is also subject to the Gemma Terms of Use.

Acknowledgments

README history 3 versions

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

  1. 2026-04-13Update README with new GitHub repo and latest APK59d60154 KB
    Loading...
  2. 2026-04-11docs: add direct APK download link to README820c0244 KB
    Loading...
  3. 2026-04-11Upload folder using huggingface_hub843d5233.9 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