Instructions to use roshan-soni/qwen-3.5-2b-q4-k-m 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 roshan-soni/qwen-3.5-2b-q4-k-m 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 roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M # Run inference directly in the terminal: llama cli -hf roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M # Run inference directly in the terminal: llama cli -hf roshan-soni/qwen-3.5-2b-q4-k-m: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 roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf roshan-soni/qwen-3.5-2b-q4-k-m: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 roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M
Use Docker
docker model run hf.co/roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use roshan-soni/qwen-3.5-2b-q4-k-m with Ollama:
ollama run hf.co/roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M
- Unsloth Desktop
- Pi
How to use roshan-soni/qwen-3.5-2b-q4-k-m with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M
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": "roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use roshan-soni/qwen-3.5-2b-q4-k-m with Docker Model Runner:
docker model run hf.co/roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M
- Lemonade
How to use roshan-soni/qwen-3.5-2b-q4-k-m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M
Run and chat with the model
lemonade run user.qwen-3.5-2b-q4-k-m-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use roshan-soni/qwen-3.5-2b-q4-k-m with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf roshan-soni/qwen-3.5-2b-q4-k-m: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 roshan-soni/qwen-3.5-2b-q4-k-m:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use roshan-soni/qwen-3.5-2b-q4-k-m with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf roshan-soni/qwen-3.5-2b-q4-k-m: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 "roshan-soni/qwen-3.5-2b-q4-k-m: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"
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
- hi
|
| 7 |
+
library_name: llama.cpp
|
| 8 |
+
tags:
|
| 9 |
+
- gguf
|
| 10 |
+
- llama.cpp
|
| 11 |
+
- qwen
|
| 12 |
+
- quantized
|
| 13 |
+
- q4_k_m
|
| 14 |
+
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 15 |
+
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Qwen2.5-1.5B-Instruct Q4_K_M GGUF
|
| 19 |
+
|
| 20 |
+
This repository contains a GGUF quantized version of **Qwen2.5-1.5B-Instruct** optimized for local inference with llama.cpp and compatible applications.
|
| 21 |
+
|
| 22 |
+
## Model Details
|
| 23 |
+
|
| 24 |
+
* Base Model: Qwen2.5-1.5B-Instruct
|
| 25 |
+
* Format: GGUF
|
| 26 |
+
* Quantization: Q4_K_M
|
| 27 |
+
* Intended Use: Local inference, experimentation, educational projects, and edge deployment
|
| 28 |
+
|
| 29 |
+
## Quantization Information
|
| 30 |
+
|
| 31 |
+
The model was converted from the original Hugging Face checkpoint to GGUF format and quantized using llama.cpp's `Q4_K_M` quantization scheme.
|
| 32 |
+
|
| 33 |
+
Q4_K_M provides a strong balance between:
|
| 34 |
+
|
| 35 |
+
* Model quality
|
| 36 |
+
* Memory usage
|
| 37 |
+
* Inference speed
|
| 38 |
+
|
| 39 |
+
making it suitable for consumer hardware and mobile devices.
|
| 40 |
+
|
| 41 |
+
## Files
|
| 42 |
+
|
| 43 |
+
| File | Description |
|
| 44 |
+
| ---------------- | --------------------------- |
|
| 45 |
+
| qwen-q4_k_m.gguf | Q4_K_M quantized GGUF model |
|
| 46 |
+
|
| 47 |
+
## Usage with llama.cpp
|
| 48 |
+
|
| 49 |
+
```bash
|
| 50 |
+
./llama-cli \
|
| 51 |
+
-m qwen-q4_k_m.gguf \
|
| 52 |
+
-p "Explain machine learning in simple terms."
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
## Usage with Ollama
|
| 56 |
+
|
| 57 |
+
Create a Modelfile:
|
| 58 |
+
|
| 59 |
+
```text
|
| 60 |
+
FROM ./qwen-q4_k_m.gguf
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
Then:
|
| 64 |
+
|
| 65 |
+
```bash
|
| 66 |
+
ollama create qwen-local -f Modelfile
|
| 67 |
+
ollama run qwen-local
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
## Hardware Requirements
|
| 71 |
+
|
| 72 |
+
Approximate requirements:
|
| 73 |
+
|
| 74 |
+
* Disk Space: ~1–2 GB
|
| 75 |
+
* RAM: 2–4 GB minimum
|
| 76 |
+
* Recommended RAM: 4 GB+
|
| 77 |
+
|
| 78 |
+
Actual requirements depend on context length and runtime settings.
|
| 79 |
+
|
| 80 |
+
## Base Model
|
| 81 |
+
|
| 82 |
+
This repository contains a quantized derivative of the original Qwen model. Please refer to the original model repository for training details, benchmarks, limitations, and licensing information.
|
| 83 |
+
|
| 84 |
+
## Disclaimer
|
| 85 |
+
|
| 86 |
+
This repository only provides a quantized GGUF conversion of the original model. All credit for model training and development belongs to the original Qwen team.
|