H2 AIDM · L1 · Model layer
H2 Model Combo Logo

H2 Model Combo (H2MC)

The same models,
inference rebuilt for agents.

We rewrite the inference path for agent workloads and deploy five classes of models as standard services; then architecture-level post-training writes business constraints into the model itself.

AGENT LONG TASK · TIME TO FIRST TOKENIllustrative
Current step—Computed in this step—Time to first token—

On long-context agent tasks, about 1 second to first token Measured; red is our own baseline on the same hardware with caching turned off and a full recompute at every step (about 34 seconds). Step 1 has no cache, so both modes need a full prefill (cold start); after that the stateful cache computes only what is new. Time is scaled proportionally; the context length at each step is illustrative.

about 0 second
Time to first token on long-context agent tasks (measured on H200).
Measured
200–300
Output speed per stream (tokens per second), about 90 before optimization; measured on a single H200 stream.
Measured
0 streams
Full-stack result: 96 concurrent inference streams measured on 4 H200 GPUs.
Measured
about 0 million
Context of up to about 1 million tokens; capability is not traded for speed.
Same tier as official
The problem

Agent workloads
are not chat workloads.

At every step, an agent sends its entire history again. Without caching, each step recomputes everything it has already read, and time to first token grows with the length of the history.

CharacteristicChatAgent
ContextShortKeeps growing, up to hundreds of thousands or a million tokens
New content per stepThe whole input is newOnly a small part is new
Request rhythmThe pace of a person typingCalls the model once, runs tools for 30–60 seconds, then calls again
Consumption per taskBaseline5–30× that of chat
Three inference mechanisms

Caching, pinning, acceleration:
all three must hold at once.

Capability is not traded for speed: million-token context, tool calls, image understanding and the thinking toggle are all kept.

Mechanism 01 · Stateful cache

What has been read is not read again.

History that has been read stays on the compute side as KV cache (in two tiers, VRAM and host memory), and the next step runs prefill only for the small new part. The first step is still a cold start; after that, time to first token barely grows with the length of the history. About 1 second to first token on long-context agent tasks Measured.

Prompt caching is already common practice in the industry. What we do is make it stable on our own compute under high concurrency: the cache is held in tiers, and session affinity keeps each session on the lane that stores its history.

During decoding, attention still has to read the full KV cache, so output speed after the first token is left to Mechanism 03.

Caching off · internal baseline
about 34 s

On the same hardware, every step recomputes the entire history. This is our own baseline for comparison; it does not represent other vendors' products.

Stateful cache + session affinity
about 1 s

Only new content is computed; time to first token barely grows with the length of the history.

8 SESSIONS → 4 GPU LANESIllustrative
Cache hit rate—Requests this round—

Illustrative animation: green is a hit on an existing cache; red is a miss, where the entire history has to be recomputed.

Mechanism 02 · Lane pinning

One session,
always the same lane.

Session affinity (lane pinning) is implemented by L0 scheduling and enforced by the platform gateway: the same agent session always lands on the compute lane that holds its cache. H2MC lists it as one of its three inference mechanisms, working together with H2GC. Cache hits are the precondition for raising concurrency; the full-stack result is 96 concurrent streams measured on 4 GPUs Measured.

Caching without lane pinning is as good as no caching.

Mechanism 03 · Speculative decoding

After the first token,
output has to be fast too.

Speculative decoding speeds up output in the decoding stage: a single stream goes from about 90 to 200–300 tokens per second (measured on a single H200 stream) Measured. The output matches the original model; tool calls, image understanding and the thinking toggle are all kept.

DECODE · SAME OUTPUTIllustrative
Before · about 90 tokens/s0
H2MC · about 250 tokens/s0

Illustrative: both sides output the same text in proportion to about 90 and about 250 tokens per second (the midpoint of 200–300), slowed down 5×; one word is approximated as one token.

All-modality deployment

One set of hardware,
five classes of model services at once.

Each modality has a different bottleneck, so the approach differs too. For the layer above, the five classes of models are grouped into four capability slots: language, image, video and audio (speech and music share the audio slot).

