Instructions to use noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF", filename="GLM-4.5-Air-Derestricted-MXFP4_MOE-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 noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE # Run inference directly in the terminal: llama-cli -hf noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE # Run inference directly in the terminal: llama-cli -hf noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
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 noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE # Run inference directly in the terminal: ./llama-cli -hf noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
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 noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE # Run inference directly in the terminal: ./build/bin/llama-cli -hf noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
Use Docker
docker model run hf.co/noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
- LM Studio
- Jan
- vLLM
How to use noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-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": "noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
- Ollama
How to use noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF with Ollama:
ollama run hf.co/noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
- Unsloth Studio
How to use noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-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 noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-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 noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF to start chatting
- Pi
How to use noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
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": "noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
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 noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF with Docker Model Runner:
docker model run hf.co/noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
- Lemonade
How to use noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull noctrex/GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF:MXFP4_MOE
Run and chat with the model
lemonade run user.GLM-4.5-Air-Derestricted-MXFP4_MOE-GGUF-MXFP4_MOE
List all available models
lemonade list
This is a MXFP4_MOE quantization of the model GLM-4.5-Air-Derestricted
Creator model card:
Arli AI
GLM-4.5-Air-Derestricted
GLM-4.5-Air-Derestricted is a Derestricted version of GLM-4.5-Air, created by Arli AI.
Our goal with this release is to provide a version of the model that removed refusal behaviors while maintaining the high-performance reasoning of the original GLM-4.5-Air. This is unlike regular abliteration which often inadvertently "lobotomizes" the model.
Methodology: Norm-Preserving Biprojected Abliteration
To achieve this, Arli AI utilized Norm-Preserving Biprojected Abliteration, a refined technique pioneered by Jim Lai (grimjim). You can read the full technical breakdown in this article.
Why this matters:
Standard abliteration works by simply subtracting a "refusal vector" from the model's weights. While this works to uncensor a model, it is mathematically unprincipled. It alters the magnitude (or "loudness") of the neurons, destroying the delicate feature norms the model learned during training. This damage is why many uncensored models suffer from degraded logic or hallucinations.
How Norm-Preserving Biprojected Abliteration fixes it:
This model was modified using a three-step approach that removes refusals without breaking the model's brain:
- Biprojection (Targeting): We refined the refusal direction to ensure it is mathematically orthogonal to "harmless" directions. This ensures that when we cut out the refusal behavior, we do not accidentally cut out healthy, harmless concepts.
- Decomposition: Instead of a raw subtraction, we decomposed the model weights into Magnitude and Direction.
- Norm-Preservation: We removed the refusal component solely from the directional aspect of the weights, then recombined them with their original magnitudes.
The Result:
By preserving the weight norms, we maintain the "importance" structure of the neural network. Benchmarks suggest that this method avoids the "Safety Tax"—not only effectively removing refusals but potentially improving reasoning capabilities over the baseline, as the model is no longer wasting compute resources on suppressing its own outputs.
In fact, you may find surprising new knowledge and capabilities that the original model does not initially expose.
Quantization:
- Original: https://huggingface.co/ArliAI/GLM-4.5-Air-Derestricted
- FP8: https://huggingface.co/ArliAI/GLM-4.5-Air-Derestricted-FP8
- INT8: https://huggingface.co/ArliAI/GLM-4.5-Air-Derestricted-W8A8-INT8
Original model card:
👋 Join our Discord community.
📖 Check out the GLM-4.5 technical blog, technical report, and Zhipu AI technical documentation.
📍 Use GLM-4.5 API services on Z.ai API Platform (Global) or
Zhipu AI Open Platform (Mainland China).
👉 One click to GLM-4.5.
Model Introduction
The GLM-4.5 series models are foundation models designed for intelligent agents. GLM-4.5 has 355 billion total parameters with 32 billion active parameters, while GLM-4.5-Air adopts a more compact design with 106 billion total parameters and 12 billion active parameters. GLM-4.5 models unify reasoning, coding, and intelligent agent capabilities to meet the complex demands of intelligent agent applications.
Both GLM-4.5 and GLM-4.5-Air are hybrid reasoning models that provide two modes: thinking mode for complex reasoning and tool usage, and non-thinking mode for immediate responses.
We have open-sourced the base models, hybrid reasoning models, and FP8 versions of the hybrid reasoning models for both GLM-4.5 and GLM-4.5-Air. They are released under the MIT open-source license and can be used commercially and for secondary development.
As demonstrated in our comprehensive evaluation across 12 industry-standard benchmarks, GLM-4.5 achieves exceptional performance with a score of 63.2, in the 3rd place among all the proprietary and open-source models. Notably, GLM-4.5-Air delivers competitive results at 59.8 while maintaining superior efficiency.
For more eval results, show cases, and technical details, please visit our technical blog or technical report.
The model code, tool parser and reasoning parser can be found in the implementation of transformers, vLLM and SGLang.
Quick Start
Please refer our github page for more detail.
- Downloads last month
- 340
4-bit
