license: llama3.1
base_model: mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated
base_model_relation: quantized
pipeline_tag: text-generation
library_name: mnn
language:
- en
- de
- fr
- it
- pt
- hi
- es
- th
tags: - tokforge
- on-device
- mnn
- llama
- mobile
- abliterated
Meta Llama 3.1 8B Instruct abliterated (MNN)
Maxime Labonne's abliterated Meta Llama 3.1 8B Instruct as a 4-bit MNN bundle for chatting on your phone with TokForge.
Published by TokForge for on-device inference.
| What it is | Chat model (abliterated) |
| Format | MNN bundle, 4-bit weights (block 128) |
| Runs on | Android phones (CPU, OpenCL or Vulkan GPU) |
| Phone class | No catalog class; needs more free RAM than its 5.27 GB of weights |
| Download | 5.28 GB (10 files) |
| Base model | mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated |
| License | Llama 3.1 Community License |
TokForge
- Website: https://tokforge.ai
- Discord: https://discord.gg/Acv3CBtfVm
- Google Play: https://play.google.com/store/apps/details?id=dev.tokforge
- iOS TestFlight: https://testflight.apple.com/join/jnufjzRr
Runs on-device in the TokForge app.
Use it in TokForge
- Install TokForge from Google Play, or join the iOS TestFlight.
- On Android, open Models > Browse, search for
Meta-Llama-3.1-8B-Instruct-abliterated-MNNand download it. - Load it and start a chat. The model runs on the phone; once it is downloaded, chatting needs no connection.
Collections: TokForge Llama, Mistral and Dolphin (MNN).
Files
| File | Size | What it is |
|---|---|---|
config.json |
210 B | MNN runtime settings |
embeddings_bf16.bin |
1.05 GB | Token embeddings (bf16) |
export_args.json |
1.17 KB | Export settings used for the conversion |
llm.mnn |
558 KB | Model graph |
llm.mnn.json |
1.12 MB | Model graph as JSON (reference copy) |
llm.mnn.weight |
4.22 GB | Model weights |
llm_config.json |
605 B | Model settings and chat template |
tokenizer.txt |
1.41 MB | Tokenizer |
LICENSE |
7.63 KB | Llama 3.1 Community License (Meta's text) |
NOTICE |
116 B | Llama 3.1 notice (Meta) |
About the model
This is Meta's official Llama 3.1 8B Instruct with its refusal behavior removed by abliteration, made by Maxime Labonne
(mlabonne) with FailSpy's abliteration code. Abliteration edits the weights directly, so it does not depend on a system
prompt. The underlying Llama 3.1 8B supports a 128K-token context, tool use and eight languages: English, German,
French, Italian, Portuguese, Hindi, Spanish and Thai.
| Architecture | Llama 3.1 (standard attention, 32 layers, GQA 32Q/8KV) |
| Parameters | 8B (4-bit quantized) |
| Quantization | W4A16 (4-bit weights, block size 128) |
| Vocab | 128,256 tokens |
Recommended settings
| Setting | Value |
|---|---|
| Backend | OpenCL (Qualcomm) / Vulkan (MediaTek) / CPU (fallback) |
| Precision | Low |
| Threads | 4 |
| Thinking | Off |
How it was made
Converted using MNN's llmexport pipeline:
python llmexport.py --path mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated --export mnn --quant_bit 4 --quant_block 128
Limitations
- Intended for TokForge / MNN on-device inference on Android
- This is a runtime bundle, not a standard Transformers training checkpoint
- Quantization (Q4) may slightly reduce quality compared to the full-precision original
- Abliterated models have had safety filters removed: use responsibly
License
This model is a derivative of Meta's Llama 3.1 8B Instruct. Llama 3.1 is licensed under the
Llama 3.1 Community License.
Meta's license text is in LICENSE and the required notice is in NOTICE. Built with Llama.
Credits
- Meta-Llama-3.1-8B-Instruct-abliterated by Maxime Labonne (mlabonne) (Hugging Face). Used under the Llama 3.1 Community License.
- Llama 3.1 8B by Meta (Hugging Face). Used under the Llama 3.1 Community License.
- Built with Llama. Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved. The license text and this notice are in the
LICENSEandNOTICEfiles in this repo. - Converted with llmexport from MNN by Alibaba (Apache-2.0).