ModalityRepresentative models managedMain bottleneckH2MC's approachServices offered
Language and reasoningOpen-source models such as DeepSeek, GLM and KimiRepeated prefill on long contexts; decoding limited by VRAM bandwidthStateful cache · Lane pinning · Speculative decoding · Fused MoE operatorsAgent inference API, monthly plans, private enterprise deployment
Streaming speech synthesisStreaming TTS models (voice cloning, multilingual)Sensitive to first-packet latency; scheduling fragmentation from many small concurrent requestsChunked pipeline decoding · Dynamic batchingDubbing, live-stream speech, multilingual dubbing
AI musicScore and song generation modelsVRAM growth on long audio sequencesChunked decoding · Low-precision operator fusion · Asynchronous queuesShort-drama scores, theme songs, music API
ImageMulti-reference image generation and local editing modelsMulti-step denoising takes time; stacked control conditions take up VRAMStep distillation · Attention fusion · Weight sharingCharacter and scene master images, commercial photography, posters
Video and world modelsRayWorld R1 / Live, MiniMax H3, WanSpatiotemporal attention is compute-heavy; video decoding is prone to OOMSpatiotemporal attention sparsification · Step distillation · Chunked decoding · Latent reuseVideo billed per second (RayWorld 768p: 1 credit per second = ¥0.07), 25 fps live streams
Architecture-level post-training

Write business constraints into the model,
not into the prompt.

The method was first put into practice by Haohong on RayWorld R1, then built into H2MC's post-training service. When we post-train for enterprise customers, the added weights belong to the customer.

StepWhat we doWhat happens if it goes wrong
① DecomposeFind the smallest change surface and modify only the layer that has to changeChange too much, and existing capabilities collapse
② Wire inConnect structured constraints (such as camera pose or business rules) into attentionWire into the wrong layer, and the constraint has no effect
③ Preserve capabilityRun regressions item by item, then use distillation and quantization-aware post-training to bring cost back down to a single cardLook only at consistency, and image quality drops while price rises

Acceptance is judged by metric gains on the evaluation set. The result for RayWorld R1: camera pose became a parameter in the request; within a single generated clip, when the camera turns away and back, objects stay in place; inference runs on a single card, at ¥0.07 per second for 768p Live.

Platform and pricing

Billing and reconciliation,
failover and private deployment.

01 · Migration

Change only the base URL and key

Compatible with the OpenAI and Anthropic API protocols; customers' existing code and agent frameworks only need to change base_url and api_key.

02 · Stability

Primary–backup failover, automatic circuit breaking

Primary and backup switch over automatically; when the same upstream fails repeatedly, the circuit breaker trips automatically to keep the fault from spreading.

03 · Billing

Hold first, settle only on success

Quota is held before the call and settled only on success; on failure the full amount is returned, with no double charging.

04 · Private deployment

From 2 commodity servers

The platform itself starts from 2 commodity servers and can be deployed in the customer's data center; data stays inside your environment.

ZERO-REWRITE MIGRATION · TWO LINES TO SWITCH
from openai import OpenAI
client = OpenAI(
base_url="https://your-h2mc-gateway.internal/v1",~ Changed
api_key="h2mc_live_your_key",~ Changed
)
# Existing agent loops, tool calls, and streaming handlers stay 100% untouched
resp = client.chat.completions.create(model="deepseek-r1", messages=history, tools=tools)
Native OpenAI & Anthropic dual-protocol gateway: Automatic session-affinity routing hits stateful KV cache out of the box. Live
Live
¥69 / ¥199 / ¥369per month

Three monthly plans for agent inference.

Live
30%of list price

Pay-as-you-go, at 30% of the model vendor's official list price.

Live
¥0.07per second

RayWorld R1 768p. Sold by credits on Yingma (小影马): 1 credit = ¥0.07; 768p costs 1 credit per second.

Custom
Quoted per project

Dedicated nodes and custom post-training projects.

Where it sits in H2 AIDM

Rooted in the compute below,
supplying capability slots above.

Resources

H2 Model Combo whitepaper

Workload differences, the three inference mechanisms, all-modality deployment, architecture-level post-training, platform and pricing. The same content as this page.

← H2 AIDM · L0 ComputeH2 GPU Combo