KidIkaros commited on
Commit
c00e8e7
·
verified ·
1 Parent(s): 111c1fa

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +29 -54
README.md CHANGED
@@ -6,55 +6,36 @@ tags:
6
  - llama.cpp
7
  - gguf
8
  - abliterated
9
- - refusal-free
10
  - pytorch
11
  ---
12
 
13
- # Abliterated MiniCPM5-2B (GGUF)
14
-
15
- > **A refusal-free variant of MiniCPM5-2B abliterated using OBLITERATUS with diff-in-means refusal direction extraction**
16
-
17
- This is an abliterated version of [MiniCPM5-2B](https://huggingface.co/openbmb/MiniCPM5-2B) (~2.8B dense parameters) with refusal directions removed across 20 strong layers (layers 13, 17, 20-41). The model has 100% refusal removal on harmful prompts while maintaining ~97% perplexity retention.
18
-
19
- ## Recommendation
20
-
21
- **Use Q8_0 for the best balance** of quality and size:
22
- - 60% knowledge score (highest of all variants)
23
- - ✅ 100% refusal-free across all test prompts
24
- - 100% coherence on reference text completion
25
- - ✅ 101 tokens/sec inference speed
26
- - 2.5 GB on disk
27
-
28
- ## Available Quantizations
29
-
30
- | Variant | Size (MB) | Knowledge | Refusal-Free | Coherence | Speed (t/s) |
31
- |:--------|:---------:|:---------:|:------------:|:---------:|:-----------:|
32
- | **Q8_0** ⭐ | 2,556 | 60% | 100% | 100% | 101.2 |
33
- | **Q5_K_M** | 1,724 | 40% | 100% | 100% | 136.1 |
34
- | **Q4_K_M** | 1,489 | 40% | 100% | 80% | 236.4 |
35
- | **Q3_K_M** | 1,232 | 0%* | 100% | 0%* | Unstable* |
36
- | **F16** | 4,806 | 40% | 100% | 100% | 61.5 |
37
-
38
- > *Q3_K_M degrades at 4-bit precision use Q4_K_M or higher for best results
39
-
40
- ## Abliteration Details
41
-
42
- - **Method:** Advanced diff-in-means (single direction)
43
- - **Layers modified:** 20 strong layers identified via knee/cosmic layer selection
44
- - **Regularization:** 0.5 (norm-preserving)
45
- - **Prompt pairs:** 842 harmful + 842 harmless contrastive pairs
46
- - **Verification:** 20-sample validation with perplexity and coherence metrics
47
-
48
- ### Original Model Metrics (before abliteration)
49
- - **Perplexity:** 5.27
50
- - **Coherence:** 0.667
51
- - **Source:** [openbmb/MiniCPM5-2B](https://huggingface.co/openbmb/MiniCPM5-2B)
52
-
53
- ### Abliterated Model Metrics
54
- - **Perplexity:** 5.13 (+0.97%)
55
- - **Coherence:** 0.80 (+20%)
56
- - **KL Divergence:** 0.063 (excellent retention)
57
- - **Refusal Rate:** 0%
58
 
59
  ## Usage
60
 
@@ -68,20 +49,14 @@ llama-server -m ggml-model-Q8_0.gguf -c 4096 -ngl 999 --port 8080
68
  llama-cli -m ggml-model-Q8_0.gguf -p "Your prompt here" -n 128
69
  ```
70
 
71
- ### Python (transformers)
72
- ```python
73
- # Convert back to HF format or use ggml-compatible backends
74
- # See https://github.com/ggml-org/llama.cpp for integration details
75
- ```
76
-
77
  ## Known Issues
78
 
79
  - MiniCPM5-2B uses a non-standard chat template (`enable_thinking=False` causes corruption in OBLITERATUS). This has been patched in the abliteration pipeline.
80
- - **Q3_K_M** (4-bit) produces degraded output quality on this model — recommend Q4_K_M or higher.
81
 
82
  ## Disclaimer
83
 
84
- This model has been abliterated to remove refusal/refusal-related directions. Use responsibly and in compliance with applicable laws and regulations. The maintainers are not responsible for misuse of this model.
85
 
86
  ## License
87
 
 
6
  - llama.cpp
7
  - gguf
8
  - abliterated
 
9
  - pytorch
10
  ---
11
 
12
+ # Abliterated MiniCPM5-2B (GGUF) — v0, superseded
13
+
14
+ > ** Correction (September 2026):** this card previously claimed "100%
15
+ > refusal-free" / "Refusal Rate: 0%" and per-quantization knowledge/refusal
16
+ > scores. **Those claims are not supported by measurement and have been
17
+ > removed.** On a pinned harness (lm-eval 0.4.13, 300-prompt refusal gate,
18
+ > temp 1.0 / top_p 0.95 / min_p 0.0), the underlying v0 checkpoint measured
19
+ > **40.7% refusal vs official's 36.7%** and was statistically
20
+ > indistinguishable from the official model on MMLU-Pro, MATH-500, and
21
+ > IFEval. The original ablation changed little measurable behavior.
22
+ >
23
+ > For a checkpoint with a real measured refusal reduction (~8%), see
24
+ > **[KidIkaros/abliterated-minicpm5-2b-v2](https://huggingface.co/KidIkaros/abliterated-minicpm5-2b-v2)**,
25
+ > which supersedes this artifact and ships verified GGUFs in the same repo.
26
+
27
+ GGUF conversions of the v0 OBLITERATUS-abliterated MiniCPM5-2B (~2.8B dense
28
+ parameters), kept for archival purposes.
29
+
30
+ ## Files
31
+
32
+ | File | Size |
33
+ |---|---:|
34
+ | `ggml-model-Q8_0.gguf` | ~2.5 GB |
35
+ | `ggml-model-Q5_K_M.gguf` | ~1.7 GB |
36
+ | `ggml-model-Q4_K_M.gguf` | ~1.5 GB |
37
+ | `ggml-model-Q3_K_M.gguf` | ~1.2 GB (degraded output quality not recommended) |
38
+ | `ggml-model-f16.gguf` | ~4.8 GB |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  ## Usage
41
 
 
49
  llama-cli -m ggml-model-Q8_0.gguf -p "Your prompt here" -n 128
50
  ```
51
 
 
 
 
 
 
 
52
  ## Known Issues
53
 
54
  - MiniCPM5-2B uses a non-standard chat template (`enable_thinking=False` causes corruption in OBLITERATUS). This has been patched in the abliteration pipeline.
55
+ - **Q3_K_M** produces degraded output quality on this model — recommend Q4_K_M or higher.
56
 
57
  ## Disclaimer
58
 
59
+ This model has been abliterated to reduce refusal-related directions. Use responsibly and in compliance with applicable laws and regulations. The maintainers are not responsible for misuse of this model.
60
 
61
  ## License
62