How Much To Run AI
Open weights

Sage S2.1 Flash: Scientific Workflows, Setup and Cost

Sage S2.1 Flash is an open-weight multimodal model for research workflows that combine scientific data, code, retrieval and specialized software. Its text configuration sets a 1,048,576-position limit. Images and video use a multimodal serving path, while scientific inputs such as crystals, spectra, proteins and biosignals use task-specific encoders and projectors that prepare embeddings for the language model. The weights have no listed hosted inference price; the official deployment examples use 8 H200 GPUs for BF16 and 4 H200 GPUs for FP8 vLLM/SGLang serving.

Content reviewed:

Download Sage S2.1 Flash weights ↗
Sage S2.1 Flash serving paths: general agent tasks use the model runtime; scientific inputs add encoders and projectors; the server budget includes weights, KV cache, tools and idle capacity.
Original diagram of the documented serving and scientific-input paths; it is not a runtime measurement.

Use this model

See access details in the guide below.

Use cases

  • Explore scientific inputs such as crystal structures, spectra, protein sequences and ECG signals alongside natural-language instructions.
  • Build a research agent that can call retrieval, programming or domain software and inspect intermediate results.
  • Choose between BF16 and FP8 checkpoints before reserving a multi-GPU serving node.

Use Sage S2.1 Flash for multi-step research tasks

InternLM describes Sage S2.1 Flash as a model for multi-step research work: combine scientific data understanding with information retrieval, programming and tool use; run a specialized program; inspect its intermediate output or visual feedback; then revise the next step. The model supplies the reasoning and tool-call decisions. Your agent host still needs to connect the relevant search, code and scientific-software tools and enforce their permissions.

The official Sage S2.1 Flash benchmark table spans coding, office work, tool use, research and computer-use tasks. InternLM reports scores across 15 benchmarks and six models, including 90.3 on MLE-bench Lite and 37.1 on SpreadsheetBench 2. These are publisher-reported benchmark results; they do not give a latency, token budget or dollar cost for a complete research task.

Choose the Sage S2.1 Flash input path for your data

For ordinary text, use the Sage S2.1 Flash tokenizer and chat template. For images and video, use its multimodal serving path; the official vLLM command uses the Python frontend, while its optional Rust frontend does not accept image or video input. The text configuration sets max_position_embeddings to 1,048,576, but a model limit is not a promise that a particular server has enough memory to serve that length. The published scientific vLLM example sets --max-model-len 8192, so size and benchmark the context you will actually run.

Scientific data follows a separate path. Sage SciPerception provides task-specific encoders and trainable projectors that map scientific features into the language model’s embedding space. The client prepares those features, applies the matching projector, combines its output with Sage’s text-token embeddings, and sends the assembled prompt_embeds to vLLM’s /v1/completions endpoint. You must match the model version and each projector’s config.json, then install the scientific encoder, preprocessing and task-readout dependencies for that input. A CIF, protein structure or ECG recording is not handled by simply attaching it as a normal image.

To check one scientific component before reserving a serving node, the official crystal example downloads Sage S2.1 Flash projectors and the shared loader, then loads the JARVIS CIF projector on CPU. This only checks projector loading; it does not run the 321B language model.

Download and load the official crystal projector on CPU
python -m pip install torch safetensors huggingface_hub
hf download internlm/Sage-S2.1-Flash --include "projectors/sage-s2.1-flash/**" --local-dir ./sage-s2.1-flash
hf download internlm/Sage-SciPerception load_projector.py modeling_projector.py --local-dir ./sage-s2.1-flash
cd sage-s2.1-flash
python -c "from load_projector import load_projector; projector, config = load_projector('projectors/sage-s2.1-flash/cif/jarvis', device='cpu'); print(config['task'])"

Size a Sage S2.1 Flash server for the complete checkpoint

The Sage S2.1 Flash model page lists 321B parameters. The deployment guide rounds the family to 320B-A18B, meaning roughly 18B parameters are active per token. Use total checkpoint size for weight capacity: the BF16 guide lists about 645 GB and uses 8× H200 in its vLLM/SGLang examples; the FP8 repository stores about 330 GB and its vLLM/SGLang examples use 4× H200. These are reference deployments, not measured minimum-memory requirements. Weight files alone do not include KV cache, runtime buffers, visual processing, concurrency or operating-system memory, so the 18B active count cannot be used as a GPU-memory estimate.

