Text Generation
PEFT
Safetensors
GGUF
English
transit
kiosk
tool-use
agent
metrollm-bench
qwen
lora
quantized
conversational
Instructions to use continker/Qwen3.5-9B-metro-v23 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use continker/Qwen3.5-9B-metro-v23 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use continker/Qwen3.5-9B-metro-v23 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 continker/Qwen3.5-9B-metro-v23:Q4_K_M # Run inference directly in the terminal: llama cli -hf continker/Qwen3.5-9B-metro-v23:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf continker/Qwen3.5-9B-metro-v23:Q4_K_M # Run inference directly in the terminal: llama cli -hf continker/Qwen3.5-9B-metro-v23:Q4_K_M
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 continker/Qwen3.5-9B-metro-v23:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf continker/Qwen3.5-9B-metro-v23:Q4_K_M
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 continker/Qwen3.5-9B-metro-v23:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf continker/Qwen3.5-9B-metro-v23:Q4_K_M
Use Docker
docker model run hf.co/continker/Qwen3.5-9B-metro-v23:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use continker/Qwen3.5-9B-metro-v23 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "continker/Qwen3.5-9B-metro-v23" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "continker/Qwen3.5-9B-metro-v23", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/continker/Qwen3.5-9B-metro-v23:Q4_K_M
- Ollama
How to use continker/Qwen3.5-9B-metro-v23 with Ollama:
ollama run hf.co/continker/Qwen3.5-9B-metro-v23:Q4_K_M
- Unsloth Studio
How to use continker/Qwen3.5-9B-metro-v23 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for continker/Qwen3.5-9B-metro-v23 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for continker/Qwen3.5-9B-metro-v23 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for continker/Qwen3.5-9B-metro-v23 to start chatting
- Pi
How to use continker/Qwen3.5-9B-metro-v23 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf continker/Qwen3.5-9B-metro-v23:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "continker/Qwen3.5-9B-metro-v23:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use continker/Qwen3.5-9B-metro-v23 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf continker/Qwen3.5-9B-metro-v23:Q4_K_M
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 continker/Qwen3.5-9B-metro-v23:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use continker/Qwen3.5-9B-metro-v23 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf continker/Qwen3.5-9B-metro-v23:Q4_K_M
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 "continker/Qwen3.5-9B-metro-v23:Q4_K_M" \ --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"
- Docker Model Runner
How to use continker/Qwen3.5-9B-metro-v23 with Docker Model Runner:
docker model run hf.co/continker/Qwen3.5-9B-metro-v23:Q4_K_M
- Lemonade
How to use continker/Qwen3.5-9B-metro-v23 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull continker/Qwen3.5-9B-metro-v23:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.5-9B-metro-v23-Q4_K_M
List all available models
lemonade list
Remco Hendriks commited on
Add model card for continker/Qwen3.5-9B-metro-v23
Browse files
README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model: Qwen/Qwen3.5-9B
|
| 6 |
+
tags:
|
| 7 |
+
- transit
|
| 8 |
+
- kiosk
|
| 9 |
+
- tool-use
|
| 10 |
+
- agent
|
| 11 |
+
- metrollm-bench
|
| 12 |
+
- qwen
|
| 13 |
+
- lora
|
| 14 |
+
- gguf
|
| 15 |
+
- quantized
|
| 16 |
+
library_name: peft
|
| 17 |
+
pipeline_tag: text-generation
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# Qwen3.5-9B + metro-v23 LoRA
|
| 21 |
+
|
| 22 |
+
Domain-specialised tool-using agent for transit-kiosk tasks: routing, fare calculation,
|
| 23 |
+
disruption advisories, accessibility, multilingual cultural notes, multi-turn context tracking,
|
| 24 |
+
and policy adaptation across 6 metro systems (MARTA, BART, CTA, Doha, Taipei MRT, Beijing
|
| 25 |
+
Subway).
|
| 26 |
+
|
| 27 |
+
QLoRA r=16 fine-tune of `Qwen/Qwen3.5-9B` on 790 distilled traces from
|
| 28 |
+
Qwen3.5-27B and Qwen3.5-35B-A3B teachers (filtered to tier1 ≥ 90% per case, deduplicated
|
| 29 |
+
by case_id, evaluated on the [MetroLLM-Bench](https://github.com/...) v23 harness).
|
| 30 |
+
|
| 31 |
+
## Files
|
| 32 |
+
|
| 33 |
+
| File | Purpose |
|
| 34 |
+
|---|---|
|
| 35 |
+
| `Qwen3.5-9B-metro-v23-Q4_K_M.gguf` (5.3 GB) | Runtime artifact for llama.cpp / Ollama |
|
| 36 |
+
| `adapter/` | Raw LoRA adapter (use with PEFT + base Qwen3.5-9B) |
|
| 37 |
+
| `training_summary.json` | Hyperparameters, seed, dataset version |
|
| 38 |
+
|
| 39 |
+
## Eval (v23, 6 systems, Haiku judge for Tier 2)
|
| 40 |
+
|
| 41 |
+
**Cross-system average**: Tier-1 92.4, Composite 90.0
|
| 42 |
+
(+2.2 T1 / +1.4 Comp vs base Qwen3.5-9B)
|
| 43 |
+
|
| 44 |
+
| System | Tier-1 % |
|
| 45 |
+
|---|---:|
|
| 46 |
+
| MARTA | 94.0 |
|
| 47 |
+
| BART | 90.7 |
|
| 48 |
+
| CTA | 93.4 |
|
| 49 |
+
| DOHA | 93.1 |
|
| 50 |
+
| TAIPEI | 92.6 |
|
| 51 |
+
| BEIJING | 90.7 |
|
| 52 |
+
|
| 53 |
+
## Quickstart (llama.cpp)
|
| 54 |
+
|
| 55 |
+
```bash
|
| 56 |
+
huggingface-cli download continker/Qwen3.5-9B-metro-v23 \
|
| 57 |
+
Qwen3.5-9B-metro-v23-Q4_K_M.gguf --local-dir ./models
|
| 58 |
+
|
| 59 |
+
llama-server -m ./models/Qwen3.5-9B-metro-v23-Q4_K_M.gguf \
|
| 60 |
+
--port 8080 --ctx-size 32768 --n-gpu-layers 999
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
## Quickstart (PEFT adapter, Python)
|
| 64 |
+
|
| 65 |
+
```python
|
| 66 |
+
from peft import PeftModel
|
| 67 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 68 |
+
|
| 69 |
+
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-9B", torch_dtype="bfloat16")
|
| 70 |
+
model = PeftModel.from_pretrained(base, "continker/Qwen3.5-9B-metro-v23", subfolder="adapter")
|
| 71 |
+
tokenizer = AutoTokenizer.from_pretrained("continker/Qwen3.5-9B-metro-v23", subfolder="adapter")
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
## Training
|
| 75 |
+
|
| 76 |
+
- Base: `Qwen/Qwen3.5-9B`
|
| 77 |
+
- Method: QLoRA, rank=16, alpha=32, dropout=0.05
|
| 78 |
+
- Targets: q/k/v/o + gate/up/down projections
|
| 79 |
+
- Optimizer: AdamW, lr=2e-4, cosine, warmup 5%
|
| 80 |
+
- Epochs: 3, effective batch 8 (per_device_train_batch_size=2 × grad_accum=4)
|
| 81 |
+
- Max sequence length: 4096
|
| 82 |
+
- Seed: 42 (default; multi-seed CI in progress for 27B)
|
| 83 |
+
- Dataset: 790 distilled examples, see [continker/metrollm-bench-train-data-v23](https://huggingface.co/datasets/continker/metrollm-bench-train-data-v23)
|
| 84 |
+
|
| 85 |
+
## Limitations
|
| 86 |
+
|
| 87 |
+
- Trained on 6 metro systems; generalisation to other systems untested.
|
| 88 |
+
- Tool-use schema is specific to the MetroLLM-Bench mock server (route_planner,
|
| 89 |
+
fare_calculator, station_info, disruption_feed, knowledge_base,
|
| 90 |
+
submit_assistant_state).
|
| 91 |
+
- Quantised to 4-bit (Q4_K_M); for full-precision behaviour use the adapter on
|
| 92 |
+
bf16 base weights.
|
| 93 |
+
|
| 94 |
+
## Citation
|
| 95 |
+
|
| 96 |
+
```
|
| 97 |
+
@misc{metrollm-bench-2026,
|
| 98 |
+
title={MetroLLM-Bench: Evaluating LLMs as Prompt-Driven Transit Kiosk Agents},
|
| 99 |
+
author={Hendriks, Remco and contributors},
|
| 100 |
+
year={2026},
|
| 101 |
+
publisher={HuggingFace},
|
| 102 |
+
howpublished={\url{https://huggingface.co/continker}}
|
| 103 |
+
}
|
| 104 |
+
```
|