Instructions to use gghfez/GLM-4.7-Derestricted-v3-Q3KL-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 gghfez/GLM-4.7-Derestricted-v3-Q3KL-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 gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF # Run inference directly in the terminal: llama cli -hf gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF # Run inference directly in the terminal: llama cli -hf gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
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 gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF # Run inference directly in the terminal: ./llama-cli -hf gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
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 gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
Use Docker
docker model run hf.co/gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
- LM Studio
- Jan
- Ollama
How to use gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF with Ollama:
ollama run hf.co/gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
- Unsloth Studio
How to use gghfez/GLM-4.7-Derestricted-v3-Q3KL-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 gghfez/GLM-4.7-Derestricted-v3-Q3KL-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 gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF to start chatting
- Pi
How to use gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
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": "gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
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 "gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF" \ --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 gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF with Docker Model Runner:
docker model run hf.co/gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
- Lemonade
How to use gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
Run and chat with the model
lemonade run user.GLM-4.7-Derestricted-v3-Q3KL-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use gghfez/GLM-4.7-Derestricted-v3-Q3KL-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 gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
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 gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
Run Hermes
hermes
- Atomic Chat
GLM-4.7-Derestricted-V3
This is a mildly derestricted version of GLM-4.7, created using norm-preserving biprojected abliteration (based on Jim Lai’s technique).
It is not uncensored, but it is significantly more steerable than stock GLM-4.7 and generates less "over-aligned" prose—making it suitable for creative control vector research.
Why I Made This
I originally tried to train Compassion_vs_Sadism control vectors on GLM-4.7, but the model’s early, rigid refusals kept interfering—effectively turning the axis into "Compliance vs. Refusal" instead of a moral trait. The refusal signal in GLM-4.7 peaks late and is overly dominant, drowning out subtler behavioral directions.
After applying targeted abliteration, the model behaves much more like GLM-4.6 or Kimi-K2-Instruct:
- Control vector responses now show meaningful variation in tone and intent
- The Compassion_vs_Sadism axis peaks in mid-layers, as expected
- Refusals no longer hijack the latent direction
Best of all: control vectors trained on this derestricted model also work on stock GLM-4.7, suggesting the intervention removed noise without breaking core alignment.
Compassion_vs_Sadism control vector activation by layer (stock GLM-4.7)
Notice the abnormal early-layer spike (Layer 32) -> this is refusal interference.
Compassion_vs_Sadism control vector activation by layer (Derestricted GLM-4.7)
Peak activation now occurs in mid-layers (~Layer 40–50), as expected for a behavioral trait.
The peaks closer to the middle look a lot more like GLM-4.6 and Kimi-K2-Instruct.
Use Case
This model is intended only for research—specifically:
- Training and probing behavioral control vectors (e.g., Dark Tetrad traits)
- Studying the interaction between refusal circuits and steering directions
- Comparing alignment architectures across models (GLM-4.6 vs 4.7 vs Kimi-K2)
Limitations & Warnings
- ❌ Not a general-purpose chat model—it may underperform on tool use, factual QA, or safety-critical tasks.
- ❌ Not fully uncensored—it still refuses clearly harmful requests; it just doesn’t over-refuse creative or ambiguous ones.
- ⚠️ Norm preservation reduces—but doesn’t eliminate—capability degradation. Stick to text generation tasks.
- 🔬 Do not deploy in production. This is a research artifact.
I’m also preparing a Kimi-K2-Thinking-Derestricted version using the same philosophy, since it suffered from a similar (though later-stage) refusal interference issue when trying to train control-vectors for it.
- Downloads last month
- 9
We're not able to determine the quantization variants.
Model tree for gghfez/GLM-4.7-Derestricted-v3-Q3KL-GGUF
Base model
zai-org/GLM-4.7
