-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathrun_tp_MASTER_DSV4-FP4-MTP.sh
More file actions
executable file
·42 lines (38 loc) · 1.8 KB
/
Copy pathrun_tp_MASTER_DSV4-FP4-MTP.sh
File metadata and controls
executable file
·42 lines (38 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
# ============================================================================
# TP M A S T E R (leader, rank 0) -> run on .66 (10.0.1.1)
#
# MODEL : DeepSeek-V4-Flash FP4-FP8-native (SINGLE 156GB file)
# MLA attention MIRRORED (DP), MoE/FFN tensor-split across .66 + .67.
# PLAIN decode (no MTP) -- this is the 2-box baseline to beat.
# ============================================================================
set -euo pipefail
MODEL="$HOME/Models/DeepSeek-V4-Flash-GGUF/FP4/DeepSeek-V4-Flash-FP4-FP8-native-MTP.gguf"
PORT=8080
API_KEY="test1234@X"
MASTER_ADDR="10.0.1.1"
MASTER_PORT=29658
IFACE="enp1s0f0np0"
CTX=8192
cd "$(dirname "$0")"
[ -d "$HOME/nccl-align" ] && export LD_LIBRARY_PATH="$HOME/nccl-align:${LD_LIBRARY_PATH:-}"
export NCCL_SOCKET_IFNAME="$IFACE"
export GGML_TP_NRANKS=2
export GGML_TP_RANK=0
export GGML_TP_MASTER_ADDR="$MASTER_ADDR"
export GGML_TP_MASTER_PORT="$MASTER_PORT"
export DSV4_BATCHED_COMPRESSOR=1 # 배치 compressor (b0 cap 수정)
export DSV4_MULTISLOT=1 # 동시 슬롯 배치 → 집계 처리량
export DSV4_VERIFY_REUSE=1 # MTP verify graph 재사용 (graphs reused=0 해결)
echo "=============================================================="
echo " TP MASTER (rank 0) DSV4-FP4 PLAIN (no MTP)"
echo " model : $MODEL"
echo " serve : http://0.0.0.0:$PORT (api-key: $API_KEY)"
echo " peer : $IFACE @ $MASTER_ADDR (NCCL $MASTER_PORT / ctrl $((MASTER_PORT+1)))"
echo "=============================================================="
exec build/bin/llama-server \
-m "$MODEL" \
-c "$CTX" -ngl 999 -fa on -sm tensor -fit off --no-warmup --no-mmap \
-b 512 -ub 256 -ctk f16 -ctv f16 \
--spec-type draft-mtp --spec-draft-n-max 2 --spec-draft-p-min 0.0 --parallel 2 \
--host 0.0.0.0 --port "$PORT" --api-key "$API_KEY"