All-modality deployment, inference optimized for agents, and architecture-level post-training. About 1 second to first token on long contexts.
H2 Model Combo (H2MC)
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.
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.
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.
| Characteristic | Chat | Agent |
|---|---|---|
| Context | Short | Keeps growing, up to hundreds of thousands or a million tokens |
| New content per step | The whole input is new | Only a small part is new |
| Request rhythm | The pace of a person typing | Calls the model once, runs tools for 30–60 seconds, then calls again |
| Consumption per task | Baseline | 5–30× that of chat |
Capability is not traded for speed: million-token context, tool calls, image understanding and the thinking toggle are all kept.
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.
On the same hardware, every step recomputes the entire history. This is our own baseline for comparison; it does not represent other vendors' products.
Only new content is computed; time to first token barely grows with the length of the history.
Illustrative animation: green is a hit on an existing cache; red is a miss, where the entire history has to be recomputed.
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.
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.
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.
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).
| Modality | Representative models managed | Main bottleneck | H2MC's approach | Services offered |
|---|---|---|---|---|
| Language and reasoning | Open-source models such as DeepSeek, GLM and Kimi | Repeated prefill on long contexts; decoding limited by VRAM bandwidth | Stateful cache · Lane pinning · Speculative decoding · Fused MoE operators | Agent inference API, monthly plans, private enterprise deployment |
| Streaming speech synthesis | Streaming TTS models (voice cloning, multilingual) | Sensitive to first-packet latency; scheduling fragmentation from many small concurrent requests | Chunked pipeline decoding · Dynamic batching | Dubbing, live-stream speech, multilingual dubbing |
| AI music | Score and song generation models | VRAM growth on long audio sequences | Chunked decoding · Low-precision operator fusion · Asynchronous queues | Short-drama scores, theme songs, music API |
| Image | Multi-reference image generation and local editing models | Multi-step denoising takes time; stacked control conditions take up VRAM | Step distillation · Attention fusion · Weight sharing | Character and scene master images, commercial photography, posters |
| Video and world models | RayWorld R1 / Live, MiniMax H3, Wan | Spatiotemporal attention is compute-heavy; video decoding is prone to OOM | Spatiotemporal attention sparsification · Step distillation · Chunked decoding · Latent reuse | Video billed per second (RayWorld 768p: 1 credit per second = ¥0.07), 25 fps live streams |
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.
| Step | What we do | What happens if it goes wrong |
|---|---|---|
| ① Decompose | Find the smallest change surface and modify only the layer that has to change | Change too much, and existing capabilities collapse |
| ② Wire in | Connect structured constraints (such as camera pose or business rules) into attention | Wire into the wrong layer, and the constraint has no effect |
| ③ Preserve capability | Run regressions item by item, then use distillation and quantization-aware post-training to bring cost back down to a single card | Look 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.
Compatible with the OpenAI and Anthropic API protocols; customers' existing code and agent frameworks only need to change base_url and api_key.
Primary and backup switch over automatically; when the same upstream fails repeatedly, the circuit breaker trips automatically to keep the fault from spreading.
Quota is held before the call and settled only on success; on failure the full amount is returned, with no double charging.
The platform itself starts from 2 commodity servers and can be deployed in the customer's data center; data stays inside your environment.
Three monthly plans for agent inference.
Pay-as-you-go, at 30% of the model vendor's official list price.
RayWorld R1 768p. Sold by credits on Yingma (小影马): 1 credit = ¥0.07; 768p costs 1 credit per second.
Dedicated nodes and custom post-training projects.
Runs on existing cards optimized by H2GC, on RTX PRO 4500 cards and on 8×H200 nodes; the paged VRAM pool and session affinity (lane pinning) are implemented by L0 scheduling and are the precondition for cache hits.
Learn about H2GC ↔ L1 World model · Same layerThe architecture-level post-training method was first put into practice by Haohong on RayWorld R1, then built into H2MC's post-training service and opened to enterprise customers.
Learn about RayWorld ↑ L2 Agents · SuppliesLong tasks often run for dozens of turns and hundreds of thousands of tokens of context; a first token in about 1 second makes multi-role orchestration fast and affordable. Four capability slots let the underlying models be switched at any time.
Learn about H2 Harness ↑ L3 Applications · SuppliesYingma's text, image, dubbing, music and video models all serve online at the same time: self-hosted models are provided through H2MC, while third-party models are connected through capability slots.
Learn about Yingma ↑ L3 Applications · SuppliesLong tasks in H2 Code benefit directly from the stateful cache and speculative decoding: about 1 second to first token, and output at 200–300 tokens per second.
Learn about H2 CodeWorkload differences, the three inference mechanisms, all-modality deployment, architecture-level post-training, platform and pricing. The same content as this page.