Instructions to use TanyaaDL/GLM-4.7-heretic-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use TanyaaDL/GLM-4.7-heretic-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="TanyaaDL/GLM-4.7-heretic-GGUF", filename="GLM-4.7-heretic-IQ3_M-00001-of-00004.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M
Use Docker
docker model run hf.co/TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use TanyaaDL/GLM-4.7-heretic-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TanyaaDL/GLM-4.7-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": "TanyaaDL/GLM-4.7-heretic-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M
- Ollama
How to use TanyaaDL/GLM-4.7-heretic-GGUF with Ollama:
ollama run hf.co/TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M
- Unsloth Studio
How to use TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-heretic-GGUF to start chatting
- Pi
How to use TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-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": "TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-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 "TanyaaDL/GLM-4.7-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 TanyaaDL/GLM-4.7-heretic-GGUF with Docker Model Runner:
docker model run hf.co/TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M
- Lemonade
How to use TanyaaDL/GLM-4.7-heretic-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TanyaaDL/GLM-4.7-heretic-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.GLM-4.7-heretic-GGUF-Q4_K_M
List all available models
lemonade list
GLM-4.7-heretic-GGUF (RadicalNotion)
Importance-matrix quantized GGUF versions of RadicalNotionAI/GLM-4.7-heretic.
This is a strongly abliterated / decensored version of Z.ai's GLM-4.7. It achieves 0/100 refusals while retaining strong coding, reasoning, and agentic capabilities.
Note: This version has a noticeably lower refusal rate than the previous
jarradh/GLM-4.7-hereticbased quants (which had ~4/100 refusals), at the cost of slightly higher KL divergence.
Abliteration Details (from source model)
- Method: Heretic v1.2.0+custom (per-layer abliteration)
- Refusals: 0/100 (vs ~99/100 on the original
zai-org/GLM-4.7) - KL Divergence: 0.0748
Quantizations
Quantized with llama.cpp using importance matrices (imatrix) for better quality at lower bitrates.
Currently available:
IQ3_M(imatrix)IQ4_XS(imatrix)Q8_0
Model Details
- Base Model:
zai-org/GLM-4.7(MIT) - Abliterated by: RadicalNotionAI
- Architecture:
glm4_moe(Mixture-of-Experts) - Parameters: ~353โ358B total / ~32B active
- Context Length: 200K+
- Thinking Support: Yes โ supports interleaved/preserved thinking via
<think>tags
Usage with llama.cpp
Important: You must use the --jinja flag. This enables the correct chat template that properly handles thinking blocks and tool calling.
Interactive Chat
./llama-cli \
-m GLM-4.7-heretic.IQ4_XS.gguf \
--jinja \
-c 32768 \
-ngl 99 \
--temp 0.7 \
--top-p 0.95
Server Mode (OpenAI-compatible API)
./llama-server \
-m GLM-4.7-heretic.IQ4_XS.gguf \
--jinja \
--port 8080 \
-ngl 99 \
-c 32768
Tips for Thinking Mode:
- The model thinks by default.
- To see the internal
<think>reasoning, you can add the--specialflag in some setups. - In compatible servers you can control thinking with
chat_template_kwargs(e.g.enable_thinking).
Links
- Source abliterated model: RadicalNotionAI/GLM-4.7-heretic
- Previous (milder) quants: TanyaaDL/GLM-4.7-heretic-GGUF-v1
Disclaimer
This is an uncensored model. Safety alignments have been removed via abliteration. It may generate content that some users find offensive or inappropriate. Use responsibly and at your own risk.
- Downloads last month
- 617
Model tree for TanyaaDL/GLM-4.7-heretic-GGUF
Base model
RadicalNotionAI/GLM-4.7-heretic