The hardware reality first
Self-hosting a 560B-parameter model sounds like a hobbyist weekend project the way open-weight releases are usually framed. It is not. LingSante-3.1-flash has 560B total parameters with 25B active per token, and even at FP8 precision it requires datacenter-class multi-GPU hardware: 8x NVIDIA H200 with tensor parallelism 8 and expert parallelism 8, or 4x NVIDIA GB300 with tensor parallelism 4 and expert parallelism 4. There is no single-GPU configuration and no consumer configuration. This is a datacenter deployment, full stop. The model shipped under an MIT license and is announced on the AntLingAGI launch post and listed on Computrix, but an open license is not the same thing as a runnable license.
That is the single most important fact in this post, so it comes first. If you are comparing LingSante-3.1-flash against small open models that run on one GPU, the comparison is not close. A 26B model fits on a single 24GB card. A 560B MoE at FP8 does not fit on any single card you can buy. Open weights give you the right to self-host; they do not make it cheap.
For the benchmark case for why you might want to self-host this specific model, see LingSante-3.1-flash benchmarks and LingSante-3.1-flash vs frontier. For the specialist-versus-generalist question that decides whether it belongs in your stack at all, see LingSante-3.1-flash vs frontier. For the safety obligations that come with running a medical model yourself, see LingSante-3.1-flash clinical safety.
Why 560B still needs a cluster
The architecture explains the memory footprint. LingSante-3.1-flash uses a hybrid-linear MoE design the team calls bailing_hybrid, documented in the Ling architecture paper. Per token it activates about 8 routed experts out of 512 routed experts plus 1 shared expert, across 63 KDA linear-attention layers and 9 Gated MLA layers in a 7:1 ratio, with 4 dense layers, a hidden size of 4096, expert intermediate size of 1280, dense intermediate size of 10240, and a vocabulary of 157184.
The active-parameter count of 25B is what keeps per-token compute close to a mid-size dense model. But the total parameter count of 560B is what determines memory. All 512 routed experts have to live in VRAM (or be paged), because you cannot predict which experts a given token will route to. At FP8, that is still hundreds of gigabytes of weights before you account for KV cache, activations, and the overhead of serving concurrent requests. Hence the 8x H200 or 4x GB300 requirement.
It is worth being precise about what FP8 buys and what it does not. The model card lists BF16, F32, and F8_E4M3 (FP8) as supported precisions. Running FP8 roughly halves the weight footprint versus BF16, which is the difference between needing a larger cluster and fitting on 8x H200. But FP8 does not shrink the parameter count, and it does not make the model single-GPU. A common misconception is that quantization is the same as compression for deployment purposes; here it reduces per-card memory pressure and raises throughput, but the cluster requirement is structural because of the expert count, not just the precision. If you tried to run this in BF16 you would need more cards, not fewer.
The 1M token context window compounds this. Long-context serving multiplies KV cache size, which is why the deployment recipes below lean on HiCache (Mooncake L3) for memory tiering rather than relying on raw HBM alone. The base Ling-3.1-flash architecture that LingSante inherits is what makes this memory profile predictable across the hybrid-linear MoE design.
Reference deployment: SGLang
SGLang is the recommended runtime. The maintainers publish a dedicated image, lmsysorg/sglang:dev-ling-3.1-flash, which ships the kernels and attention backends the hybrid-linear MoE needs. If you have not read the launch details, LingSante-3.1-flash launch covers why the bailing_hybrid design needs custom kernels in the first place.
docker run --gpus all \
lmsysorg/sglang:dev-ling-3.1-flash \
python -m sglang.launch_server \
--model-path inclusionAI/LingSante-3.1-flash \
--tensor-parallel-size 8 \
--expert-parallel-size 8Two parallelism axes matter here. Tensor parallelism splits individual weight matrices across GPUs; expert parallelism distributes the 512 routed experts across GPUs so that different GPUs hold different experts. On 8x H200 you run both at 8. On 4x GB300 you run both at 4. GB300 fits in 4 cards because each GB300 carries more HBM than an H200.
Verified hardware recipes
The model card lists verified configurations for H200, GB300, H800, H100, and B200. The two headline recipes:
| Hardware | Tensor parallel | Expert parallel | Notes |
|---|---|---|---|
| 8x H200 | 8 | 8 | Recommended default |
| 4x GB300 | 4 | 4 | Fewer cards, higher HBM each |
| 8x H800 / H100 | 8 | 8 | A100-class interconnect assumptions |
| B200 | varies | varies | Blackwell FP8 path |
On Hopper, two environment flags unlock faster batch-1 decode: SGLANG_ENABLE_FP8_BLOCK_GEMV=1 and SGLANG_ENABLE_FUSED_KDA_OUTPUT_QUANT=1. The maintainers cite roughly a 10% speedup on single-stream decode with these enabled, which matters for interactive latency on a model this large.
export SGLANG_ENABLE_FP8_BLOCK_GEMV=1
export SGLANG_ENABLE_FUSED_KDA_OUTPUT_QUANT=1
# ~10% faster batch-1 decode on HopperSpeculative decoding with NEXTN
Because per-token compute is modest relative to memory, LingSante-3.1-flash benefits from speculative decoding. The model supports NEXTN (multi-token prediction, MTP): a draft head proposes several tokens per step and the main model verifies them in parallel, which raises effective tokens per forward pass.
# SGLang speculative decoding
python -m sglang.launch_server \
--model-path inclusionAI/LingSante-3.1-flash \
--tensor-parallel-size 8 \
--expert-parallel-size 8 \
--speculative-algorithm NEXTN \
--speculative-num-steps 3The vLLM equivalent uses a JSON speculative config, shown in the vLLM section below. Speculative decoding does not change output quality; it only changes how many tokens each forward pass yields, so it is a pure throughput and latency lever. For what that compute buys in accuracy terms, see LingSante-3.1-flash benchmarks.
HiCache for long context
Serving 1M-token contexts means the KV cache can outgrow HBM quickly. HiCache (Mooncake L3) tiers the KV cache across HBM, host memory, and optional SSD, so hot blocks stay on GPU while cold blocks spill to cheaper tiers. For healthcare records and long literature-analysis workloads, where a single request can carry hundreds of thousands of tokens, this is not optional tuning; it is what keeps the 1M window usable without a prohibitive HBM budget.
Reference deployment: vLLM
vLLM supports LingSante-3.1-flash on a dedicated branch. The tool-call and reasoning parsers are ling3-specific, which matters because the model is trained to emit structured tool calls and reasoning traces that need correct parsing.
# Check out the vllm branch first
git clone https://github.com/vllm-project/vllm.git
cd vllm
git checkout vllmvllm serve inclusionAI/LingSante-3.1-flash \
--tensor-parallel-size 8 \
--gpu-memory-utilization 0.85 \
--enable-expert-parallel \
--tool-call-parser ling3 \
--reasoning-parser ling3 \
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'Note the escaping in the speculative config: the JSON is passed as a single-quoted shell argument, so the double quotes inside survive intact. The –gpu-memory-utilization 0.85 value leaves headroom for KV cache growth and fragmentation. If you are running the tool-using agent research workloads the model card describes, the ling3 parsers are not optional; without them the model’s tool-call output will not deserialize correctly.
Sampling parameters
The recommended sampling configuration is not the usual low-temperature default. The model card specifies temperature 1.0, top_p 0.95, top_k 20, with enable_thinking set to true. The thinking mode is where the medical reasoning behavior lives, so disabling it to save tokens will cost you accuracy on exactly the HealthBench-style tasks the model is tuned for.
{
"model": "LingSante-3.1-flash",
"temperature": 1.0,
"top_p": 0.95,
"top_k": 20,
"enable_thinking": true
}If you are used to serving coding models at temperature 0.2, temperature 1.0 will look aggressive. It is intentional here. The top_k 20 constraint keeps the distribution sharp enough to avoid incoherence at that temperature. When in doubt, match the model card defaults before tuning.
One practical note on thinking mode: because enable_thinking true makes the model emit reasoning traces before its final answer, your client needs to handle the reasoning-parser output separately from the visible response. The ling3 reasoning parser splits these streams server-side, but you still need to decide what to log, what to show the user, and what to feed back into multi-turn context. For a clinical assistant that shows its work, the reasoning trace is useful to a reviewing clinician. For a batch extraction pipeline, you probably want to discard it to save storage. Plan for this before you go to production rather than discovering it in your first load test.
When self-hosting actually makes sense
Given the hardware bar, the question is not “can I self-host this” but “should I.” The specialist-versus-generalist tradeoff in LingSante-3.1-flash vs frontier determines whether this model is even the right thing to deploy, and the coding losses show it falls well behind the generalists on terminal tasks. Self-hosting a 560B medical MoE makes sense in a narrow set of circumstances:
- You already operate a GPU cluster. If 8x H200 is spare capacity you already own, the marginal cost of adding LingSante-3.1-flash is compute time, not a capital purchase.
- PHI cannot leave your environment. Regulated healthcare workloads where protected health information must not transit a third-party API are the textbook case. Self-hosting keeps data inside your trust boundary.
- You need custom tool integration. Research agents that call clinical tools, EHR systems, or internal retrieval benefit from direct control over the runtime and the ling3 tool-call parsing.
Self-hosting does not make sense when:
- You do not own datacenter GPUs. Buying 8x H200 for one model is rarely justified unless that model is core to your product.
- Your volume is low or bursty. Idle 8-GPU nodes are expensive; a per-token API is cheaper below a fairly high utilization threshold.
- You want frontier breadth, not medical depth. A generalist frontier model on a per-token API covers mixed workloads without a cluster. This model loses to generalists on coding, so it is the wrong self-hosting target for general work.
Self-host: PHI must stay on-prem, you own GPUs, volume is steady and high.
Hosted API via gateway: evaluation, bursty traffic, no cluster, mixed workloads, fast iteration.
Either way: human review is required for clinical outputs; see clinical safety.
Cost framing
The cost story has two parts and they point in opposite directions. Inference cost per token is lower than a 560B dense model because only 25B parameters activate per request, and FP8 plus speculative decoding push it lower still. But the capital and operating cost of the cluster is high and fixed: 8x H200 is a five-figure-to-six-figure hardware commitment before power, cooling, networking, and the engineering time to operate it. A small open model that runs on one GPU has a fundamentally different cost floor, and comparing the two on “open weights” alone is misleading. The Inkling 2 Mini cost comparison is the clearest illustration of how wide that gap is.
For most teams the realistic path to using LingSante-3.1-flash is a hosted API through a gateway, where the cluster cost is amortized across many tenants and you pay per token. That is the same economics that make a small open model free to serve viable without any hardware, and it is why a closed frontier model never needed a cluster on your side to begin with. You can sign up, browse availability on the models page, review rates on the pricing page, and model your own spend with the cost calculator.
A minimal self-host checklist
If you do have the hardware, this is the shortest reliable path:
- Pull the weights from Hugging Face or ModelScope.
- Start with the SGLang image and the 8x H200 recipe. Prefer the reference path over hand-rolled configs for a first bring-up.
- Set the two Hopper FP8 flags if you are on H200/H800/H100.
- Enable NEXTN speculative decoding for throughput.
- Configure HiCache if you will serve long contexts.
- Match the sampling defaults (temperature 1.0, top_p 0.95, top_k 20, thinking on).
- Run the model card’s safety checks before exposing anything to real users.
# Smoke test against the local SGLang server
curl http://localhost:30000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "LingSante-3.1-flash",
"messages": [{"role": "user", "content": "Explain the MoE routing in this model."}],
"temperature": 1.0,
"top_p": 0.95,
"top_k": 20,
"enable_thinking": true
}'Related reading
- LingSante-3.1-flash launch - the architecture being deployed
- LingSante-3.1-flash vs frontier - the specialist tradeoff
- Ling-3.1-flash - the base model
- LingSante-3.1-flash benchmarks - what the hardware buys you
- LingSante-3.1-flash clinical safety - obligations when self-hosting
- Inkling 2 Mini free API guide - the single-GPU end of the spectrum
- Inkling 2 Mini vs frontier - a small open model by comparison
- GPT-6 2 Astra Sol launch - the closed frontier alternative
The bottom line: LingSante-3.1-flash is open-weight and MIT licensed, but it is a 560B model that needs 8x H200 or 4x GB300. Self-host it if you have the cluster and a PHI-on-prem requirement; otherwise a hosted gateway API is the realistic path.
More across the gateway
- the Inkling 2 Mini 16GB quant ladder
- Inkling 2 Mini on a 3090 for under $100 a month
- the Inkling 2 Mini local setup guide
- the Inkling 2 Mini Vast.ai setup
- the Inkling 2 Mini RunPod setup
- Inkling 2 Mini local vs API economics
- switching your OpenAI SDK base URL
- OpenAI vs Anthropic compatible APIs
- one API key per project with spend limits
- the Hy4 flash API pricing
- Qwen4-Max API pricing
- how to estimate your monthly LLM API cost