Views
No views yet
zai-org/GLM-5.2 for MLX on Apple silicon. TurboQuant applies a random-sign Hadamard rotation, a per-row FP16 norm, and a per-layer Lloyd-Max codebook to the routed experts, keeping the backbone at higher precision.| Component | Precision |
|---|---|
| Attention | FP16 |
| Shared experts | FP16 |
| Routed experts | 4-bit |
| Embeddings | FP16 |
| LM head | FP16 |
jang-tools Python package or vMLX. Not supported by stock MLX, LM Studio, or Ollama.pip install tiktoken blobfile and set TRANSFORMERS_TRUST_REMOTE_CODE=1.1import os
2os.environ["TRANSFORMERS_TRUST_REMOTE_CODE"] = "1"
3
4from jang_tools.load_jangtq import load_jangtq_model as load
5from mlx_lm import generate
6
7model, tokenizer = load("bearzi/GLM-5.2-JANGTQ4")
8msgs = [{"role": "user", "content": "Write a Python function that reverses a string."}]
9prompt = tokenizer.apply_chat_template(msgs, add_generation_prompt=True, tokenize=False)
10print(generate(model, tokenizer, prompt=prompt, max_tokens=512, verbose=True))zai-org/GLM-5.2; quantization does not change the upstream terms. Attribution is required only for very large commercial deployments (see the license link above).