cd /news/artificial-intelligence/qwen-3-6-config-example · home topics artificial-intelligence article
[ARTICLE · art-66001] src=gist.github.com ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Qwen 3.6 config example

A developer shared a configuration example for running Qwen 3.6 with llama-turboquant, a Docker-based CUDA inference container. The setup includes GPU offloading, flash attention, speculative decoding with MTP and ngram-mod, and memory limits of 30GB RAM with 46GB swap.

read2 min views22 publishedJul 17, 2026

| #!/usr/bin/env bash | | | set -euo pipefail | | | cd "$(dirname "$0")" | | | export CUDA_MALLOC_ASYNC_SUPPORTED=1 | | | export GGML_CUDA_FORCE_MMQ=1 | |

| IMAGE="${IMAGE:-llama-turboquant:cuda}" | |
| HOST_PORT="${HOST_PORT:-8080}" | |
| NETWORK="${NETWORK:-runner-network}" | |
| STATIC_IP="${STATIC_IP:-172.18.0.10}" | |

| # 65 layers | |

| MODEL_FILE="${MODEL_FILE:-Qwen3.6-27B-NVFP4-MTP.gguf}" | |
| MMPROJ_FILE="${MMPROJ_FILE:-mmproj-Qwen3.6-27B-F16.gguf}" | |
| N_GPU_LAYERS="${N_GPU_LAYERS:-999}" | |
| NAME="${NAME:-llama-turboquant}" | |
| if docker inspect "${NAME}" >/dev/null 2>&1; then | |
| docker rm -f "${NAME}" >/dev/null | |

| fi | | | docker create \ | |

| --name "${NAME}" \ | |
| --restart=unless-stopped \ | |
| --gpus all \ | |
| -e CUDA_DEVICE_ORDER=PCI_BUS_ID \ | |
| -e CUDA_VISIBLE_DEVICES=1,0 \ | |
| --memory=30g \ | |
| --memory-swap=46g \ | |
| --cap-add=IPC_LOCK \ | |
| --ulimit memlock=-1:-1 \ | |
| --ulimit core=0 \ | |
| -e TURBO_AUTO_ASYMMETRIC=0 \ | |
| -p "${HOST_PORT}:8080" \ | |
| --network "${NETWORK}" \ | |
| --ip "${STATIC_IP}" \ | |
| -v "$(pwd)/models:/models:ro" \ | |
| -v "$(pwd)/scripts:/scripts:ro" \ | |

| --entrypoint /scripts/entrypoint.sh \ | |

| "${IMAGE}" \ | |
| --model "/models/${MODEL_FILE}" \ | |
| --mmproj "/models/${MMPROJ_FILE}" \ | |
| --mmproj-offload \ | |
| --host 0.0.0.0 \ | |
| --port 8080 \ | |
| --metrics \ | |
| --n-gpu-layers "${N_GPU_LAYERS}" \ | |
| --main-gpu 0 \ | |
| --split-mode layer \ | |
| --tensor-split 40,25 \ | |

| -fit off \ | | | --flash-attn on \ | | | -c 120000 \ | |

| -n -1 \ | |
| --parallel 1 \ | |

| -ctk q8_0 \ | | | -ctv turbo3 \ | | | -ctkd q8_0 \ | | | -ctvd turbo3 \ | |

| --kv-unified \ | |
| --no-mmap \ | |
| --mlock \ | |
| --jinja \ | |
| --reasoning off \ | |
| --spec-type draft-mtp,ngram-mod \ | |
| --spec-draft-n-max 3 \ | |
| --spec-ngram-mod-n-match 24 \ | |
| --spec-ngram-mod-n-min 4 \ | |
| --spec-ngram-mod-n-max 48 \ | |
| --temp 0.7 \ | |
| --top-p 0.8 \ | |
| --top-k 20 \ | |
| --min-p 0.0 \ | |
| --presence-penalty 1.5 \ | |
| --repeat-penalty 1.0 \ | |

| -b 1024 \ | | | -ub 512 \ | |

| --cache-idle-slots \ | |
| --cache-ram 16384 \ | |
| --cache-reuse 256 \ | |
| --threads 8 \ | |
| --cpu-range 0-7 \ | |
| --timeout 360 \ | |

| "$@" >/dev/null | | | docker start -a "${NAME}" |

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @qwen 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/qwen-3-6-config-exam…] indexed:0 read:2min 2026-07-17 ·