Created
July 17, 2026 10:43
-
-
Save mjasnikovs/fe28b4fb87dc7c9f5cfe135829dae672 to your computer and use it in GitHub Desktop.
Qwen 3.6 config example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment