Tencent Hunyuan Hy4-Flash (224B-A12B · Engram + DFly2) & Ant Group LingSante-3.1-air-VL (124B-A5.5B) / Flash (560B-A25B) Local Launcher (run-hy4-flash-and-lingsante31-medical.sh)
Launches Tencent Hunyuan Hy4-Flash (224B total / 12B active with 64B Engram n-gram hash table, LatentMoE, 1:3 SWA 1/6 KV footprint & 0.85B DFly2 speculator) via vLLM FP8 or AngelSlim GGUF with CPU Engram offload, or serves Ant Group’s MIT-licensed LingSante-3.1-air-VL (124B-A5.5B) medical multimodal MoE completely offline.
Tencent Hunyuan Hy4-Flash (224B-A12B · Engram + DFly2) & Ant Group LingSante-3.1-air-VL (124B-A5.5B) / Flash (560B-A25B) Local Launcher
Launches Tencent Hunyuan Hy4-Flash (224B total / 12B active with 64B Engram n-gram hash table, LatentMoE, 1:3 SWA 1/6 KV footprint & 0.85B DFly2 speculator) via vLLM FP8 or AngelSlim GGUF with CPU Engram offload, or serves Ant Group’s MIT-licensed LingSante-3.1-air-VL (124B-A5.5B) medical multimodal MoE completely offline.
#!/usr/bin/env bash
# Tinker AI — Tencent Hy4-Flash (224B-A12B · Engram + LatentMoE + DFly2) & Ant LingSante-3.1 Medical MoE Launcher (Guide #64)
set -euo pipefail
MODE="vllm_hy4_flash_dfly2_fp8"
HY4_GGUF="./models/AngelSlim-Hy4-flash-Q4_K_M.gguf"
LINGSANTE="inclusionAI/LingSante-3.1-air-VL"
CTX="131072"
PORT="8000"
echo "=== [Host Memory & GPU Check] ==="
nvidia-smi --query-gpu=name,memory.total --format=csv,noheader 2>/dev/null || echo "[INFO] Running on Unified Memory / Apple Silicon / CPU-GPU Hybrid"
if [ "$MODE" = "vllm_hy4_flash_dfly2_fp8" ]; then
echo "=== [vLLM Hy4-Flash FP8 + DFly2 0.85B Speculator] Serving tencent/Hy4-flash-FP8 (ctx=$CTX) ==="
exec vllm serve tencent/Hy4-flash-FP8 \
--trust-remote-code \
--kv-cache-dtype fp8 \
--max-model-len "$CTX" \
--reasoning-parser hy_v4 \
--speculative-config '{"model":"tencent/Hy4-flash-DFly2-0.85B","num_speculative_tokens":4}' \
--gpu-memory-utilization 0.90 --port "$PORT"
elif [ "$MODE" = "llamacpp_hy4_flash_engram_offload" ]; then
echo "=== [llama.cpp AngelSlim GGUF] Keeping 12B active layers + 1/6 SWA KV on GPU while pinning 64B Engram tables to Host RAM ==="
exec llama-server -m "$HY4_GGUF" \
-ngl 99 -fa on \
-ot "engram\..*=CPU" \
--cache-type-k q8_0 --cache-type-v q8_0 \
-c "$CTX" --host 127.0.0.1 --port "$PORT"
elif [ "$MODE" = "vllm_lingsante31_air_vl" ]; then
echo "=== [Air-Gapped Medical AI] Serving $LINGSANTE (124B-A5.5B MIT Multimodal MoE, ctx=$CTX) ==="
export HF_HUB_OFFLINE=1
exec vllm serve "$LINGSANTE" \
--trust-remote-code \
--kv-cache-dtype fp8 \
--max-model-len "$CTX" \
--limit-mm-per-prompt '{"image": 6, "video": 1}' \
--gpu-memory-utilization 0.88 --port "$PORT"
else
echo "Unknown RUN_MODE=$MODE (expected: vllm_hy4_flash_dfly2_fp8 | llamacpp_hy4_flash_engram_offload | vllm_lingsante31_air_vl)" >&2
exit 1
fi
Customizable Parameter Reference for run-hy4-flash-and-lingsante31-medical.sh
This SH artifact exposes 5 template variables compiled client-side in your browser.
| Template Token | Parameter Description | Verified Default | Example Format |
|---|---|---|---|
{{RUN_MODE}} | Mode (vllm_hy4_flash_dfly2_fp8 | llamacpp_hy4_flash_engram_offload | vllm_lingsante31_air_vl) | vllm_hy4_flash_dfly2_fp8 | vllm_hy4_flash_dfly2_fp8 |
{{HY4_GGUF_PATH}} | AngelSlim Hy4-Flash GGUF Path (llama.cpp mode) | ./models/AngelSlim-Hy4-flash-Q4_K_M.gguf | ./models/AngelSlim-Hy4-flash-Q4_K_M.gguf |
{{LINGSANTE_REPO}} | Ant LingSante Hugging Face Repo | inclusionAI/LingSante-3.1-air-VL | inclusionAI/LingSante-3.1-air-VL |
{{CTX_TOKENS}} | Context Window (262144 for LingSante Air / up to 1048576 for Hy4-Flash) | 131072 | 131072 |
{{API_PORT}} | OpenAI-Compatible API Port | 8000 | 8000 |
Verified Environment for "November 2026 Ultra-Sparse Multimodal MoEs: Tencent Hunyuan Hy4-Flash (224B-A12B · 64B Engram · LatentMoE · 1/6 KV Cache · DFly2) & Ant Group LingSante-3.1-air-VL (124B-A5.5B) / Flash (560B-A25B) Local Deployment"
96GB RTX PRO 6000 / 128GB MacBook Pro M5 Max & RTX Spark / 192GB GMKtec EVO-X5 Pro / 512GB Mac Studio M5 Ultra & 748GB GB300 Workstation
Once weights are downloaded from Hugging Face (tencent/Hy4-flash-FP8, AngelSlim/Hy4-flash-GGUF, inclusionAI/LingSante-3.1-air-VL), set HF_HUB_OFFLINE=1 to run 1M-context office/document agents and multimodal medical imaging analysis with zero external telemetry. Note: LingSante-3.1 models are MIT-licensed research prototypes and not certified clinical diagnostic devices.
- Spec-derived engineering analysis: Tencent Hy4-Flash (Nov 17, 2026) and Ant Group LingSante-3.1-air-VL / LingSante-3.1-flash (Nov 24, 2026) are brand-new late-November 2026 releases; throughput ranges reflect active-parameter bandwidth modeling and vendor technical reports.
- Hy4-Flash’s ~224B total checkpoint includes a ~64B Engram n-gram lookup table alongside the routed MoE backbone—if you load all 224B in Q4_K_M (~131 GB) flat into a 128GB device, it will OOM; use llama.cpp -ot "engram\..*=CPU" to pin the sparse hash lookup tables in system DDR5 while keeping the 12B active transformer/LatentMoE weights in GPU VRAM.
- To achieve Tencent’s 150+ tok/s decode benchmark on Hy4-Flash, you must load the companion 0.85B 5-layer DFly2 speculative drafter (trained with AngelSpec to reuse the main model’s sparse KV indices) and pass --reasoning-parser hy_v4 in vLLM.
- Ant Group LingSante-3.1-air-VL and LingSante-3.1-flash are strictly open-source medical research prototypes (powering scenarios behind Ant’s Afu health assistant)—any hospital or clinic pilot must keep a human clinician in the loop and enforce HIPAA/PIPL air-gapped logging.
4-Step Verification Checklist After Deploying run-hy4-flash-and-lingsante31-medical.sh
- On 96GB–128GB machines running AngelSlim/Hy4-flash-GGUF, pinned the ~64B Engram n-gram hash tables to system RAM via
-ot "engram\..*=CPU"so the 12B active LatentMoE layers fit cleanly in VRAM. - Enabled the companion 0.85B DFly2 speculative drafter and
--reasoning-parser hy_v4in vLLM/SGLang to unlock 150+ tok/s generation. - Set
HF_HUB_OFFLINE=1and verified zero outbound network sockets before feeding clinical images or medical records into LingSante-3.1-air-VL. - Configured downstream UI/workflows to label all LingSante-3.1 outputs as MIT research-prototype assistance requiring licensed clinician verification.