Image-Text-to-Text
MLX
Safetensors
qwen4_exp
gbx-lm
mlx-vlm
omlx
qwen
qwen3.8
mixture-of-experts
vision-language
quantized
apple-silicon
4-bit precision
conversational
Instructions to use GreenBitAI/Qwen3.8-Flash-Next-4bit-paged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use GreenBitAI/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-4bit-paged") config = load_config("GreenBitAI/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-4bit-paged" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use GreenBitAI/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-4bit-paged
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use GreenBitAI/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-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/Qwen3.8-Flash-Next-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"
Model card: clear the old unpack directory when upgrading
Browse filesA second version unpacks into the same directory as the first, and macOS kills a process that mixes two builds -- `Killed: 9`, with nothing to say why. The install now clears it, and both that and the PATH case are written out.
README.md
CHANGED
|
@@ -63,6 +63,9 @@ the wait is the SSD's, not the model's.
|
|
| 63 |
## Install
|
| 64 |
|
| 65 |
```bash
|
|
|
|
|
|
|
|
|
|
| 66 |
curl -fL -o gbx_lm-darwin-arm64.tar.gz 'https://github.com/GreenBitAI/gbx-lm/releases/latest/download/gbx_lm-darwin-arm64.tar.gz' \
|
| 67 |
&& tar -xzf gbx_lm-darwin-arm64.tar.gz gbx_lm \
|
| 68 |
&& mkdir -p "$HOME/.local/bin" \
|
|
@@ -72,9 +75,18 @@ curl -fL -o gbx_lm-darwin-arm64.tar.gz 'https://github.com/GreenBitAI/gbx-lm/rel
|
|
| 72 |
gbx_lm -h
|
| 73 |
```
|
| 74 |
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
## Run
|
| 80 |
|
|
|
|
| 63 |
## Install
|
| 64 |
|
| 65 |
```bash
|
| 66 |
+
# upgrading? clear the previous version's unpack directory first
|
| 67 |
+
rm -rf ~/.libra/cache/onefile/gbx_lm
|
| 68 |
+
|
| 69 |
curl -fL -o gbx_lm-darwin-arm64.tar.gz 'https://github.com/GreenBitAI/gbx-lm/releases/latest/download/gbx_lm-darwin-arm64.tar.gz' \
|
| 70 |
&& tar -xzf gbx_lm-darwin-arm64.tar.gz gbx_lm \
|
| 71 |
&& mkdir -p "$HOME/.local/bin" \
|
|
|
|
| 75 |
gbx_lm -h
|
| 76 |
```
|
| 77 |
|
| 78 |
+
The build is signed with a Developer ID and notarised, so macOS runs it without
|
| 79 |
+
the usual detour for a downloaded binary.
|
| 80 |
+
|
| 81 |
+
**`command not found`** -- `$HOME/.local/bin` is not on your `PATH`:
|
| 82 |
+
|
| 83 |
+
```bash
|
| 84 |
+
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc # zsh
|
| 85 |
+
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bash_profile && source ~/.bash_profile # bash
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
**`Killed: 9`** -- a previous version's files are still in the unpack directory,
|
| 89 |
+
and macOS refuses to mix two builds. Run the `rm -rf` line above, then try again.
|
| 90 |
|
| 91 |
## Run
|
| 92 |
|