Instructions to use drowzeys/keys-Ablit-For-GLM-5.3-4bit-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use drowzeys/keys-Ablit-For-GLM-5.3-4bit-MLX with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("drowzeys/keys-Ablit-For-GLM-5.3-4bit-MLX") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use drowzeys/keys-Ablit-For-GLM-5.3-4bit-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "drowzeys/keys-Ablit-For-GLM-5.3-4bit-MLX" --prompt "Once upon a time"
- Atomic Chat
Acknowledge the Responsible Use Agreement to access this repository
Access is granted automatically after you agree to the terms below and submit the form.
Responsible Use Agreement
This pack has had safety refusals removed from part of GLM-5.3. That makes it useful for red-teaming, security research, evaluation, and unfiltered assistant tasks β and also removes guardrails a user must therefore supply themselves.
Prohibited uses (you must agree before access is granted):
- Anything involving the sexual exploitation or endangerment of minors.
- You must be of age 18 years or older to use and download this model.
- You agree any information generated that can cause harm in terms of generating recipe, knowledge to make any materials/substances is your own input and responsibility. You will be accountable for any harm/damage caused by your action/input.
- Content promoting self-harm or suicide.
- Generation of material that is illegal in your jurisdiction, or that targets real individuals for harassment, doxxing, or fraud.
- Any use prohibited by the upstream Z.AI / GLM MIT license.
You are responsible for adding appropriate safety filtering, human review, and access controls for your deployment. The weights are provided as-is, with no warranty. The license is inherited from the upstream Z.AI GLM-5.3 MIT license β review and comply with it before use or redistribution.
Log in or Sign Up to review the conditions and access this model content.
keys-Ablit-For-GLM-5.3-4bit-MLX
Recipe (both Mac Studio M5 Ultra setups live in one GitHub repo):
| Machine | Recipe |
|---|---|
| One Mac Studio M5 Ultra, 512 GB | keys-Apple-M5U-TF-Full-GLM5.3-MLX-4bit β one-shot Β· oneshot.sh --preset prose --ablit |
| Two Mac Studio M5 Ultras, 256 GB each | keys-Apple-M5U-TF-Full-GLM5.3-MLX-4bit β two Macs Β· tp2/oneshot-tp2.sh --ablit |
Agent instructions for either setup: glm53/ABLIT.md.
Abliteration pack for mlx-community/GLM-5.3-4bit at revision 81ad9b73c6188f808737dbb52458f082d249dcbe. It is not a second copy of the 395 GB checkpoint.
One file, model-ablit-l2-49.safetensors (3.09 GB, SHA-256 34dc762a2952a3e692951266a0b0527e0efa056f9e3d741d8efed775029b9fd0). It holds 96 matrices already stored as MLX affine 4-bit, group 64 (weight U32, scales BF16, biases BF16):
| Matrices | Layers |
|---|---|
self_attn.o_proj |
2β49 |
dense mlp.down_proj |
2 |
mlp.shared_experts.down_proj |
3β49 |
Layers 0β1, layers 50β78, the routed experts, embeddings, lm_head, and the MTP head stay the stock files. The donor is drowzeys/keys-GLM-5.3-EXL3-Abliterated (Blackfrost rank-1 derisk, Ξ±=3.0, native F16). Those floats were requantized with mlx.core.quantize on CPU. About 24% of the 4-bit codes change on layer 2 o_proj, and about 14.5% on layers 30 and 49.
TensorFold registers every tensor in every shard the index names. Do not add this file beside the stock shards. Clone each affected shard and overwrite the matching byte range. apply_ablit.py does that and will not write into a Hugging Face cache snapshot.
Apply
Use the Mac Studio M5 Ultra recipe repo drowzeys/keys-Apple-M5U-TF-Full-GLM5.3-MLX-4bit. One 512 GB Mac: one-shot. Two 256 GB Macs: TP=2. An agent should follow glm53/ABLIT.md.
# one 512 GB Mac, TensorFold
./oneshot.sh --preset prose --ablit
# two 256 GB Macs, MLX tensor parallel. Splices first, then writes rank 1.
./oneshot-tp2.sh --peer USER@SECOND_MAC --ablit
By hand, on a private model folder (the MTP merge, not the cache snapshot):
hf download drowzeys/keys-Ablit-For-GLM-5.3-4bit-MLX --local-dir /tmp/glm53-ablit-pack
python3 apply_ablit.py --model "$MODEL" --pack /tmp/glm53-ablit-pack
Measured
512 GB M5 Ultra, TensorFold, MTP depth 1, 8-bit KV, context 135168. Median of 3 runs, 400 tokens. Decode is tokens after the first, over the time from the first token to the last.
| This pack | Stock tree, same bench | |
|---|---|---|
| Prose, T=0.6 | 34.7 tok/s | 34.8 |
| Prose, greedy | 35.7 tok/s | 35.9 |
Refusal suite, thinking off, 192 tokens: 29/32. Items 4, 14 and 20 score as refusals. Item 21 is a coherent answer marked garble by a line of = signs. Cyber suite: 22/22. Harmless checks passed, including 17Γ19 = 323.
This is not a 32/32 pack. The EXL3 ablit of the same donor still refuses fewer items.
Quantized