Text Generation
MLX
Safetensors
English
glm_moe_dsa
apple-silicon
Mixture of Experts
pruned
quantized
soul-targeted
agentic
local-agent
glm
conversational
Eval Results (legacy)
4-bit precision
Instructions to use philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX"
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 philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX
Run Hermes
hermes
- MLX LM
How to use philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }'
Upload folder using huggingface_hub
Browse files
heal/adapters-gamedev/adapter_config.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"adapter_path": "heal/adapters-gamedev",
|
| 3 |
+
"batch_size": 1,
|
| 4 |
+
"clear_cache_threshold": 0,
|
| 5 |
+
"config": "/Users/pjb/git/glm52-demolition/scripts/../heal/lora_config.yaml",
|
| 6 |
+
"data": "heal/_q_gamedev",
|
| 7 |
+
"fine_tune_type": "lora",
|
| 8 |
+
"grad_accumulation_steps": 1,
|
| 9 |
+
"grad_checkpoint": true,
|
| 10 |
+
"iters": 800,
|
| 11 |
+
"learning_rate": 2e-05,
|
| 12 |
+
"lora_parameters": {
|
| 13 |
+
"rank": 16,
|
| 14 |
+
"scale": 20.0,
|
| 15 |
+
"dropout": 0.05
|
| 16 |
+
},
|
| 17 |
+
"lr_schedule": {
|
| 18 |
+
"name": "cosine_decay",
|
| 19 |
+
"warmup": 100,
|
| 20 |
+
"warmup_init": 1e-07,
|
| 21 |
+
"arguments": [
|
| 22 |
+
2e-05,
|
| 23 |
+
800,
|
| 24 |
+
2.0000000000000003e-06
|
| 25 |
+
]
|
| 26 |
+
},
|
| 27 |
+
"mask_prompt": false,
|
| 28 |
+
"max_seq_length": 2048,
|
| 29 |
+
"model": "models/GLM-5.2-q3a4-v4",
|
| 30 |
+
"num_layers": 16,
|
| 31 |
+
"optimizer": "adam",
|
| 32 |
+
"optimizer_config": {
|
| 33 |
+
"adam": {},
|
| 34 |
+
"adamw": {},
|
| 35 |
+
"muon": {},
|
| 36 |
+
"sgd": {},
|
| 37 |
+
"adafactor": {}
|
| 38 |
+
},
|
| 39 |
+
"project_name": null,
|
| 40 |
+
"report_to": null,
|
| 41 |
+
"resume_adapter_file": null,
|
| 42 |
+
"save_every": 100,
|
| 43 |
+
"seed": 0,
|
| 44 |
+
"steps_per_eval": 200,
|
| 45 |
+
"steps_per_report": 10,
|
| 46 |
+
"test": false,
|
| 47 |
+
"test_batches": 500,
|
| 48 |
+
"train": true,
|
| 49 |
+
"val_batches": 25
|
| 50 |
+
}
|
heal/adapters-gamedev/adapters.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:56421572cacac3cb23035a58953ee577fa2982f39a5e2cc84e45a8a4716bb7a9
|
| 3 |
+
size 2024948778
|