Image-Text-to-Text
MLX
Safetensors
English
Chinese
glm5_next
gbx-lm
apple-silicon
expert-paging
mixture-of-experts
multimodal
conversational
4-bit precision
Instructions to use GreenBitAI/GLM-5.3-Flash-4bit-paged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use GreenBitAI/GLM-5.3-Flash-4bit-paged 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("GreenBitAI/GLM-5.3-Flash-4bit-paged") config = load_config("GreenBitAI/GLM-5.3-Flash-4bit-paged") # 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 GreenBitAI/GLM-5.3-Flash-4bit-paged with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "GreenBitAI/GLM-5.3-Flash-4bit-paged"
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": "GreenBitAI/GLM-5.3-Flash-4bit-paged" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use GreenBitAI/GLM-5.3-Flash-4bit-paged 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 "GreenBitAI/GLM-5.3-Flash-4bit-paged"
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 GreenBitAI/GLM-5.3-Flash-4bit-paged
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use GreenBitAI/GLM-5.3-Flash-4bit-paged with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "GreenBitAI/GLM-5.3-Flash-4bit-paged"
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 "GreenBitAI/GLM-5.3-Flash-4bit-paged" \ --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 DGX Spark support to the card
Browse files
README.md
CHANGED
|
@@ -37,12 +37,25 @@ published build of this model carries.
|
|
| 37 |
|
| 38 |
## Requirements
|
| 39 |
|
|
|
|
|
|
|
| 40 |
| | |
|
| 41 |
| --- | --- |
|
| 42 |
| macOS | **15.0 or later** |
|
| 43 |
| chip | **Apple Silicon** (arm64). There is no Intel build. |
|
| 44 |
| Python | none -- the binary carries what it needs |
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
Memory is not a fixed figure for a paged build, and that is the point of one: it
|
| 47 |
fills what fits and streams the rest from disk. On a 512 GB Mac Studio with room
|
| 48 |
to spare this model settles at about **172 GB** resident. A smaller machine holds
|
|
@@ -62,6 +75,7 @@ the wait is the SSD's, not the model's.
|
|
| 62 |
# upgrading? clear the previous version's unpack directory first
|
| 63 |
rm -rf ~/.libra/cache/onefile/gbx_lm
|
| 64 |
|
|
|
|
| 65 |
curl -fL -o gbx_lm-darwin-arm64.tar.gz 'https://github.com/GreenBitAI/gbx-lm/releases/latest/download/gbx_lm-darwin-arm64.tar.gz' \
|
| 66 |
&& tar -xzf gbx_lm-darwin-arm64.tar.gz gbx_lm \
|
| 67 |
&& mkdir -p "$HOME/.local/bin" \
|
|
@@ -71,8 +85,8 @@ curl -fL -o gbx_lm-darwin-arm64.tar.gz 'https://github.com/GreenBitAI/gbx-lm/rel
|
|
| 71 |
gbx_lm -h
|
| 72 |
```
|
| 73 |
|
| 74 |
-
The build is signed with a Developer ID and notarised, so macOS runs it
|
| 75 |
-
the usual detour for a downloaded binary.
|
| 76 |
|
| 77 |
**`command not found`** -- `$HOME/.local/bin` is not on your `PATH`:
|
| 78 |
|
|
@@ -81,7 +95,7 @@ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc #
|
|
| 81 |
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bash_profile && source ~/.bash_profile # bash
|
| 82 |
```
|
| 83 |
|
| 84 |
-
**`Killed: 9`** -- a previous version's files are still in the unpack directory,
|
| 85 |
and macOS refuses to mix two builds. Run the `rm -rf` line above, then try again.
|
| 86 |
|
| 87 |
## Run
|
|
|
|
| 37 |
|
| 38 |
## Requirements
|
| 39 |
|
| 40 |
+
**Mac**
|
| 41 |
+
|
| 42 |
| | |
|
| 43 |
| --- | --- |
|
| 44 |
| macOS | **15.0 or later** |
|
| 45 |
| chip | **Apple Silicon** (arm64). There is no Intel build. |
|
| 46 |
| Python | none -- the binary carries what it needs |
|
| 47 |
|
| 48 |
+
**Linux** (gbx-lm v0.8.1 or later)
|
| 49 |
+
|
| 50 |
+
| | |
|
| 51 |
+
| --- | --- |
|
| 52 |
+
| machine | **NVIDIA DGX Spark** (GB10). Other Linux machines are not supported yet. |
|
| 53 |
+
| system | arm64, glibc 2.39 or later (DGX OS / Ubuntu 24.04) |
|
| 54 |
+
| driver | an NVIDIA driver with CUDA 13 support. No CUDA toolkit is needed: the binary carries the CUDA libraries it uses. |
|
| 55 |
+
| Python | none |
|
| 56 |
+
|
| 57 |
+
On a DGX Spark (128 GB) the model does not fit, so its experts are paged from the SSD.
|
| 58 |
+
|
| 59 |
Memory is not a fixed figure for a paged build, and that is the point of one: it
|
| 60 |
fills what fits and streams the rest from disk. On a 512 GB Mac Studio with room
|
| 61 |
to spare this model settles at about **172 GB** resident. A smaller machine holds
|
|
|
|
| 75 |
# upgrading? clear the previous version's unpack directory first
|
| 76 |
rm -rf ~/.libra/cache/onefile/gbx_lm
|
| 77 |
|
| 78 |
+
# on a DGX Spark, use gbx_lm-linux-arm64.tar.gz in place of gbx_lm-darwin-arm64.tar.gz
|
| 79 |
curl -fL -o gbx_lm-darwin-arm64.tar.gz 'https://github.com/GreenBitAI/gbx-lm/releases/latest/download/gbx_lm-darwin-arm64.tar.gz' \
|
| 80 |
&& tar -xzf gbx_lm-darwin-arm64.tar.gz gbx_lm \
|
| 81 |
&& mkdir -p "$HOME/.local/bin" \
|
|
|
|
| 85 |
gbx_lm -h
|
| 86 |
```
|
| 87 |
|
| 88 |
+
The Mac build is signed with a Developer ID and notarised, so macOS runs it
|
| 89 |
+
without the usual detour for a downloaded binary.
|
| 90 |
|
| 91 |
**`command not found`** -- `$HOME/.local/bin` is not on your `PATH`:
|
| 92 |
|
|
|
|
| 95 |
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bash_profile && source ~/.bash_profile # bash
|
| 96 |
```
|
| 97 |
|
| 98 |
+
**`Killed: 9`** (Mac) -- a previous version's files are still in the unpack directory,
|
| 99 |
and macOS refuses to mix two builds. Run the `rm -rf` line above, then try again.
|
| 100 |
|
| 101 |
## Run
|