# 先清理刚才错误安装到系统盘的文件
rm -rf /root/.local/share/strata
rm -f /root/.local/bin/strata
cd /mnt/sdb1
curl -fsSL --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh
# 用环境变量把程序和数据都指到 sdb1 上
STRATA_DATA_DIR=/mnt/sdb1/strata \
STRATA_BIN_DIR=/mnt/sdb1/bin \
sh /mnt/sdb1/install.sh
/mnt/sdb1/bin/strata launch
1. 拆分 Unsloth GGUF 合并张量(字节级无损切片)
python3 tools/qwen4_split_gguf.py
–gguf Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf
–out UD-IQ4_XS-trunk40.gguf
2. 打包为 Strata 原生 pack
python3 tools/iq_pack.py –gguf UD-IQ4_XS-trunk40.gguf –compat-bf16 –out pack/UD-IQ4_XS
3. 打包官方 MTP 投机解码运行时
python3 tools/mtp_qwen4_rt.py –gguf mtp-Qwen4-35B-A3B-Q8_0.gguf –out pack/mtp-rt
4. 核心启动参数(256K 原生上下文;1M 改 –max-context 1048576 并加 –rope-scaling yarn –rope-scale 4)
strata –serve
–pack pack/UD-IQ4_XS
–native UD-IQ4_XS-trunk40.gguf
–native-dense-gguf UD-IQ4_XS-trunk40.gguf
–ple-gguf Qwen4-35B-A3B-UD-Q4_K_XL-00002-of-00002.gguf
–ple-io ram
–expert-profile expert-profile-40×256.bin
–expert-cache auto
–prefill 4096
–max-context 262144
–kv int8
–kv-resident 32768
–pool-workers 15
–vram-reserve-mib 256
–mtp pack/mtp-rt
–spec 3
–spec-min-p 0.5