Image-Text-to-Text
ONNX
GGUF
llama.cpp
qwen3-vl
spacemit
k1
k3
onnxruntime
Mixture of Experts
conversational
Instructions to use SpacemiT/Qwen3-VL-30B-A3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use SpacemiT/Qwen3-VL-30B-A3B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf SpacemiT/Qwen3-VL-30B-A3B:Q4_1 # Run inference directly in the terminal: llama cli -hf SpacemiT/Qwen3-VL-30B-A3B:Q4_1
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SpacemiT/Qwen3-VL-30B-A3B:Q4_1 # Run inference directly in the terminal: llama cli -hf SpacemiT/Qwen3-VL-30B-A3B:Q4_1
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf SpacemiT/Qwen3-VL-30B-A3B:Q4_1 # Run inference directly in the terminal: ./llama-cli -hf SpacemiT/Qwen3-VL-30B-A3B:Q4_1
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf SpacemiT/Qwen3-VL-30B-A3B:Q4_1 # Run inference directly in the terminal: ./build/bin/llama-cli -hf SpacemiT/Qwen3-VL-30B-A3B:Q4_1
Use Docker
docker model run hf.co/SpacemiT/Qwen3-VL-30B-A3B:Q4_1
- LM Studio
- Jan
- vLLM
How to use SpacemiT/Qwen3-VL-30B-A3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SpacemiT/Qwen3-VL-30B-A3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SpacemiT/Qwen3-VL-30B-A3B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/SpacemiT/Qwen3-VL-30B-A3B:Q4_1
- Ollama
How to use SpacemiT/Qwen3-VL-30B-A3B with Ollama:
ollama run hf.co/SpacemiT/Qwen3-VL-30B-A3B:Q4_1
- Unsloth Desktop
- Pi
How to use SpacemiT/Qwen3-VL-30B-A3B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SpacemiT/Qwen3-VL-30B-A3B:Q4_1
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "SpacemiT/Qwen3-VL-30B-A3B:Q4_1" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use SpacemiT/Qwen3-VL-30B-A3B with Docker Model Runner:
docker model run hf.co/SpacemiT/Qwen3-VL-30B-A3B:Q4_1
- Lemonade
How to use SpacemiT/Qwen3-VL-30B-A3B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SpacemiT/Qwen3-VL-30B-A3B:Q4_1
Run and chat with the model
lemonade run user.Qwen3-VL-30B-A3B-Q4_1
List all available models
lemonade list
- Hermes Agent
How to use SpacemiT/Qwen3-VL-30B-A3B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SpacemiT/Qwen3-VL-30B-A3B:Q4_1
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 SpacemiT/Qwen3-VL-30B-A3B:Q4_1
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use SpacemiT/Qwen3-VL-30B-A3B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SpacemiT/Qwen3-VL-30B-A3B:Q4_1
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 "SpacemiT/Qwen3-VL-30B-A3B:Q4_1" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload Qwen3-VL-30B-A3B package files
Browse files
README.md
CHANGED
|
@@ -1,3 +1,69 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
pipeline_tag: image-text-to-text
|
| 4 |
+
library_name: llama.cpp
|
| 5 |
+
tags: [qwen3-vl, spacemit, k1, k3, gguf, onnxruntime, moe]
|
| 6 |
---
|
| 7 |
+
|
| 8 |
+
# Qwen3-VL-30B-A3B for SpacemiT K1/K3
|
| 9 |
+
|
| 10 |
+
This is a SpacemiT deployment package for the Qwen3-VL 30B-A3B mixture-of-experts vision-language model. The upstream model is from the Qwen Team and is designed for multimodal understanding across text, images, and video, including visual question answering, document understanding, OCR-style reading, coding, and agent workflows. See the [Qwen3-VL Technical Report](https://arxiv.org/abs/2511.21631) and the [official Qwen3-VL announcement](https://qwen.ai/blog?id=qwen3-vl).
|
| 11 |
+
|
| 12 |
+
The package contains a Q4_1 GGUF text decoder and an ONNX vision encoder. The ONNX file is renamed to `qwen3_vl_vision.onnx` for a short, stable deployment name. The original Qwen3-VL model and this deployment package use the Apache-2.0 license; runtime dependency licenses remain with their upstream projects.
|
| 13 |
+
|
| 14 |
+
## Files
|
| 15 |
+
|
| 16 |
+
- `qwen3vl-30b-text-q4_1.gguf`: Q4_1 GGUF text/MoE decoder.
|
| 17 |
+
- `qwen3_vl_vision.onnx`: ONNX vision encoder.
|
| 18 |
+
- `configs/K1/config.json` and `configs/K3/config.json`: platform-specific SpaceMIT EP settings.
|
| 19 |
+
|
| 20 |
+
## Prerequisites
|
| 21 |
+
|
| 22 |
+
Install the [SpacemiT ONNX Runtime release](https://github.com/spacemit-com/onnxruntime/releases) and build or unpack the SMT-enabled [SpacemiT llama.cpp](https://github.com/spacemit-com/llama.cpp). Prebuilt RISC-V packages can be unpacked directly. To build llama.cpp from source, clone recursively, set `RISCV_ROOT_PATH` and `SPACEMIT_ORT_DIR`, then run:
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
bash build_spacemit.sh
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
On the board, set the runtime library path before starting the server:
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
export MODEL_DIR=/path/to/Qwen3-VL-30B-A3B-SpacemiT
|
| 32 |
+
export LLAMA_DIR=/path/to/llama.cpp-installed
|
| 33 |
+
export ORT_DIR=/path/to/spacemit-ort.riscv64.2.0.6
|
| 34 |
+
export LD_LIBRARY_PATH="$LLAMA_DIR/lib:$ORT_DIR/lib:${LD_LIBRARY_PATH:-}"
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## Supported platforms and core affinity
|
| 38 |
+
|
| 39 |
+
K1 uses AI cores `0;1;2;3` and four threads. Use `configs/K1/config.json` and `-t 4`.
|
| 40 |
+
|
| 41 |
+
K3 uses AI cores `8;9;10;11;12;13;14;15` and eight threads. Use `configs/K3/config.json` and `-t 8`.
|
| 42 |
+
|
| 43 |
+
Do not interchange the configuration files: each `ep_config` pins the SpaceMIT Execution Provider to the correct board's AI cores.
|
| 44 |
+
|
| 45 |
+
## Run on board
|
| 46 |
+
|
| 47 |
+
K1:
|
| 48 |
+
|
| 49 |
+
```bash
|
| 50 |
+
"$LLAMA_DIR/bin/llama-server" \
|
| 51 |
+
-m "$MODEL_DIR/qwen3vl-30b-text-q4_1.gguf" \
|
| 52 |
+
--media-backend smt \
|
| 53 |
+
--smt-config-dir "$MODEL_DIR/configs/K1" \
|
| 54 |
+
-t 4 --host 0.0.0.0 --port 8080 --warmup
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
K3 uses the same command with `configs/K3` and `-t 8`.
|
| 58 |
+
|
| 59 |
+
Send an OpenAI-compatible `POST /v1/chat/completions` request containing an image data URL and a prompt such as `Describe the image content.`. Set `temperature` to `0`, use a small `max_tokens` value for a smoke test, and disable Qwen thinking with `chat_template_kwargs: {"enable_thinking": false}`.
|
| 60 |
+
|
| 61 |
+
Example request:
|
| 62 |
+
|
| 63 |
+
```bash
|
| 64 |
+
curl http://127.0.0.1:8080/v1/chat/completions \
|
| 65 |
+
-H 'Content-Type: application/json' \
|
| 66 |
+
-d '{"messages":[{"role":"user","content":[{"type":"text","text":"Describe the image content."},{"type":"image_url","image_url":{"url":"data:image/jpeg;base64,<BASE64_IMAGE>"}}]}],"max_tokens":64,"temperature":0,"chat_template_kwargs":{"enable_thinking":false}}'
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
The included `humanspeech.jpg` can be used for a basic end-to-end smoke test. Replace `<BASE64_IMAGE>` with its base64-encoded contents. The response should be HTTP 200 with a natural-language description; this is a functional check, not an accuracy benchmark.
|