Text Generation
GGUF
llama.cpp
heretic
liquid-ai
uncensored
abliterated
conversational
q4_k_m
q5_k_m
q8_0
Instructions to use FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
Use Docker
docker model run hf.co/FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
- Ollama
How to use FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF with Ollama:
ollama run hf.co/FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
- Unsloth Studio
How to use FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF to start chatting
- Pi
How to use FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
Run Hermes
hermes
- OpenClaw new
How to use FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF with Docker Model Runner:
docker model run hf.co/FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
- Lemonade
How to use FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.LFM2.5-8B-A1B-heretic-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,46 +2,51 @@
|
|
| 2 |
base_model: coder3101/LFM2.5-8B-A1B-heretic
|
| 3 |
base_model_relation: quantized
|
| 4 |
library_name: gguf
|
| 5 |
-
license:
|
|
|
|
|
|
|
| 6 |
language:
|
| 7 |
- en
|
| 8 |
- ar
|
| 9 |
- zh
|
| 10 |
- fr
|
| 11 |
- de
|
| 12 |
-
- it
|
| 13 |
- ja
|
| 14 |
- ko
|
| 15 |
-
- pt
|
| 16 |
- es
|
|
|
|
| 17 |
pipeline_tag: text-generation
|
| 18 |
tags:
|
| 19 |
- gguf
|
|
|
|
| 20 |
- text-generation
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
-
- agentic
|
| 24 |
-
- tool-use
|
| 25 |
-
- abliterated
|
| 26 |
- uncensored
|
| 27 |
-
-
|
| 28 |
-
- q4_k_m
|
| 29 |
- conversational
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
---
|
| 31 |
|
| 32 |
-
# LFM2.5-8B-A1B-heretic โ GGUF
|
| 33 |
|
| 34 |
This repository hosts GGUF weights for **LFM2.5-8B-A1B-heretic**, quantized from the source floating-point tensors provided by [coder3101/LFM2.5-8B-A1B-heretic](https://huggingface.co/coder3101/LFM2.5-8B-A1B-heretic).
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
**LFM2.5-8B-A1B** is a text-only model from Liquid AI's **Liquid Foundation Model 2.5** series, designed for on-device deployment. It uses a hybrid architecture with **24 layers โ 18 double-gated LIV (Liquid, Input-adaptive, Value-selective) convolution layers plus 6 GQA (Grouped Query Attention) layers** โ activating only approximately **1.5B parameters per forward pass** out of 8.3B total. This delivers fastest-in-class throughput at its size on both CPU and GPU, with day-one support for llama.cpp, MLX, vLLM, and SGLang. The model is a **reasoning model**: it produces a chain-of-thought before its final answer, and is tuned for **complex instruction following, tool calling, and chained agentic task execution**.
|
| 39 |
|
| 40 |
The **heretic** suffix denotes post-processing via the **[Heretic v1.2.0 Arbitrary-Rank Ablation (ARA)](https://github.com/p-e-w/heretic)** method with row-norm preservation performed by [coder3101](https://huggingface.co/coder3101), which removes refusal conditioning at multiple tensor ranks while maintaining the model's instruction-following and planning capabilities.
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
## Model & Architecture Specifications
|
| 45 |
|
| 46 |
| Property | Value |
|
| 47 |
|---|---|
|
|
@@ -52,16 +57,14 @@ The **heretic** suffix denotes post-processing via the **[Heretic v1.2.0 Arbitra
|
|
| 52 |
| **Primary Use** | Reasoning, instruction following, tool calling, agentic tasks |
|
| 53 |
| **Context Window** | 128,000 tokens |
|
| 54 |
| **Training Budget** | 38 trillion tokens |
|
| 55 |
-
| **Languages** | English, Arabic, Chinese, French, German,
|
| 56 |
| **Abliteration Tool** | Heretic v1.2.0 |
|
| 57 |
| **Abliteration Method** | Arbitrary-Rank Ablation (ARA) with row-norm preservation |
|
| 58 |
| **Prompt Format** | ChatML |
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
## Abliteration Parameters
|
| 63 |
|
| 64 |
-
|
|
| 65 |
|---|---|
|
| 66 |
| **start_layer_index** | 7 |
|
| 67 |
| **end_layer_index** | 21 |
|
|
@@ -70,7 +73,7 @@ The **heretic** suffix denotes post-processing via the **[Heretic v1.2.0 Arbitra
|
|
| 70 |
| **overcorrect_relative_weight** | 0.9494 |
|
| 71 |
| **neighbor_count** | 8 |
|
| 72 |
|
| 73 |
-
##
|
| 74 |
|
| 75 |
> [!NOTE]
|
| 76 |
> The metrics below are self-reported by the original model author ([coder3101](https://huggingface.co/coder3101)) and have not been independently reproduced.
|
|
@@ -80,32 +83,30 @@ The **heretic** suffix denotes post-processing via the **[Heretic v1.2.0 Arbitra
|
|
| 80 |
| **KL divergence** | 0.0239 | 0 *(by definition)* |
|
| 81 |
| **Refusals** | 12/100 | 91/100 |
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
## Quantization Details
|
| 86 |
|
| 87 |
| Property | Value |
|
| 88 |
|---|---|
|
| 89 |
-
| **Quantization Type** | Q4_K_M |
|
| 90 |
|
| 91 |
-
##
|
| 92 |
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
```
|
| 97 |
-
|
| 98 |
-
---
|
| 99 |
|
| 100 |
-
##
|
| 101 |
|
| 102 |
-
|
| 103 |
-
|---|---|---|---|---|
|
| 104 |
-
| `LFM2.5-8B-A1B-heretic-Q4_K_M.gguf` | Q4_K_M | 5.16 GB | b9803 | Main model weights |
|
| 105 |
|
| 106 |
-
-
|
|
|
|
|
|
|
| 107 |
|
| 108 |
-
##
|
| 109 |
|
| 110 |
> [!NOTE]
|
| 111 |
> Liquid AI recommends the following generation parameters for best results: `temperature: 0.2`, `top_k: 80`, `repetition_penalty: 1.05`.
|
|
@@ -113,6 +114,9 @@ The **heretic** suffix denotes post-processing via the **[Heretic v1.2.0 Arbitra
|
|
| 113 |
> [!NOTE]
|
| 114 |
> This model emits reasoning content before its final answer. If you require a clean final answer only, parse the output accordingly rather than expecting a single direct response.
|
| 115 |
|
|
|
|
|
|
|
|
|
|
| 116 |
### llama.cpp CLI
|
| 117 |
|
| 118 |
```bash
|
|
@@ -138,9 +142,7 @@ The **heretic** suffix denotes post-processing via the **[Heretic v1.2.0 Arbitra
|
|
| 138 |
--flash-attn
|
| 139 |
```
|
| 140 |
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
## Prompt Format (ChatML)
|
| 144 |
|
| 145 |
```text
|
| 146 |
<|im_start|>system
|
|
@@ -150,9 +152,7 @@ Your task or query here.<|im_end|>
|
|
| 150 |
<|im_start|>assistant
|
| 151 |
```
|
| 152 |
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
## Notes & Limitations
|
| 156 |
|
| 157 |
- This model is abliterated and will generate content that standard aligned models refuse. Use responsibly and in compliance with applicable laws.
|
| 158 |
- This is a **text-only** model โ it has no vision encoder and cannot process images.
|
|
|
|
| 2 |
base_model: coder3101/LFM2.5-8B-A1B-heretic
|
| 3 |
base_model_relation: quantized
|
| 4 |
library_name: gguf
|
| 5 |
+
license: other
|
| 6 |
+
license_name: lfm-1.0
|
| 7 |
+
license_link: https://huggingface.co/LiquidAI/LFM2.5-350M/blob/main/LICENSE
|
| 8 |
language:
|
| 9 |
- en
|
| 10 |
- ar
|
| 11 |
- zh
|
| 12 |
- fr
|
| 13 |
- de
|
|
|
|
| 14 |
- ja
|
| 15 |
- ko
|
|
|
|
| 16 |
- es
|
| 17 |
+
- pt
|
| 18 |
pipeline_tag: text-generation
|
| 19 |
tags:
|
| 20 |
- gguf
|
| 21 |
+
- llama.cpp
|
| 22 |
- text-generation
|
| 23 |
+
- heretic
|
| 24 |
+
- liquid-ai
|
|
|
|
|
|
|
|
|
|
| 25 |
- uncensored
|
| 26 |
+
- abliterated
|
|
|
|
| 27 |
- conversational
|
| 28 |
+
- q4_k_m
|
| 29 |
+
- q5_k_m
|
| 30 |
+
- q8_0
|
| 31 |
+
quantized_by: FadedRedStar
|
| 32 |
---
|
| 33 |
|
| 34 |
+
# ๐ค LFM2.5-8B-A1B-heretic โ GGUF
|
| 35 |
|
| 36 |
This repository hosts GGUF weights for **LFM2.5-8B-A1B-heretic**, quantized from the source floating-point tensors provided by [coder3101/LFM2.5-8B-A1B-heretic](https://huggingface.co/coder3101/LFM2.5-8B-A1B-heretic).
|
| 37 |
|
| 38 |
+
**๐ Sister Repository:** Check out the [Imatrix Sister Repository](https://huggingface.co/FadedRedStar/LFM2.5-8B-A1B-heretic-imatrix-GGUF) for enhanced precision at lower bit fractions.
|
| 39 |
+
|
| 40 |
+
> [!NOTE]
|
| 41 |
+
> If you plan on using 4-bit or 5-bit variants, consider the **imatrix** sister repository instead โ importance matrix calibration improves logic retention at those bit depths. This repository is best suited if you want the near-lossless `Q8_0` build.
|
| 42 |
+
|
| 43 |
+
## โน๏ธ Model Profile & Core Features
|
| 44 |
|
| 45 |
**LFM2.5-8B-A1B** is a text-only model from Liquid AI's **Liquid Foundation Model 2.5** series, designed for on-device deployment. It uses a hybrid architecture with **24 layers โ 18 double-gated LIV (Liquid, Input-adaptive, Value-selective) convolution layers plus 6 GQA (Grouped Query Attention) layers** โ activating only approximately **1.5B parameters per forward pass** out of 8.3B total. This delivers fastest-in-class throughput at its size on both CPU and GPU, with day-one support for llama.cpp, MLX, vLLM, and SGLang. The model is a **reasoning model**: it produces a chain-of-thought before its final answer, and is tuned for **complex instruction following, tool calling, and chained agentic task execution**.
|
| 46 |
|
| 47 |
The **heretic** suffix denotes post-processing via the **[Heretic v1.2.0 Arbitrary-Rank Ablation (ARA)](https://github.com/p-e-w/heretic)** method with row-norm preservation performed by [coder3101](https://huggingface.co/coder3101), which removes refusal conditioning at multiple tensor ranks while maintaining the model's instruction-following and planning capabilities.
|
| 48 |
|
| 49 |
+
## ๐ Technical Specifications
|
|
|
|
|
|
|
| 50 |
|
| 51 |
| Property | Value |
|
| 52 |
|---|---|
|
|
|
|
| 57 |
| **Primary Use** | Reasoning, instruction following, tool calling, agentic tasks |
|
| 58 |
| **Context Window** | 128,000 tokens |
|
| 59 |
| **Training Budget** | 38 trillion tokens |
|
| 60 |
+
| **Languages** | English, Arabic, Chinese, French, German, Japanese, Korean, Spanish, Portuguese |
|
| 61 |
| **Abliteration Tool** | Heretic v1.2.0 |
|
| 62 |
| **Abliteration Method** | Arbitrary-Rank Ablation (ARA) with row-norm preservation |
|
| 63 |
| **Prompt Format** | ChatML |
|
| 64 |
|
| 65 |
+
## ๐ ๏ธ Heretic Overrides (ARA)
|
|
|
|
|
|
|
| 66 |
|
| 67 |
+
| Property | Value |
|
| 68 |
|---|---|
|
| 69 |
| **start_layer_index** | 7 |
|
| 70 |
| **end_layer_index** | 21 |
|
|
|
|
| 73 |
| **overcorrect_relative_weight** | 0.9494 |
|
| 74 |
| **neighbor_count** | 8 |
|
| 75 |
|
| 76 |
+
## ๐ Refusal Bypass Metrics
|
| 77 |
|
| 78 |
> [!NOTE]
|
| 79 |
> The metrics below are self-reported by the original model author ([coder3101](https://huggingface.co/coder3101)) and have not been independently reproduced.
|
|
|
|
| 83 |
| **KL divergence** | 0.0239 | 0 *(by definition)* |
|
| 84 |
| **Refusals** | 12/100 | 91/100 |
|
| 85 |
|
| 86 |
+
## ๐งฎ Numerical & Tensor Formats
|
|
|
|
|
|
|
| 87 |
|
| 88 |
| Property | Value |
|
| 89 |
|---|---|
|
| 90 |
+
| **Quantization Type** | Q4_K_M, Q5_K_M, Q8_0 |
|
| 91 |
|
| 92 |
+
## ๐ฆ Available Model Files
|
| 93 |
|
| 94 |
+
**Main model weights**
|
| 95 |
+
| Filename | Quantization | llama.cpp Build | Size | Download |
|
| 96 |
+
|---|---|---|---|---|
|
| 97 |
+
| `LFM2.5-8B-A1B-heretic-Q4_K_M.gguf` | `Q4_K_M` | `b9803` | 4.80 GB | [๐ฅ Download](https://huggingface.co/FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF/resolve/main/LFM2.5-8B-A1B-heretic-Q4_K_M.gguf) |
|
| 98 |
+
| `LFM2.5-8B-A1B-heretic-Q5_K_M.gguf` | `Q5_K_M` | `b9870` | 5.62 GB | [๐ฅ Download](https://huggingface.co/FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF/resolve/main/LFM2.5-8B-A1B-heretic-Q5_K_M.gguf) |
|
| 99 |
+
| `LFM2.5-8B-A1B-heretic-Q8_0.gguf` | `Q8_0` | `b9870` | 8.39 GB | [๐ฅ Download](https://huggingface.co/FadedRedStar/LFM2.5-8B-A1B-heretic-GGUF/resolve/main/LFM2.5-8B-A1B-heretic-Q8_0.gguf) |
|
| 100 |
|
| 101 |
+
## ๐๏ธ Component Pairing Guide
|
| 102 |
|
| 103 |
+
Download exactly **one** main weights file:
|
|
|
|
|
|
|
| 104 |
|
| 105 |
+
* **`Q4_K_M`**: Balanced 4-bit format suitable for most everyday use.
|
| 106 |
+
* **`Q5_K_M`**: Higher-fidelity mid-range format recommended as a general default.
|
| 107 |
+
* **`Q8_0`**: Near-lossless 8-bit format for when memory is not a constraint.
|
| 108 |
|
| 109 |
+
## โก Deployment & Execution Commands
|
| 110 |
|
| 111 |
> [!NOTE]
|
| 112 |
> Liquid AI recommends the following generation parameters for best results: `temperature: 0.2`, `top_k: 80`, `repetition_penalty: 1.05`.
|
|
|
|
| 114 |
> [!NOTE]
|
| 115 |
> This model emits reasoning content before its final answer. If you require a clean final answer only, parse the output accordingly rather than expecting a single direct response.
|
| 116 |
|
| 117 |
+
> [!TIP]
|
| 118 |
+
> Swap the `-m` filename below for either quantized file depending on your size/quality trade-off preference.
|
| 119 |
+
|
| 120 |
### llama.cpp CLI
|
| 121 |
|
| 122 |
```bash
|
|
|
|
| 142 |
--flash-attn
|
| 143 |
```
|
| 144 |
|
| 145 |
+
## ๐ฌ Chat Templates & Prompt Design (ChatML)
|
|
|
|
|
|
|
| 146 |
|
| 147 |
```text
|
| 148 |
<|im_start|>system
|
|
|
|
| 152 |
<|im_start|>assistant
|
| 153 |
```
|
| 154 |
|
| 155 |
+
## โ ๏ธ Safety & Operational Notes
|
|
|
|
|
|
|
| 156 |
|
| 157 |
- This model is abliterated and will generate content that standard aligned models refuse. Use responsibly and in compliance with applicable laws.
|
| 158 |
- This is a **text-only** model โ it has no vision encoder and cannot process images.
|