TinkerLab
ARTIFACT // RUN-HY4-FLASH-AND-LINGSANTE31-MEDICAL.SH (SH)

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.

[KEY VERIFIED TAKEAWAY / TL;DR]This reproducible configuration artifact "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, SH) is paired with Tinker AI Lab's hardware-verified guide "tencent-hy4-flash-224b-a12b-engram-latentmoe-dfly2-and-ant-lingsante-31-medical-vl-local-ai". It exposes 5 customizable browser variables (RUN_MODE=vllm_hy4_flash_dfly2_fp8, HY4_GGUF_PATH=./models/AngelSlim-Hy4-flash-Q4_K_M.gguf, LINGSANTE_REPO=inclusionAI/LingSante-3.1-air-VL, CTX_TOKENS=131072, API_PORT=8000) with loopback-first security defaults.
01 // HOMELABLocal AI / HomeLab· Verified: 2026-11-24
Browse All 76 Artifacts →
run-hy4-flash-and-lingsante31-medical.sh

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.

View Paired Guide →
Customizable Variables (Saved in Browser)
UTF-8 Encoded · Live Client-Side Compilation
#!/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
PARAMETER SPECIFICATION // 参数化变量规范说明表

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 TokenParameter DescriptionVerified DefaultExample Format
{{RUN_MODE}}Mode (vllm_hy4_flash_dfly2_fp8 | llamacpp_hy4_flash_engram_offload | vllm_lingsante31_air_vl)vllm_hy4_flash_dfly2_fp8vllm_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 RepoinclusionAI/LingSante-3.1-air-VLinclusionAI/LingSante-3.1-air-VL
{{CTX_TOKENS}}Context Window (262144 for LingSante Air / up to 1048576 for Hy4-Flash)131072131072
{{API_PORT}}OpenAI-Compatible API Port80008000
PAIRED HARDWARE MANIFEST // 配套实测环境与边界记录

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"

Tested Hardware & OS

96GB RTX PRO 6000 / 128GB MacBook Pro M5 Max & RTX Spark / 192GB GMKtec EVO-X5 Pro / 512GB Mac Studio M5 Ultra & 748GB GB300 Workstation

Pinned Stack & Model Versions
Tencent Hy4-Flash (tencent/Hy4-flash · tencent/Hy4-flash-FP8 · AngelSlim/Hy4-flash-GGUF · Tencent Hy License 1.0)Ant Group LingSante-3.1 (inclusionAI/LingSante-3.1-air-VL 124B-A5.5B & LingSante-3.1-flash 560B-A25B · MIT License)vLLM (vllm/vllm-openai:hy4-flash · --reasoning-parser hy_v4 · DFly2 Speculator) & SGLang Recipesllama.cpp v1.0+ (-ot "engram\..*=CPU" Host RAM Hash-Table Offload + Q8_0 KV Cache)
Offline Boundary (100% Air-Gapped Local Execution (Essential for Clinical / PHI & Enterprise Document Privacy))

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.

Known Operational Limits & Failure Modes
  • 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.
DEPLOYMENT CHECKLIST // 配置落地核验步骤

4-Step Verification Checklist After Deploying run-hy4-flash-and-lingsante31-medical.sh

  1. 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.
  2. Enabled the companion 0.85B DFly2 speculative drafter and --reasoning-parser hy_v4 in vLLM/SGLang to unlock 150+ tok/s generation.
  3. Set HF_HUB_OFFLINE=1 and verified zero outbound network sockets before feeding clinical images or medical records into LingSante-3.1-air-VL.
  4. Configured downstream UI/workflows to label all LingSante-3.1 outputs as MIT research-prototype assistance requiring licensed clinician verification.