Instructions to use Calandracas/gemma-4-E2B-it-qat-heretic-LiteRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use Calandracas/gemma-4-E2B-it-qat-heretic-LiteRT with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
File size: 1,560 Bytes
b988f23 60d690e fb15235 72ccf16 60d690e 72ccf16 60d690e 1ce5094 72ccf16 60d690e 72ccf16 60d690e 72ccf16 60d690e 72ccf16 1ce5094 60d690e a2a0ae4 60d690e 72ccf16 60d690e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | ---
library_name: litertlm
license:
- apache-2.0
- agpl-3.0
tags:
- heretic
- uncensored
- decensored
- abliterated
- ara
- litertlm
- android
- on-device
- litert
pipeline_tag: any-to-any
base_model:
- coder3101/gemma-4-E2B-it-qat-q4_0-unquantized-heretic
---
# gemma-4-E2B-it-qat-heretic-LiteRT
## Model details
- **Format:** LiteRT-LM `.litertlm` (weights + tokenizer + graph in one file)
- **Runtime:** [LiteRT-LM](https://github.com/google-ai-edge/litert-lm) (XNNPACK CPU / OpenCL GPU)
- **Source checkpoint:** `coder3101/gemma-4-E2B-it-qat-q4_0-unquantized-heretic`
- **Base model(s):**
- `coder3101/gemma-4-E2B-it-qat-q4_0-unquantized-heretic`
- **Quantization:** `mixed48` (Google gemma4 mixed 4/8-bit mobile scheme (INT4 weights + INT8 projections))
- **License:** `apache-2.0 AND agpl-3.0`
## How it was produced
Converted with `convert_gemma4.py`, which runs the same three stages described in the [Google ai-edge-quantizer docs](https://github.com/google-ai-edge/ai-edge-quantizer/tree/main):
1. **Export** — HF checkpoint (PyTorch/safetensors) → float TFLite flatbuffer (via `litert-torch` `export_hf`)
2. **Quantize** — float TFLite → quantized TFLite (via `ai-edge-quantizer` recipe `mixed48`)
3. **Package** — quantized TFLite → `.litertlm` bundle (via `litert-torch` `litert_lm_builder`)
No weights were modified, retrained, or merged — only reformatted and quantized.
## Usage
Load `model.litertlm` with any LiteRT-LM runtime or client. Place it under your
app's models folder and the runtime loads it automatically.
|