Instructions to use merileijona/Qwen3.5-27B-IQ4_XS-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use merileijona/Qwen3.5-27B-IQ4_XS-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="merileijona/Qwen3.5-27B-IQ4_XS-GGUF", filename="model_IQ4_XS.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use merileijona/Qwen3.5-27B-IQ4_XS-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS # Run inference directly in the terminal: llama-cli -hf merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS # Run inference directly in the terminal: llama-cli -hf merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS
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 merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS # Run inference directly in the terminal: ./llama-cli -hf merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS
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 merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama-cli -hf merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS
Use Docker
docker model run hf.co/merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS
- LM Studio
- Jan
- Ollama
How to use merileijona/Qwen3.5-27B-IQ4_XS-GGUF with Ollama:
ollama run hf.co/merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS
- Unsloth Studio
How to use merileijona/Qwen3.5-27B-IQ4_XS-GGUF 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 merileijona/Qwen3.5-27B-IQ4_XS-GGUF 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 merileijona/Qwen3.5-27B-IQ4_XS-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for merileijona/Qwen3.5-27B-IQ4_XS-GGUF to start chatting
- Pi
How to use merileijona/Qwen3.5-27B-IQ4_XS-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS
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": "merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use merileijona/Qwen3.5-27B-IQ4_XS-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS
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 merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS
Run Hermes
hermes
- Docker Model Runner
How to use merileijona/Qwen3.5-27B-IQ4_XS-GGUF with Docker Model Runner:
docker model run hf.co/merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS
- Lemonade
How to use merileijona/Qwen3.5-27B-IQ4_XS-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull merileijona/Qwen3.5-27B-IQ4_XS-GGUF:IQ4_XS
Run and chat with the model
lemonade run user.Qwen3.5-27B-IQ4_XS-GGUF-IQ4_XS
List all available models
lemonade list
llm.create_chat_completion(
messages = "No input example has been defined for this model task."
)Qwen3.5-27B โ IQ4_XS GGUF
Quantized GGUF version of Qwen/Qwen3.5-27B, converted and quantized to IQ4_XS format (~13 GB) for CPU inference.
Quantized by @merileijona โ GitHub: juhanimerilehto
Quantization
| Property | Value |
|---|---|
| Format | IQ4_XS |
| Approx. size | ~13 GB |
| Base model | Qwen/Qwen3.5-27B |
| Converter | llama.cpp |
IQ4_XS is an importance-matrix quant (imatrix). It uses calibration data to allocate bits where they matter most, giving better quality at the same size compared to standard K-quants.
Intended use
This quantization is intended for local, CPU-only inference on high-RAM workstations where GPU VRAM is insufficient to run the full model. It has not been formally benchmarked. The settings and usage notes below reflect the actual configuration used during testing.
Usage with llama-cpp-python
from llama_cpp import Llama
llm = Llama(
model_path="model_IQ4_XS.gguf",
n_gpu_layers=0, # 0 = CPU-only
n_ctx=4096,
n_threads=16,
verbose=False,
)
response = llm(
"Your prompt here",
max_tokens=2048,
temperature=0.7,
top_p=0.9,
min_p=0.01,
)
print(response["choices"][0]["text"])
Tested configuration
| Setting | Value |
|---|---|
n_gpu_layers |
0 (CPU-only) |
n_ctx |
4096 |
n_threads |
16 |
temperature |
0.7 |
top_p |
0.9 |
min_p |
0.01 |
max_tokens |
2048 |
Test hardware:
- CPU: AMD Ryzen 9 5950X (16 cores)
- RAM: 128 GB
- OS: Windows 11
- GPU: Not used for inference
Token generation speed was not formally measured. The model ran stably at the settings above with no observed repetition or loop issues.
Notes
min_p=0.01is recommended to prevent token loops at longer outputs- The F16 intermediate GGUF (~54 GB) is not included; only the final quantized file
- For GPU-assisted inference, increase
n_gpu_layersto offload layers to VRAM
- Downloads last month
- 24
4-bit
Model tree for merileijona/Qwen3.5-27B-IQ4_XS-GGUF
Base model
Qwen/Qwen3.5-27B
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="merileijona/Qwen3.5-27B-IQ4_XS-GGUF", filename="model_IQ4_XS.gguf", )