Instructions to use haellsigh/glm-4.7-flash-uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use haellsigh/glm-4.7-flash-uncensored with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="haellsigh/glm-4.7-flash-uncensored", filename="GLM-4.7-Flash-Uncen-Hrt-NEO-CODE-MAX-imat-D_AU-IQ2_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use haellsigh/glm-4.7-flash-uncensored with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf haellsigh/glm-4.7-flash-uncensored:Q4_K_M # Run inference directly in the terminal: llama-cli -hf haellsigh/glm-4.7-flash-uncensored:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf haellsigh/glm-4.7-flash-uncensored:Q4_K_M # Run inference directly in the terminal: llama-cli -hf haellsigh/glm-4.7-flash-uncensored: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 haellsigh/glm-4.7-flash-uncensored:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf haellsigh/glm-4.7-flash-uncensored: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 haellsigh/glm-4.7-flash-uncensored:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf haellsigh/glm-4.7-flash-uncensored:Q4_K_M
Use Docker
docker model run hf.co/haellsigh/glm-4.7-flash-uncensored:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use haellsigh/glm-4.7-flash-uncensored with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "haellsigh/glm-4.7-flash-uncensored" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "haellsigh/glm-4.7-flash-uncensored", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/haellsigh/glm-4.7-flash-uncensored:Q4_K_M
- Ollama
How to use haellsigh/glm-4.7-flash-uncensored with Ollama:
ollama run hf.co/haellsigh/glm-4.7-flash-uncensored:Q4_K_M
- Unsloth Studio new
How to use haellsigh/glm-4.7-flash-uncensored 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 haellsigh/glm-4.7-flash-uncensored 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 haellsigh/glm-4.7-flash-uncensored to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for haellsigh/glm-4.7-flash-uncensored to start chatting
- Pi new
How to use haellsigh/glm-4.7-flash-uncensored with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf haellsigh/glm-4.7-flash-uncensored: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": "haellsigh/glm-4.7-flash-uncensored:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use haellsigh/glm-4.7-flash-uncensored with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf haellsigh/glm-4.7-flash-uncensored: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 haellsigh/glm-4.7-flash-uncensored:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use haellsigh/glm-4.7-flash-uncensored with Docker Model Runner:
docker model run hf.co/haellsigh/glm-4.7-flash-uncensored:Q4_K_M
- Lemonade
How to use haellsigh/glm-4.7-flash-uncensored with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull haellsigh/glm-4.7-flash-uncensored:Q4_K_M
Run and chat with the model
lemonade run user.glm-4.7-flash-uncensored-Q4_K_M
List all available models
lemonade list
GLM-4.7-Flash-Uncensored-Heretic-NEO-CODE-Imatrix-MAX-GGUF
Specialized and Enhanced UNCENSORED/HERETIC GGUF quants for the new GLM-4.7-Flash, 30B-A3B MOE, mixture of experts model.
[ https://huggingface.co/zai-org/GLM-4.7-Flash ]
This model can be run on the GPU(s) and/or CPU due to 4 experts activated (appox 2B parameters active).
NOTE: Latest Llamacpp 7789 commit, with corrected quants.
Uncensored / Heretic'ed
De-censoring by Heretic (special thanks to "Olafangensan") seems to have reduced the size of thinking blocks in some cases and/or "focused" the model more.
Default Settings (Most Tasks)
temperature: 1.0
top-p: 0.95
max new tokens: 131072
REP PEN: 1.1 OR 1.0 (off) (if you get repeat issues)
You might also try GLM 4.6 settings (unsloth):
temperature = 0.8
top_p = 0.6 (recommended)
top_k = 2 (recommended)
max_generate_tokens = 16,384
That being said, I suggest min context of 8k-16K as final outputs (post thinking) can be long and detailed and in a number of cases has been observed "polishing" the final output one or more times IN the output section.
(Model can handle 200k context, non-roped.)
NON-UNCENSORED QUANTS:
https://huggingface.co/DavidAU/GLM-4.7-Flash-Uncensored-Heretic-NEO-CODE-Imatrix-MAX-GGUF
Quants General:
Quants and Imatrixes computed using latest LLAMACPP (commit: 7789, Jan 21 2026) which contains specific fixes for this model.
Quants prior to this commit (as well as Imatrix generation) performed poorly (re-quanization and re-imatrix generation are required).
Also note there are some issues with Flash Attn and low token generation speed (as Flash is offloaded to CPU in some cases). Disable Flash Attn until this issue is resolved / makes its way thru the "llamacpp / ai pipeline".
Specialized Quants
Specialized quants (IQ4_NL, Q5_1, Q4_1, Q8_0) are precision balanced to address a specific tensor issues in all layers that requires a specific quant type.
Other "normal" quants will also perform very well.
Quant Enhancements:
Imatrix is NEO and Code datasets by DavidAU - Dual Imatrix (2 imatrixes separately generated) to improve model performance.
All quants (specialized and "normal") are also enhanced with 16 bit (full) precision "output tensor" to further improve model performance.
Output tensor affects 10-20% of the fine output of the model - both thinking and output (final) generation.
Special thanks to :
- Team ZAI-ORG for making an outstanding model.
- Team P-E-W for fanstastic work on Heretic system.
- Team Olafangensan for Heretic'ing the model.
Using an "uncensored" (refusals removed) model VS trained "uncensored" model
Usually when you a tell a model to generate horror, swear or x-rated content this is all you have to do to get said content type.
In the case of this model, it will not refuse your request, however it needs to be "pushed" a bit / directed a bit more in SOME CASES.
Although this model will generated x-rated content too, likewise you need to tell it to use "slang" (and include the terms you want) to get it generate the content correctly as the "expected" content level too.
Without these added directive(s), the content can be "bland" by comparison to an "uncensored model" or model trained on uncensored content.
Roughly, the model tries to generate the content but the "default" setting(s) are so "tame" it needs a push to generate at expected graphic, cursing or explicit levels.
Even with minimal direction (ie, use these words to swear: x,y,z), this will be enough to push the model to generate the requested content in the ahh... expected format.
Settings: CHAT / ROLEPLAY and/or SMOOTHER operation of this model:
In "KoboldCpp" or "oobabooga/text-generation-webui" or "Silly Tavern" ;
Set the "Smoothing_factor" to 1.5
: in KoboldCpp -> Settings->Samplers->Advanced-> "Smooth_F"
: in text-generation-webui -> parameters -> lower right.
: In Silly Tavern this is called: "Smoothing"
NOTE: For "text-generation-webui"
-> if using GGUFs you need to use "llama_HF" (which involves downloading some config files from the SOURCE version of this model)
Source versions (and config files) of my models are here:
OTHER OPTIONS:
Increase rep pen to 1.1 to 1.15 (you don't need to do this if you use "smoothing_factor")
If the interface/program you are using to run AI MODELS supports "Quadratic Sampling" ("smoothing") just make the adjustment as noted.
Highest Quality Settings / Optimal Operation Guide / Parameters and Samplers
This a "Class 1" model:
For all settings used for this model (including specifics for its "class"), including example generation(s) and for advanced settings guide (which many times addresses any model issue(s)), including methods to improve model performance for all use case(s) as well as chat, roleplay and other use case(s) please see:
You can see all parameters used for generation, in addition to advanced parameters and samplers to get the most out of this model here:
- Downloads last month
- 147
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Model tree for haellsigh/glm-4.7-flash-uncensored
Base model
Olafangensan/GLM-4.7-Flash-heretic