Image-Text-to-Text
MLX
Safetensors
English
Chinese
glm5_next
glm
glm-5
apple-silicon
quantized
2-8bit
Mixture of Experts
vision-language
multimodal
orcasaq
dynamic-quant
reasoning
conversational
4-bit precision
Instructions to use orcarouter/GLM-5.3-Flash-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use orcarouter/GLM-5.3-Flash-MLX with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("orcarouter/GLM-5.3-Flash-MLX") config = load_config("orcarouter/GLM-5.3-Flash-MLX") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use orcarouter/GLM-5.3-Flash-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 "orcarouter/GLM-5.3-Flash-MLX"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "orcarouter/GLM-5.3-Flash-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use orcarouter/GLM-5.3-Flash-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 "orcarouter/GLM-5.3-Flash-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 orcarouter/GLM-5.3-Flash-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use orcarouter/GLM-5.3-Flash-MLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "orcarouter/GLM-5.3-Flash-MLX"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "orcarouter/GLM-5.3-Flash-MLX" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add 2bit-lite MLX quantization (1/9)
Browse files
2bit-lite/model.safetensors.index.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 11529499
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d27789250345c2d74c5a9ee371b453db491375ae9b5a05ecad1ae5f09cc73569
|
| 3 |
size 11529499
|
2bit-lite/preprocessor_config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_rescale": true,
|
| 3 |
+
"patch_expand_factor": 1,
|
| 4 |
+
"merge_size": 2,
|
| 5 |
+
"image_mean": [
|
| 6 |
+
0.48145466,
|
| 7 |
+
0.4578275,
|
| 8 |
+
0.40821073
|
| 9 |
+
],
|
| 10 |
+
"image_std": [
|
| 11 |
+
0.26862954,
|
| 12 |
+
0.26130258,
|
| 13 |
+
0.27577711
|
| 14 |
+
],
|
| 15 |
+
"temporal_patch_size": 2,
|
| 16 |
+
"patch_size": 14,
|
| 17 |
+
"min_image_tokens": 16,
|
| 18 |
+
"max_image_tokens": 8000,
|
| 19 |
+
"image_processor_type": "Glm5NextImageProcessor",
|
| 20 |
+
"do_convert_rgb": true,
|
| 21 |
+
"do_resize": true,
|
| 22 |
+
"resample": 3,
|
| 23 |
+
"rescale_factor": 0.00392156862745098,
|
| 24 |
+
"do_normalize": true,
|
| 25 |
+
"size": {
|
| 26 |
+
"longest_edge": 1
|
| 27 |
+
},
|
| 28 |
+
"processor_class": "Glm5NextProcessor"
|
| 29 |
+
}
|
2bit-lite/video_preprocessor_config.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_rescale": true,
|
| 3 |
+
"video_processor_type": "Glm5NextVideoProcessor",
|
| 4 |
+
"patch_expand_factor": 1,
|
| 5 |
+
"merge_size": 2,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.48145466,
|
| 8 |
+
0.4578275,
|
| 9 |
+
0.40821073
|
| 10 |
+
],
|
| 11 |
+
"image_std": [
|
| 12 |
+
0.26862954,
|
| 13 |
+
0.26130258,
|
| 14 |
+
0.27577711
|
| 15 |
+
],
|
| 16 |
+
"temporal_patch_size": 2,
|
| 17 |
+
"patch_size": 14,
|
| 18 |
+
"min_image_tokens": 16,
|
| 19 |
+
"max_image_tokens": 240000,
|
| 20 |
+
"fps": 2,
|
| 21 |
+
"do_convert_rgb": true,
|
| 22 |
+
"do_resize": true,
|
| 23 |
+
"resample": 3,
|
| 24 |
+
"rescale_factor": 0.00392156862745098,
|
| 25 |
+
"do_normalize": true,
|
| 26 |
+
"do_sample_frames": true,
|
| 27 |
+
"num_frames": 16,
|
| 28 |
+
"return_metadata": false,
|
| 29 |
+
"max_image_size": {
|
| 30 |
+
"longest_edge": 47040000
|
| 31 |
+
},
|
| 32 |
+
"max_frames": 2048,
|
| 33 |
+
"size": {
|
| 34 |
+
"longest_edge": 1
|
| 35 |
+
}
|
| 36 |
+
}
|