For vLLM, the official guide calls for vLLM 0.33.0, --trust-remote-code and a repository patch before serving. The patch fixes image association when parallel tool results return out of order. The FP8 launch command below follows the guide’s four-way tensor-parallel example. On H100/H200, keep the default BF16 KV cache; the guide says FP8 KV cache is not supported on Hopper for this model.

Other engine examples have their own constraints: the guide specifies SGLang 0.5.20 or later, a downloaded repository chat template, the glm45 reasoning parser and glm47 tool-call parser; its LMDeploy instructions use the main branch with transformers>=5.17,<5.19 and FlashMLA. The LMDeploy FP8 example uses tensor parallelism 8, so do not copy the vLLM/SGLang TP4 setting across engines. Check the instructions for the exact engine and checkpoint you choose before downloading hundreds of gigabytes.

FP8 vLLM example after installing vLLM 0.33.0 and applying its patch
hf download internlm/Sage-S2.1-Flash-FP8 --include "vllm_patch/*" --local-dir ./Sage-S2.1-Flash-FP8
# Apply the patch by following ./Sage-S2.1-Flash-FP8/vllm_patch/README.md
vllm serve internlm/Sage-S2.1-Flash-FP8 \
  --trust-remote-code \
  --tensor-parallel-size 4 \
  --enable-auto-tool-choice \
  --tool-call-parser glm47 \
  --reasoning-parser glm47
CheckpointPublished weight sizeOfficial serving example
BF16About 645 GB8× H200 with vLLM or SGLang
FP8About 330 GB4× H200 with vLLM or SGLang

Send a first text request to the FP8 server

After the Sage S2.1 Flash server is ready, send a small text-only task to its OpenAI-compatible endpoint. This checks the served model ID and chat path before you connect scientific encoders or a tool loop. Keep the first request bounded, then inspect the response and server memory before increasing context or parallel work.

Text-only request after starting the official FP8 server
curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "internlm/Sage-S2.1-Flash-FP8",
    "messages": [{"role": "user", "content": "Write a short checklist for verifying a data-analysis script before running it."}],
    "max_tokens": 512
  }'

Estimate Sage S2.1 Flash cost for a complete agent run

Hugging Face currently lists no Inference Provider for the Sage S2.1 Flash base checkpoint, and the release provides open weights and self-hosting recipes rather than a metered token API price. There is no official dollar-per-million-token or dollar-per-task rate to quote. For a self-hosted estimate, use the hourly price of the exact GPU node and measure elapsed time for the full accepted task, including the model’s reasoning turns, tool calls, returned tool output and retries. A single-task run starts with node hourly rate × allocated hours; shared serving requires dividing allocated node cost across successful tasks at the same concurrency and context settings.

The context setting, checkpoint format, tool loop and scientific preprocessing all affect a real deployment. Record them with the run. The published guides do not provide peak serving memory, throughput or task-completion cost, so weight size and active parameters alone cannot fill in those numbers.

Check the projector license separately from the model weights

InternLM releases the Sage S2.1 Flash repository code and model weights under MIT. The separate Sage-SciPerception repository says its license details have not been specified. If your application uses its projectors or loader, review that repository’s terms with the model license before distributing the combined system.

Before you use it

  • The official vLLM/SGLang examples use multi-GPU H200 systems; peak runtime memory and performance at the 1,048,576-token model limit are not published.
  • Scientific inputs need matching encoders, preprocessing and task-specific projectors; the scientific path uses prepared embeddings rather than a standard image attachment.
  • vLLM requires the Sage patch and trusted repository code; on H100/H200 the official guide says to use the default BF16 KV cache.
  • No metered hosted token price is listed for the base checkpoint, and the separate Sage-SciPerception repository does not specify its license.

How to get started

Choose the BF16 or FP8 checkpoint, then follow its official deployment guide for the matching vLLM, SGLang or LMDeploy version. For scientific inputs, also match a Sage SciPerception projector and prepare the required scientific features before connecting them to the model service.

Sources

Sources (6)

Calculators