Ant Group logo

Ling 3.1 Flash

Lingv3.1 FlashCurrent
byAnt GroupAnt Group(Privately Held)
Context262.1K tokens
Price (In / Out)$0.30/M / $0.90/M
CategoryLarge Language Model
Max Output32.8K tokens

About Ling 3.1 Flash

Ling 3.1 Flash is Ant Group's open-weight language model for coding, reasoning, and long tool-assisted tasks. This is the original checkpoint, not Flash 1019. The featured Vercel AI Gateway route allows 262,144 context tokens and 32,768 output tokens, including reasoning. The MIT-licensed weights are downloaded separately.

Capabilities

textreasoningtool uselong contextopen weights

Input Modalities

text

Output Modalities

text

Technical Details

API Identifier
inclusionai/ling-3.1-flash
Category
Large Language Model
Context Window
262,144 tokens
Max Output Tokens
32,768 tokens

Tags

open-weightscodingreasoninglong-context

Run this model yourself

Local and cloud setup for Ling 3.1 Flash, with exact configurations, sources and clear evidence limits.

Find a model for your hardware
Local hardwareDocumented setupSources checked Nov 27, 2026

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.
Container requirements
  • Linux amd64, CUDA 13

Official artifact · License

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. 1. Pull the pinned SGLang image

    Pull the Linux/amd64 manifest, not the mutable tag.

    Command
    docker pull --platform linux/amd64 lmsysorg/sglang@sha256:c7c2351adfb5b32ae82c6862f673f512223328e49055f7cc75743f2fbd487f3c

    Expected result: Docker confirms the pinned image.

  2. 2. Check GPUs and server flags

    Confirm the maintained image exposes eight H200s and the command surface before loading weights.

    Command
    docker 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 --help

    Expected 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. 1. Save the exact original checkpoint

    Save the pinned snapshot to a dedicated path. Do not mix shards from other revisions.

    Command
    export 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. 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.

    Command
    read -r -s -p 'Temporary local API token: ' LING31_KEY
    docker network create --driver bridge ling31-private

    Expected result: The token is not echoed and the new bridge has no other members.

Start the model

  1. 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. 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.

    Command
    curl --noproxy 127.0.0.1 -sS -o /dev/null -w "%{http_code}\n" http://127.0.0.1:30000/v1/models

    Expected result: The unauthenticated request returns 401.

  2. 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.

    Command
    read -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/models

    Expected 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. 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.

    Command
    curl --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. 1. Stop the dedicated server

    Stop only the named Ling container; its checkpoint directory is unchanged.

    Command
    docker stop ling31-flash-local

    Expected result: The server exits and the local port is no longer reachable.

  2. 2. Discard the temporary token

    Run this in both Bash shells after stopping the server.

    Command
    unset LING31_KEY

    Expected result: Neither local shell retains the temporary token.

Uninstall

  1. 1. Remove the guide-specific empty bridge

    Make sure the bridge has no attached containers; leave shared images and model caches alone.

    Command
    docker network rm ling31-private

    Expected result: The dedicated empty bridge is removed.

  2. 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

Compare this configuration

Benchmarks

Performance scores for Ling 3.1 Flash across standard benchmarks.

SWE-bench Pro (LingCode)inclusionai
68.7%

Pricing

Token pricing for Ling 3.1 Flash API usage.

Input Tokens

$0.30/M

per million tokens

Output Tokens

$0.90/M

per million tokens

Vercel AI Gateway list rates in USD per million tokens: $0.30 input, $0.06 cached input, and $0.90 output. Other providers, regions, and time-limited promotions have separate terms. MIT-licensed weights do not make the hosted route free.

Competing Models

Same pricing tier — direct alternatives to Ling 3.1 Flash

Mid-Range
37
18.1
$0.95/M / $3.15/MCompare
31
40.8
$0.30/M / $1.20/MCompare
$1.20/M / $4.00/MCompare
$0.72/M / $2.30/MCompare
44
15.0
$1.40/M / $4.40/MCompare
60
85.3
$0.20/M / $1.20/MCompare
27
19.6
$0.30/M / $2.50/MCompare
47
17.0
$1.25/M / $4.25/MCompare
57
21.4
$1.32/M / $3.96/MCompare
69
30.8
$0.75/M / $3.75/MCompare
$0.30/M / $3.00/MCompare
$0.83/M / $2.50/MCompare
$1.25/M / $4.25/MCompare
82
28.4
$1.40/M / $4.40/MCompare
40
53.7
$0.30/M / $1.20/MCompare
$0.30/M / $1.20/MCompare
Ant Group logo
Ant GroupPrivately Held

Digital finance, payments, and AI research

2 ModelsFounded 2004Hangzhou, China
View full profile

AI Models by Ant Group

AI models from the same organization.

ModelContext WindowPrice (In / Out per M)
Ling 3.1 Flash 1019Current1.0M$0.30 / $0.90