Instructions to use ukisai/Swift-1.5-5bit-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use ukisai/Swift-1.5-5bit-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("ukisai/Swift-1.5-5bit-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 ukisai/Swift-1.5-5bit-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 "ukisai/Swift-1.5-5bit-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": "ukisai/Swift-1.5-5bit-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use ukisai/Swift-1.5-5bit-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 "ukisai/Swift-1.5-5bit-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "ukisai/Swift-1.5-5bit-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ukisai/Swift-1.5-5bit-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use ukisai/Swift-1.5-5bit-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 "ukisai/Swift-1.5-5bit-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 ukisai/Swift-1.5-5bit-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ukisai/Swift-1.5-5bit-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 "ukisai/Swift-1.5-5bit-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 "ukisai/Swift-1.5-5bit-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"
Download compatibility/source-structural-results.json from ukisai/Swift-1.5-5bit-MLX: direct link, hf CLI and curl.
- Browser
- Download file 2.5 kB
-
https://huggingface.co/ukisai/Swift-1.5-5bit-MLX/resolve/main/compatibility/source-structural-results.json
- Command line
-
hf download hf://ukisai/Swift-1.5-5bit-MLX/compatibility/source-structural-results.json
-
curl -L -o source-structural-results.json https://huggingface.co/ukisai/Swift-1.5-5bit-MLX/resolve/main/compatibility/source-structural-results.json
2.5 kB
| { | |
| "categories": { | |
| "MTP": 15, | |
| "text": 851, | |
| "vision": 333 | |
| }, | |
| "chat_templates": [ | |
| { | |
| "options": { | |
| "enable_thinking": false | |
| }, | |
| "rendered": "<|im_start|>user\nSay hello.<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n", | |
| "tokens": 15 | |
| }, | |
| { | |
| "options": { | |
| "reasoning_effort": "low" | |
| }, | |
| "rendered": "<|im_start|>system\nReasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.<|im_end|>\n<|im_start|>user\nSay hello.<|im_end|>\n<|im_start|>assistant\n<think>\n", | |
| "tokens": 43 | |
| }, | |
| { | |
| "options": { | |
| "reasoning_effort": "xhigh" | |
| }, | |
| "rendered": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.<|im_end|>\n<|im_start|>user\nSay hello.<|im_end|>\n<|im_start|>assistant\n<think>\n", | |
| "tokens": 55 | |
| } | |
| ], | |
| "elapsed_seconds": 1.0959153320000041, | |
| "full_parameter_evaluation": false, | |
| "generation": "NOT_RUN", | |
| "ignored_tensors": 0, | |
| "mapped_tensors": 1199, | |
| "mlx_active_memory_bytes": 8, | |
| "mtp_runtime": "component-only; no integrated speculative decoding", | |
| "platform": "Linux x86_64", | |
| "process_peak_rss_bytes": 1180291072, | |
| "processor": "Qwen3VLProcessor", | |
| "quantization_executed": false, | |
| "recorded_at": "2026-09-22T12:03:20.905145+00:00", | |
| "source": "<SOURCE_MODEL_DIR>", | |
| "source_repo": "ukisai/Swift-1.5-Qwen3.8-27b", | |
| "source_revision": "5ad04445d2686f525e9fbe5c077e6fa0c7df4200", | |
| "source_tensors": 1199, | |
| "source_verification": "compatibility/source-verification.json", | |
| "previous_recorded_source_verification_sha256_unverified": "1e6e65ed808f3dbc08766bc141706f2d30349d28608f6aba6884b419c3849ef3", | |
| "source_verification_sha256": "27d87d8d5209c6559643efdd7d7b468b0138ebfb3a7d5771b29be79214bffe75", | |
| "reference_update_note": "Current hash identifies the published redacted document. The previous recorded hash is retained for provenance but was not reproduced. This reference correction does not rerun the historical validation.", | |
| "status": "PASS_ACTUAL_SOURCE_LAZY_STRUCTURAL_LOAD", | |
| "tokenizer": "Qwen2Tokenizer", | |
| "unexplained_tensors": 0, | |
| "vision_runtime": "encoder-only; no integrated multimodal generation", | |
| "weight_backing": "actual verified source safetensors; lazy loading" | |
| } | |