Run Ling 3.1 Flash FP8 on eight H200 GPUs with SGLang
Documented single-server setup for the original Ling 3.1 Flash checkpoint, not Flash 1019. Pin the FP8 weights and SGLang image, use the native 262,144-token shared context, and check one text request over a local-only endpoint.
- Hardware
- Eight NVIDIA H200 SXM GPUs in one Linux server
- Runtime
- SGLang Ling 3.1 Flash Docker image dev-ling-3.1-flash 4728eda79a7a20c9b7545430551f2a57b8c33816 · CUDA
- Model format
- safetensors · Checkpoint FP8 E4M3; selected components are excluded from FP8 in the publisher configuration. · Publisher FP8 E4M3 block-quantized weights, 128 by 128 blocks
- Workload
- 262,144 token context · 1 concurrent
Based on source documentation; this setup has not been executed by OpenTools. Memory: documented. No compatible measurement available.
Read the complete setup guide
Before you start
- Use one reader-controlled Linux x86_64 server with exactly eight H200 SXM GPUs, a compatible NVIDIA driver, NVIDIA Container Toolkit, and Docker Engine 28 or newer. Run the commands in Bash.
- Prepare the official Hugging Face Hub CLI. Confirm significantly more disk than the 573.8 GB shard footprint for the full snapshot and expanded container.
- Only use a dedicated host and an unshared Docker bridge. If the active host enables direct routing, external proxying, or untrusted Docker users, stop and fix isolation before starting.
- Inspect the exact publisher files and container pins under your own software intake process. Do not accept a mutable replacement, add remote-code flags to work around errors, or use Flash 1019.
Exact model and requirements
- Artifact:
- Ant Group inclusionAI / inclusionAI/Ling-3.1-flash · checkpoint Ling 3.1 Flash, original FP8 checkpoint
- Publisher revision:
- c252f7838ab7192c982ec503f3a32b32bad0bd1f
- Artifact digest:
- The checkpoint revision and shard index are pinned. No single publisher digest represents the entire snapshot.
- Download size:
- 534.38 GiB
- Memory requirement (documented):
- Unknown — 141 GB is H200 capacity, not a measured per-device minimum for this guide.
- System RAM / disk:
- Unknown / Unknown
- Placement:
- supported sharding. TP8 plus EP8 within one documented eight-H200 node. Use the NEXTN decoder setting from the maintainer cookbook. No CPU or disk weight offload or Mooncake cache is configured.
- KV cache:
- The pinned recipe leaves the separate KV-cache type at the runtime default; it was not measured.
- Workload:
- 262,144 token context; Unknown; Unknown; concurrency 1; batch 1; cache unknown; repetitions Not applicable.
- Tokenizer:
- Original Ling 3.1 Flash tokenizer · c252f7838ab7192c982ec503f3a32b32bad0bd1f
- Sampling / reasoning:
- The smoke request sets temperature 1.0 and top_p 0.95. It does not establish model performance. Request enable_thinking and use the documented ling3 parser. The stated workload is one validation request, not an equal-compute benchmark.
- Runtime prerequisites:
- Linux; NVIDIA Linux driver compatible with the exact CUDA 13 container and NVIDIA Container Toolkit..
- Host operating system requirements
Use one of these documented host options. Confirm every condition for the option you use.
- Linux
- x86_64
- A host NVIDIA driver compatible with the pinned CUDA 13 image and NVIDIA Container Toolkit exposing all eight H200 GPUs.
- Linux
- Container requirements
- Linux amd64, CUDA 13
The exact publisher registry labels the checkpoint MIT. Retain its copyright and MIT permission notice when distributing copies or substantial portions. The hosted API has separate terms.
- Eight dedicated GPU memory pools are not equivalent to one unified memory pool.
- The combined context cap is not a claim that one request can output all 262,144 tokens. Concurrent long requests are not covered by the smoke test.
One-time setup and hardware
- Hardware
- Unknown — No reader-specific server purchase price was verified.
- Use an existing qualifying eight-H200 host. Tax: unknown.
- Setup
- Unknown — Setup time and labour rates were not measured.
- Budget for the driver, image and model download, and operator verification. Tax: unknown.
Recurring costs
- Electricity
- Unknown — Wall power and the operator tariff are unknown.
- Use a wall-meter reading under actual load. Tax: unknown.
- Storage
- Unknown — No reader storage tariff was given.
- Budget for model shards, staging, expanded layers, and logs. Tax: unknown.
- Egress
- Unknown — Network and datacenter transfer charges are unknown.
- The guide does not purchase a host or send traffic to a hosted inference API. Tax: unknown.
- Administration
- Unknown — Operator labour and monitoring rates are unknown.
- Maintain drivers, backups, and incident response separately. Tax: unknown.
Install the runtime
1. Pull the pinned SGLang image
Pull the Linux/amd64 manifest, not the mutable tag.
Commanddocker pull --platform linux/amd64 lmsysorg/sglang@sha256:c7c2351adfb5b32ae82c6862f673f512223328e49055f7cc75743f2fbd487f3cExpected result: Docker confirms the pinned image.
2. Check GPUs and server flags
Confirm the maintained image exposes eight H200s and the command surface before loading weights.
Commanddocker version nvidia-smi -L docker run --rm --network none --gpus all --entrypoint nvidia-smi lmsysorg/sglang@sha256:c7c2351adfb5b32ae82c6862f673f512223328e49055f7cc75743f2fbd487f3c -L docker run --rm --network none --entrypoint python3 lmsysorg/sglang@sha256:c7c2351adfb5b32ae82c6862f673f512223328e49055f7cc75743f2fbd487f3c -m sglang.launch_server --helpExpected result: Host and container list eight H200s; the help lists TP, EP, context length, NEXTN, reasoning parser, served name and API key options.
Download the model
1. Save the exact original checkpoint
Save the pinned snapshot to a dedicated path. Do not mix shards from other revisions.
Commandexport LING31_DIR="$HOME/models/ling31-flash-fp8" hf download inclusionAI/Ling-3.1-flash --revision c252f7838ab7192c982ec503f3a32b32bad0bd1f --local-dir "$LING31_DIR"Expected result: The directory has 54 weight shards, the index, configuration and tokenizer for the original Ling 3.1 Flash.
Configure
1. Make a private local endpoint
Choose a temporary nonempty API token. Stop if the dedicated bridge already exists rather than joining a shared network.
Commandread -r -s -p 'Temporary local API token: ' LING31_KEY docker network create --driver bridge ling31-privateExpected result: The token is not echoed and the new bridge has no other members.
Start the model
1. Start on eight H200s
Bind only to host loopback. Keep the pinned model directory mounted read-only.
Command: "${LING31_KEY:?Set a nonempty temporary API token}" docker run --rm --name ling31-flash-local --gpus all --ipc=host --network ling31-private \ -p 127.0.0.1:30000:30000 --entrypoint python3 \ --mount "type=bind,source=$LING31_DIR,target=/model,readonly" lmsysorg/sglang@sha256:c7c2351adfb5b32ae82c6862f673f512223328e49055f7cc75743f2fbd487f3c -m sglang.launch_server \ --model-path /model --host 0.0.0.0 --port 30000 --served-model-name ling31-flash-local \ --tp 8 --ep 8 --context-length 262144 --speculative-algorithm NEXTN --reasoning-parser ling3 --api-key "$LING31_KEY"Expected result: SGLang loads the expected checkpoint on eight devices and reports readiness. No public port mapping is added.
Connect to your endpoint
http://127.0.0.1:30000/v1
The host exposes only IPv4 loopback. Peers on the dedicated bridge can reach the container port, so do not attach peers, enable direct routing, or proxy the port publicly.
Access: loopback. Use a temporary Bearer token for the local API and verify a missing token is rejected on the model-list endpoint before sending prompts. Host Docker operators can see arguments.
Verify the setup
1. Confirm missing-token rejection
Check after readiness. Proceed to token entry only on exactly HTTP 401. Any other status or transport error stops the sequence.
Commandcurl --noproxy 127.0.0.1 -sS -o /dev/null -w "%{http_code}\n" http://127.0.0.1:30000/v1/modelsExpected result: The unauthenticated request returns 401.
2. Confirm the served model and context
After the exact 401 check, quietly enter the same temporary token in the second Bash shell. Proceed only on HTTP 200 with the exact served name and numeric context on the same JSON model entry. Any other status, transport error, malformed response, missing field, or mismatch stops the sequence.
Commandread -r -s -p 'Same temporary local API token: ' LING31_KEY curl --noproxy 127.0.0.1 -fsS -w "\nHTTP %{http_code}\n" -H "Authorization: Bearer $LING31_KEY" http://127.0.0.1:30000/v1/modelsExpected result: HTTP 200, with one JSON model entry whose id is ling31-flash-local and whose numeric max_model_len is 262144. Both fields must match on the same entry.
3. Run one short text check
Only send the non-sensitive prompt after both checks passed: the exact missing-token 401 and authenticated 200 with the expected model and context. This checks the configured endpoint, not speed or accuracy.
Commandcurl --noproxy 127.0.0.1 -fsS http://127.0.0.1:30000/v1/chat/completions \ -H "Authorization: Bearer $LING31_KEY" -H "Content-Type: application/json" \ -d '{"model":"ling31-flash-local","messages":[{"role":"user","content":"Name the largest planet in our solar system in one short sentence."}],"chat_template_kwargs":{"enable_thinking":true},"max_tokens":256,"temperature":1.0,"top_p":0.95}'Expected result: The first assistant message has nonempty text naming Jupiter. An empty message or only reasoning with a length stop is not a useful pass.
Performance evidence
No compatible measurement available. Documented support and estimated memory do not establish response speed.
Limits and troubleshooting
- This setup is documented, not executed by OpenTools. No minimum RAM, token rate, cost, or GPU benchmark is claimed.
- The 262,144-token context is the native local configuration; no YaRN override or hosted limit is assumed. Only a single short text request is described.
- The local token and bridge do not substitute for a managed or publicly secured endpoint.
- Missing H200 devices or CUDA mismatch
- Check the host driver, container toolkit and pinned amd64 image. Do not fall back to fewer GPUs or a different image.
- Out of memory or unknown runtime flag
- Inspect the exact pinned image/help and the checkpoint revision; remove competing workloads before any retry. Treat a changed context or hardware target as a distinct recipe.
- Unexpected unauthenticated success
- Stop the server, verify the local token gate and bridge or loopback exposure, and do not send prompts until the local check passes.
Stop the model
1. Stop the dedicated server
Stop only the named Ling container; its checkpoint directory is unchanged.
Commanddocker stop ling31-flash-localExpected result: The server exits and the local port is no longer reachable.
2. Discard the temporary token
Run this in both Bash shells after stopping the server.
Commandunset LING31_KEYExpected result: Neither local shell retains the temporary token.
Uninstall
1. Remove the guide-specific empty bridge
Make sure the bridge has no attached containers; leave shared images and model caches alone.
Commanddocker network rm ling31-privateExpected result: The dedicated empty bridge is removed.
2. Choose whether to keep the model files
Keep the snapshot by default. Only use your own approved file cleanup if you explicitly want to delete the dedicated Ling directory and have verified it is not shared. Leave all other snapshots and the shared image cache untouched.
Expected result: The model files remain available unless you explicitly chose to remove their dedicated copy.
Sources and verification
Sources checked Nov 27, 2026. Verification source
- https://docs.sglang.io/cookbook/autoregressive/InclusionAI/Ling-3.1-flashruntime maintainer · retrieved Nov 27, 2026
- https://docs.nvidia.com/enterprise-reference-architectures/hgx-ai-factory/latest/components.htmlmanufacturer · retrieved Nov 27, 2026
- https://huggingface.co/api/models/inclusionAI/Ling-3.1-flash/revision/c252f7838ab7192c982ec503f3a32b32bad0bd1f?blobs=truepublisher · retrieved Nov 27, 2026 · revision c252f7838ab7192c982ec503f3a32b32bad0bd1f
- https://huggingface.co/inclusionAI/Ling-3.1-flash/resolve/c252f7838ab7192c982ec503f3a32b32bad0bd1f/config.jsonpublisher · retrieved Nov 27, 2026 · revision c252f7838ab7192c982ec503f3a32b32bad0bd1f
- https://hub.docker.com/v2/repositories/lmsysorg/sglang/tags/dev-ling-3.1-flashruntime maintainer · retrieved Nov 27, 2026 · revision sha256:c7c2351adfb5b32ae82c6862f673f512223328e49055f7cc75743f2fbd487f3c
- https://huggingface.co/inclusionAI/Ling-3.1-flash/resolve/c252f7838ab7192c982ec503f3a32b32bad0bd1f/model.safetensors.index.jsonpublisher · retrieved Nov 27, 2026 · revision c252f7838ab7192c982ec503f3a32b32bad0bd1f
- https://huggingface.co/inclusionAI/Ling-3.1-flashpublisher · retrieved Nov 27, 2026
- https://hub.docker.com/layers/lmsysorg/sglang/dev-ling-3.1-flash/images/sha256-c7c2351adfb5b32ae82c6862f673f512223328e49055f7cc75743f2fbd487f3cruntime maintainer · retrieved Nov 27, 2026 · revision 4728eda79a7a20c9b7545430551f2a57b8c33816
- https://docs.sglang.io/advanced_features/server_arguments.htmlruntime maintainer · retrieved Nov 27, 2026
- https://docs.docker.com/engine/network/port-publishing/official · retrieved Nov 27, 2026
- https://docs.docker.com/engine/network/drivers/bridge/official · retrieved Nov 27, 2026
- https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/sample-workload.htmlmanufacturer · retrieved Nov 27, 2026
- https://raw.githubusercontent.com/sgl-project/sglang/4728eda79a7a20c9b7545430551f2a57b8c33816/python/sglang/srt/server_args.pyruntime maintainer · retrieved Nov 27, 2026 · revision 4728eda79a7a20c9b7545430551f2a57b8c33816
- https://raw.githubusercontent.com/sgl-project/sglang/4728eda79a7a20c9b7545430551f2a57b8c33816/python/sglang/srt/entrypoints/http_server.pyruntime maintainer · retrieved Nov 27, 2026 · revision 4728eda79a7a20c9b7545430551f2a57b8c33816