Instructions to use andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use andyjack/Huihui-gemma-4-31B-it-abliterated-v2-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 andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf andyjack/Huihui-gemma-4-31B-it-abliterated-v2-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 andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf andyjack/Huihui-gemma-4-31B-it-abliterated-v2-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 andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf andyjack/Huihui-gemma-4-31B-it-abliterated-v2-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 andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF with Ollama:
ollama run hf.co/andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M
- Unsloth Studio
How to use andyjack/Huihui-gemma-4-31B-it-abliterated-v2-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 andyjack/Huihui-gemma-4-31B-it-abliterated-v2-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 andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF to start chatting
- Pi
How to use andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF with Docker Model Runner:
docker model run hf.co/andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M
- Lemonade
How to use andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Huihui-gemma-4-31B-it-abliterated-v2-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use andyjack/Huihui-gemma-4-31B-it-abliterated-v2-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 andyjack/Huihui-gemma-4-31B-it-abliterated-v2-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 andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use andyjack/Huihui-gemma-4-31B-it-abliterated-v2-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf andyjack/Huihui-gemma-4-31B-it-abliterated-v2-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 "andyjack/Huihui-gemma-4-31B-it-abliterated-v2-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"
Upload folder using huggingface_hub
Browse files- .gitattributes +4 -0
- Huihui-gemma-4-31B-Q4_K_M.gguf +3 -0
- Huihui-gemma-4-31B-Q6_K.gguf +3 -0
- Huihui-gemma-4-31B-Q8_0.gguf +3 -0
- README.md +66 -0
- mmproj-BF16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Huihui-gemma-4-31B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Huihui-gemma-4-31B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Huihui-gemma-4-31B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
mmproj-BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
Huihui-gemma-4-31B-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ee30c27131c77344208720906d49cfbcdec0a5c4e70870fc62e45fee5d201a6
|
| 3 |
+
size 18687057856
|
Huihui-gemma-4-31B-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42c1d39393bed9615decd5f5ac3585c084d686379c6ab5353c1845bb8774b55e
|
| 3 |
+
size 25201479616
|
Huihui-gemma-4-31B-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f19d13d005ee134aeb881bc9559e8f7653cd959ecba14bcf24ec0707ed747fed
|
| 3 |
+
size 32635670464
|
README.md
CHANGED
|
@@ -1,3 +1,69 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
+
license_link: https://ai.google.dev/gemma/docs/gemma_4_license
|
| 5 |
+
pipeline_tag: any-to-any
|
| 6 |
+
base_model:
|
| 7 |
+
- google/gemma-4-31B-it
|
| 8 |
+
tags:
|
| 9 |
+
- abliterated
|
| 10 |
+
- uncensored
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
# huihui-ai/Huihui-gemma-4-31B-it-abliterated-v2
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
These are uncensored quantized versions of [google/gemma-4-31B-it](https://huggingface.co/google/gemma-4-31B-it) created with abliteration by Huihui-ai (see [remove-refusals-with-transformers](https://github.com/Sumandora/remove-refusals-with-transformers) to know more about it).
|
| 17 |
+
This is a crude, proof-of-concept implementation to remove refusals from an LLM model without using TransformerLens.
|
| 18 |
+
|
| 19 |
+
**Note** This is the new version, the first 5 layers have not been abliterated, with fewer warnings and rejections. Lower perplexity than those of the original model:
|
| 20 |
+
I made GGUF's in Q8/Q6 for almost perfect full quality and Q4_K_M to fit on a single RTX 3090 or 4090.
|
| 21 |
+
|
| 22 |
+
You can use llama.cpp and related utilities directly,
|
| 23 |
+
```
|
| 24 |
+
export GGML_CUDA_ENABLE_UNIFIED_MEMORY=1
|
| 25 |
+
llama.cpp/build/bin/llama-server \
|
| 26 |
+
-m Huihui-gemma-4-31B-Q8_0.gguf \
|
| 27 |
+
--host 0.0.0.0 \
|
| 28 |
+
--port 11434 \
|
| 29 |
+
--api-key XXX \
|
| 30 |
+
--flash-attn on \
|
| 31 |
+
--cache-type-k q8_0 \
|
| 32 |
+
--cache-type-v q8_0 \
|
| 33 |
+
--n-gpu-layers 99 \
|
| 34 |
+
--split-mode layer \
|
| 35 |
+
--no-mmap \
|
| 36 |
+
--repeat-penalty 1.08 \
|
| 37 |
+
--repeat-last-n 256 \
|
| 38 |
+
-c 256000 \
|
| 39 |
+
-b 4096 \
|
| 40 |
+
-ub 1024 \
|
| 41 |
+
--parallel 1 \
|
| 42 |
+
--jinja
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
### Usage Warnings
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
- **Risk of Sensitive or Controversial Outputs**: This model’s safety filtering has been significantly reduced, potentially generating sensitive, controversial, or inappropriate content. Users should exercise caution and rigorously review generated outputs.
|
| 50 |
+
|
| 51 |
+
- **Not Suitable for All Audiences**: Due to limited content filtering, the model’s outputs may be inappropriate for public settings, underage users, or applications requiring high security.
|
| 52 |
+
|
| 53 |
+
- **Legal and Ethical Responsibilities**: Users must ensure their usage complies with local laws and ethical standards. Generated content may carry legal or ethical risks, and users are solely responsible for any consequences.
|
| 54 |
+
|
| 55 |
+
- **Research and Experimental Use**: It is recommended to use this model for research, testing, or controlled environments, avoiding direct use in production or public-facing commercial applications.
|
| 56 |
+
|
| 57 |
+
- **Monitoring and Review Recommendations**: Users are strongly advised to monitor model outputs in real-time and conduct manual reviews when necessary to prevent the dissemination of inappropriate content.
|
| 58 |
+
|
| 59 |
+
- **No Default Safety Guarantees**: Unlike standard models, this model has not undergone rigorous safety optimization. huihui.ai bears no responsibility for any consequences arising from its use.
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
### Donation
|
| 63 |
+
##### Your donation helps us continue our further development and improvement, a cup of coffee can do it.
|
| 64 |
+
- bitcoin:
|
| 65 |
+
```
|
| 66 |
+
bc1qejhwlrcc2pcz88uf7yacyeku3gtpcn2e3086ln
|
| 67 |
+
```
|
| 68 |
+
- Support our work on [Ko-fi](https://ko-fi.com/huihuiai)!
|
| 69 |
+
|
mmproj-BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:079145f14762b59e27bc8648d4304913dd3b257dcb8d17b6abbecb65164ad23b
|
| 3 |
+
size 1200726592
|