Instructions to use majentik/Swift-Qwen3.8-27B-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use majentik/Swift-Qwen3.8-27B-MLX-8bit 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("majentik/Swift-Qwen3.8-27B-MLX-8bit") config = load_config("majentik/Swift-Qwen3.8-27B-MLX-8bit") # 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 majentik/Swift-Qwen3.8-27B-MLX-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "majentik/Swift-Qwen3.8-27B-MLX-8bit"
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": "majentik/Swift-Qwen3.8-27B-MLX-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use majentik/Swift-Qwen3.8-27B-MLX-8bit 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 "majentik/Swift-Qwen3.8-27B-MLX-8bit"
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 majentik/Swift-Qwen3.8-27B-MLX-8bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use majentik/Swift-Qwen3.8-27B-MLX-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "majentik/Swift-Qwen3.8-27B-MLX-8bit"
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 "majentik/Swift-Qwen3.8-27B-MLX-8bit" \ --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"
File size: 3,115 Bytes
59d3ee7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | ---
license: other
license_name: swift-open-license-1.0
license_link: https://huggingface.co/ukisai/Swift-Qwen3.8-27b/blob/main/LICENSE
base_model: ukisai/Swift-Qwen3.8-27b
library_name: mlx
tags:
- mlx
- qwen3_5
- quantized
pipeline_tag: image-text-to-text
---
# Swift-Qwen3.8-27B-MLX-8bit
MLX **8bit** (affine, group size 64) quantized
variant of [ukisai/Swift-Qwen3.8-27b](https://huggingface.co/ukisai/Swift-Qwen3.8-27b) (text tower quantized; vision tower and projector retained in BF16) for Apple
silicon via [mlx-lm](https://github.com/ml-explore/mlx-lm).
## Provenance
- Source: [ukisai/Swift-Qwen3.8-27b](https://huggingface.co/ukisai/Swift-Qwen3.8-27b) @ revision
`048328f4059015b63f860a453bf94834af0db683` (Swift Open License v1.0 for the UkisAI contribution + Apache-2.0 for the Qwen base (upstream `LICENSE`, `LICENSE-APACHE-2.0`, `NOTICE`)).
- Quantized with `mlx_lm.convert` (mlx-lm 0.31.3): affine,
8-bit, group size 64.
## Smoke gate
Before upload this pack passed a deterministic coherence gate: greedy
48-token chat generation loaded through
`mlx_lm.load`, judged for emptiness, repetition loops, multi-script
gibberish, and special-token debris. Verdict: `ok`.
## Usage
```bash
pip install mlx-lm
mlx_lm.generate --model majentik/Swift-Qwen3.8-27B-MLX-8bit --prompt "Hello"
```
## Evaluation
Coherence smoke gate only at publish time (see *Smoke gate* above). Per-tier gate records live in [majentik/garden-quant-bench](https://huggingface.co/datasets/majentik/garden-quant-bench); perplexity / benchmark rows are added here when measured.
## License
This pack is a quantized (Object-form) redistribution of `ukisai/Swift-Qwen3.8-27b` and inherits its dual
licensing unchanged:
- the Qwen/Qwen3.8-27B base weights remain under **Apache-2.0** (`LICENSE-APACHE-2.0`);
- the UkisAI Swift contribution (finetune) is under the **Swift Open License v1.0** (`LICENSE`),
which is free for research and commercial use by organisations with up to US$1M gross annual
revenue; larger organisations need a Swift Enterprise License from UkisAI.
`LICENSE`, `LICENSE-APACHE-2.0` and `NOTICE` are shipped verbatim in this repository as required by
Section 4 (Redistribution) of the Swift Open License. The only change from upstream is the MLX
quantization described above.
## Available tiers
| Repo | Quant |
| --- | --- |
| [majentik/Swift-Qwen3.8-27B-MLX-2bit](https://huggingface.co/majentik/Swift-Qwen3.8-27B-MLX-2bit) | 2bit |
| [majentik/Swift-Qwen3.8-27B-MLX-3bit](https://huggingface.co/majentik/Swift-Qwen3.8-27B-MLX-3bit) | 3bit |
| [majentik/Swift-Qwen3.8-27B-MLX-4bit](https://huggingface.co/majentik/Swift-Qwen3.8-27B-MLX-4bit) | 4bit |
| [majentik/Swift-Qwen3.8-27B-MLX-5bit](https://huggingface.co/majentik/Swift-Qwen3.8-27B-MLX-5bit) | 5bit |
| [majentik/Swift-Qwen3.8-27B-MLX-6bit](https://huggingface.co/majentik/Swift-Qwen3.8-27B-MLX-6bit) | 6bit |
| [majentik/Swift-Qwen3.8-27B-MLX-8bit](https://huggingface.co/majentik/Swift-Qwen3.8-27B-MLX-8bit) | 8bit |
| [majentik/Swift-Qwen3.8-27B-MLX-MXFP4](https://huggingface.co/majentik/Swift-Qwen3.8-27B-MLX-MXFP4) | MXFP4 |
|