初始化项目,由ModelHub XC社区提供模型
Model: arzaan789/phi-3-mini-uncensored Source: Original Platform
This commit is contained in:
46
.gitattributes
vendored
Normal file
46
.gitattributes
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||
*.model filter=lfs diff=lfs merge=lfs -text
|
||||
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||
phi_3_mini_uncensored.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
phi_3_mini_uncensored.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
phi_3_mini_uncensored.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
phi_3_mini_uncensored.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
phi_3_mini_uncensored.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
phi_3_mini_uncensored.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
phi_3_mini_uncensored.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
phi_3_mini_uncensored.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
phi_3_mini_uncensored.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
phi_3_mini_uncensored.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
phi_3_mini_uncensored.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
52
README.md
Normal file
52
README.md
Normal file
@@ -0,0 +1,52 @@
|
||||
---
|
||||
license: apache-2.0
|
||||
base_model: microsoft/Phi-3-mini-4k-instruct
|
||||
tags:
|
||||
- uncensored
|
||||
- abliterated
|
||||
- gguf
|
||||
- phi
|
||||
- conversational
|
||||
pipeline_tag: text-generation
|
||||
---
|
||||
|
||||
# phi-3-mini-uncensored
|
||||
|
||||
Uncensored variant of [microsoft/Phi-3-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct).
|
||||
|
||||
## Method
|
||||
|
||||
1. **Abliteration** (strength=0.2) — refusal direction removed from all layers
|
||||
2. **LoRA fine-tune** on `Guilherme34/uncensor` (2 epochs, r=16, alpha=32)
|
||||
3. **Re-abliteration** (strength=0.35) — stronger pass to remove residual refusals
|
||||
|
||||
## Eval Results
|
||||
|
||||
| Split | Refused |
|
||||
|-------|---------|
|
||||
| Harmful (64 prompts) | 6/64 |
|
||||
| Harmless (64 prompts) | 0/64 |
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
llama-cli -m phi_3_mini_uncensored.Q4_K_M.gguf -p "Your prompt here"
|
||||
```
|
||||
|
||||
## Training Config
|
||||
|
||||
| Parameter | Value |
|
||||
|-----------|-------|
|
||||
| Base Model | microsoft/Phi-3-mini-4k-instruct |
|
||||
| Fine-tune Dataset | Guilherme34/uncensor |
|
||||
| Epochs | 2 |
|
||||
| LoRA r | 16 |
|
||||
| LoRA alpha | 32 |
|
||||
| Learning Rate | 0.0002 |
|
||||
| Abliteration Strength | 0.2 |
|
||||
| Re-abliteration Strength | 0.35 |
|
||||
|
||||
## Credits
|
||||
|
||||
- Abliteration technique: [andyrdt/refusal_direction](https://github.com/andyrdt/refusal_direction)
|
||||
- Weight editing: [Sumandora/remove-refusals-with-transformers](https://github.com/Sumandora/remove-refusals-with-transformers)
|
||||
3
phi_3_mini_uncensored.Q2_K.gguf
Normal file
3
phi_3_mini_uncensored.Q2_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:95b0281b90d3dcc60ba7e71a6a7afc04756d0bf3ba7b57ef43da1e525bc2af0d
|
||||
size 1508215872
|
||||
3
phi_3_mini_uncensored.Q3_K_L.gguf
Normal file
3
phi_3_mini_uncensored.Q3_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:685f9b0c9a901b92959582b7b9152187915ab3f7daace72c3b16a3fd7b63c898
|
||||
size 2200842816
|
||||
3
phi_3_mini_uncensored.Q3_K_M.gguf
Normal file
3
phi_3_mini_uncensored.Q3_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ab63a36f94ca28cc6d090d774f950f666ee6e2d3262614baf02bb1b23f4ffded
|
||||
size 1962553920
|
||||
3
phi_3_mini_uncensored.Q3_K_S.gguf
Normal file
3
phi_3_mini_uncensored.Q3_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8f5b79a78ba65de97dae317c37f2487f95b8cd3da8f37e58560243e4906c8dc5
|
||||
size 1681797696
|
||||
3
phi_3_mini_uncensored.Q4_K_M.gguf
Normal file
3
phi_3_mini_uncensored.Q4_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2d5a7ef9a6fdf6f7db202ac73fa7c9311f242899c74f27588e6ceb9589bf2f0f
|
||||
size 2396770368
|
||||
3
phi_3_mini_uncensored.Q4_K_S.gguf
Normal file
3
phi_3_mini_uncensored.Q4_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5f79ebf704774c353331a61fd2c888173001600eb0b2dc85e25c56eef187e2d6
|
||||
size 2202914880
|
||||
3
phi_3_mini_uncensored.Q5_K_M.gguf
Normal file
3
phi_3_mini_uncensored.Q5_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bce56c931e3b4c11eca3c89f0a3f39983ed5aed14036a3074417e39620661dc3
|
||||
size 2755113024
|
||||
3
phi_3_mini_uncensored.Q5_K_S.gguf
Normal file
3
phi_3_mini_uncensored.Q5_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:246eb34b36d222869841b6e33c0c2b6f59836ac0515c7cb61402334a8f5eba4d
|
||||
size 2641473600
|
||||
3
phi_3_mini_uncensored.Q6_K.gguf
Normal file
3
phi_3_mini_uncensored.Q6_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8a5e46d57af76c442f0c70e0144fdf85f1d36d8663533a1d75a454d7e3a2d954
|
||||
size 3135852096
|
||||
3
phi_3_mini_uncensored.Q8_0.gguf
Normal file
3
phi_3_mini_uncensored.Q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e11bedbfe7f1d4dc4a6b9922dad679fa9c9d67fd34123e8c29168667d3f337dc
|
||||
size 4061221440
|
||||
3
phi_3_mini_uncensored.f16.gguf
Normal file
3
phi_3_mini_uncensored.f16.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d67e69a7dec914b493f76241185cf4448086498726e6580ccf04b5df9095a13f
|
||||
size 7643296320
|
||||
Reference in New Issue
Block a user