Gapnil Reports a Five-Second Video Every Three Seconds on Eight RTX 5090s

The team reports continuous throughput with a specific three-step LoRA pipeline, alongside median complete-request latency of 6.96 seconds. Engine changes, quality trade-offs, hardware configurations and estimated costs are kept distinct.
Gapnil and Singularity Escape report a method for continually optimizing the Gapnil inference engine with agents. With eight RTX 5090s and a specific three-step LoRA configuration, the 33-billion-parameter MiniMax-H3 produces a 5.17-second video every three seconds on average in continuous operation. Median latency for a complete server-side request is 6.96 seconds.
These are pipeline throughput and request latency, respectively, and should not be confused. The team’s AgentV product also attempts to reduce repeated shots by building a shared 3D space before generating video from camera positions.
The market for AIGC content is growing rapidly. Take Hongguo Short Drama: QuestMobile data show that its monthly active users exceeded 356 million as of May 2026, and AI-generated short dramas and animated dramas are becoming increasingly common on the platform. Content producers, however, are having a difficult time. According to DataEye, the top 5% of projects take 70% of industry profits, while only 3%–5% of mid-tier companies are profitable. Of the 221,900 new AI short dramas and animated dramas added to Douyin in the first half of 2026, only 1.3% reached break-even.
Where the money goes: two reasons
Content producers spend most of their money in two areas.
Reason one: inference costs are too high. Consider MiniMax-H3, a representative video generation model in the open-source community: it has 33 billion parameters and generates a 5.17-second video at 1344×768 resolution with a stereo soundtrack. According to community-reported figures, generating one clip with the mainstream ComfyUI setup on a single RTX 5090 takes 518 seconds for denoising alone. Hosted APIs charge by the second. Based on the starting prices for different providers published by Pika, each second of output video costs US$0.01–0.103. A drama contains many shots, and every shot may need repeated revisions, so inference costs quickly add up.
Reason two: models do not understand physical space. Camera movements can only be described in text, and getting the desired camera angle often takes repeated attempts. Each generation creates a new world, making continuity between characters and scenes difficult. When a shot does not follow instructions, the only option is to try again, and every attempt incurs another inference charge.
Gapnil AI has two products, each addressing one of these problems: the Gapnil inference engine lowers inference costs, while the AgentV video production platform builds a space first and then generates video.
Gapnil: lowering inference costs through recursive self-improvement
Gapnil AI and Qidian Taoyi recently announced a development: the recursive self-improvement (RSI) system they jointly built is being used to optimize Gapnil, the inference engine developed in-house by Gapnil AI, round after round. Agents submit candidate changes; independent reviewers retest them against acceptance criteria approved in advance. Code and experience that pass are carried into the next round, with a human review gate before release. Each iteration improves the engine’s inference efficiency a little further, bringing costs down. MiniMax-H3 provides the following example.
The test server has eight RTX 5090s without NVLink. For a 1344×768, 5.17-second video, median online generation time is 5.23 seconds, while a complete server-side request including packaging takes 6.96 seconds. At 1280×720, generation takes 4.83 seconds.
In a September 22 test, a three-step acceleration adapter and overlapping decoding, packaging and the next generation produced an H.264 video with AAC stereo every three seconds on average. Comparisons with SGLang and the estimated RMB 0.02–0.03 per clip require the hardware, precision and full-utilization qualifications below.

Gapnil experiment records and online logs, September–October 2026 · 8×RTX 5090; the four-step and three-step modes use acceleration LoRA
Benchmarks: up to one clip every three seconds in continuous generation; about seven seconds median for a single online request
First, the results. All the figures below come from Gapnil’s experiment records and online logs on an 8×RTX 5090 server, using a three-step configuration on October 14–18, 2026. Costs are estimates:

The move from 226 seconds on one GPU to about seven seconds online changed GPU count, denoising steps, and the engine at the same time; it cannot all be credited to the engine. Reducing the step count from 49 to three relies on the team’s own three-step acceleration LoRA. That is a model-side change, not an inference-engine speedup. The engine’s contribution must be assessed at the same step count: in full 49-step mode, four GPUs reduced the time per clip from 226.2 to 91.1 seconds; a single forward pass took 937 milliseconds on eight GPUs, versus 1,570 milliseconds on four. With the same six prompts and three steps in both cases, Gapnil took 9.19–11.73 seconds end to end, versus 29.65–31.74 seconds for SGLang. These figures were timed on the client and cannot be compared directly with the server-side times above. Nor were the configurations equivalent: Gapnil used seven GPUs at NVFP4 precision, while SGLang used four at BF16. A standard 20-step SGLang deployment took about 115 seconds.

Serving benchmark with identical prompts, October 14, 2026 · 1280×720, 124 frames, six prompts
Four kinds of optimization: from a single forward pass to the entire pipeline
Gapnil is an inference engine that Gapnil AI developed from scratch, rather than building on an existing inference framework. The figures for the four types of optimization below come from individual experiments during development. Their resolutions, GPU counts, and step counts differ, so they cannot simply be added together to obtain the online latency.
First, rewriting the computation path. In the same set of 49-step, 1344×768 tests, the team successively added NVFP4 W4A4 low-precision computation (1.37×), Sol sparse attention (2.62×), fused RMSNorm (1.19×), and pointwise operator fusion (1.14×) to a single forward pass. The first two are approximate computations that introduce measurable numerical deviations; the deviations for each were recorded.
Second, parallelizing across multiple GPUs without NVLink. The eight GPUs are spread across two NUMA nodes and have no NVLink between them, yet Gapnil still distributes a single request across multiple GPUs. Keeping the text encoder resident on a dedicated GPU reduced the encoding stage from 31.38 to 1.08 seconds in the four-GPU denoising configuration.
Third, dividing work and overlapping it. In the online configuration, seven GPUs denoise in parallel and one handles delivery of the finished clip. Grouping and overlapping inter-GPU communication with computation reduces the time per forward pass by 7.0%, with bitwise-identical output.
Fourth, shortening the stages outside denoising. In individual experiments, keeping the VAE resident in GPU memory reduced decoding from 15.8 to 12.7 seconds. Dividing decoding into temporal chunks across multiple GPUs delivered another 1.78× speedup in tests with fixed latents, with bitwise-identical pixels. Switching to NVENC hardware encoding reduced muxing from 9.46 to 2.01 seconds.

Illustration of scheduling across time and hardware resources (not to scale)
The RSI loop: which changes get to stay
Inference optimization rarely finishes in one attempt. Once an optimization is implemented, the balance between computation and communication changes, and previously minor decoding or muxing work may become the next bottleneck. A change in model, hardware, or resolution can also make a previously effective approach ineffective. Each round therefore has to start from the version validated in the preceding round.
Qidian Taoyi and Gapnil AI jointly built this RSI system. Gapnil AI supplies the Gapnil inference engine, profiling toolchain, an 8×RTX 5090 experimental environment, and its engineering experience in accelerating model inference. Qidian Taoyi leads the loop’s system design and is responsible for three central mechanisms that determine “which improvements can be retained”: acceptance proposition trees, independent review, and experience inheritance.

Overall architecture · The engine on the left produces clips; the loop on the right keeps making it faster
Qidian Taoyi has long studied how self-evolving agents should be evaluated and constrained. It previously released SEAGym, an evaluation framework for self-evolving agents, focusing on whether an improvement genuinely works and whether existing capabilities have regressed.
In Qidian Taoyi’s view, getting an agent to write faster code is not difficult. The difficult part is deciding whether that code can become the starting point for the next round.
Its approach is to set acceptance criteria at the start of each round, have independent reviewers judge them, and archive the conclusions for use in the next round. Each round has five stages:
1. Approve the acceptance proposition tree: Before optimization begins, break the round’s goal into acceptance criteria that can be judged individually. Once approved, they remain unchanged throughout that round;
2. Propose and implement: In a separate workspace, the agent independently chooses an optimization direction based on profiling results and modifies the code;
3. Independent review: Reviewers check each acceptance criterion, including numerical alignment with the official implementation, strict A/B comparisons, no degradation in image-quality metrics, complete output, and stable operation. Speed is examined only after those checks. If any criterion fails, the candidate is sent back;
4. Archive and inherit: Code that passes and the round’s experience report become the starting point for the next round. Failed criteria and their evidence are archived as well;
5. Human gate: Human review takes place before release and does not participate in optimization feedback, to prevent the system from “optimizing for the score.”

One round of RSI · Labels beneath the stages identify the responsible parties
Acceptance criteria are determined before the code
“Faster without getting worse” is common sense to engineers, but it is difficult to leave that judgment to a machine. Problems with image quality, the soundtrack, frame count, GPU memory, or numerical precision will not show up in a speed measurement.
Gapnil’s experiment records contain numerous candidates that were “faster but wrong”:
- One fused RMS-AdaLN operator was 7× faster, but its video output had a cosine similarity of only 0.985 to the reference, and its audio only 0.859;
- A VAE compiled with torch.compile produced 148 frames, instead of the required 124;
- One approach that kept components resident in GPU memory ran out of GPU memory on the second 480p request;
- An eight-step acceleration LoRA had a patch-FID as high as 31–48.
If speed alone were considered, all these candidates would have been merged.
Before optimization starts, Qidian Taoyi breaks the broad goal into an acceptance proposition tree. Its root is “this candidate optimization can be merged into the main branch.” It is decomposed level by level into smaller, directly verifiable conditions, joined by “and” or “or,” until every proposition can be judged reliably.
The tree itself must also pass review first: does it faithfully reflect the original goal, does it stay within the task’s scope, and can each leaf condition be judged reliably? Once approved, the criteria cannot change within the round. The agent can change the code, but not the acceptance criteria.

Illustration of an acceptance proposition tree · The votes shown are illustrative
Judgments are made by independent review agents. They run separately from the agent proposing the optimization, read only the materials necessary for judgment and the current code, and provide a “true” or “false” verdict with evidence for each criterion. The same criterion can receive multiple independent judgments. An agent’s own report that it has “completed” the task does not count toward the conclusion.
A candidate passes only when all necessary conditions hold. If it fails, the system returns the failed conditions and their supporting evidence, allowing the next round to adjust accordingly.
Failed attempts are archived too
Alongside gating, the loop must preserve the experience of every round.
At the end of each round, the system leaves an experience report: what was attempted, which conditions held and which did not, where the evidence is, and why the candidate was accepted or rejected. The next agent starts from the latest passing version and these reports, rather than having to explore from scratch.
Rejected attempts are archived as well. In the experiments, SVDQuant quantization reduced error only from 17.6% to 16.8%; a W8A8 approach incurred 1.7× the GPU-memory overhead; and communication groups 3/4 brought no benefit. Later rounds will not repeat these approaches.
A central risk of recursive self-improvement is that errors can also be inherited and amplified. The system therefore imposes several constraints: acceptance criteria are fixed before optimization begins; the proposing agent and judging reviewers are independent; failed candidates are discarded without entering the main branch; and internal passing verdicts are recorded separately from external retesting and human review, without overwriting one another.
A recent study observed a similar phenomenon. The University of Chicago’s SEIS (Self-Evolving Inference Systems) study, released in October 2026, let coding agents autonomously optimize the mini-sglang inference engine across 480 sessions. On Qwen3-0.6B / H100, the best engine increased throughput from 594 to 1,942 tokens/s. A “chain” of successive iterations inheriting code and experience outperformed independent attempts. The study also recorded a risk: one agent omitted about 39% of vocabulary rows yet still passed the task evaluation; only a subsequent code review uncovered it. Looking at a single overall score can teach a system to “optimize for the score.” Acceptance proposition trees, independent review, and numerical-alignment thresholds target precisely this kind of problem.
Quality validation
At the numerical level, changes must align with the official implementation block by block. The maximum relative deviation in the first four Transformer blocks was 8.8×10⁻⁷, and the VAE decoder’s cosine similarity was 0.99999982. Engineering changes must pass strict A/B comparisons and are accepted only when audio and video are bitwise identical. In dequantization mode, latents and pixels were bitwise identical between one and four GPUs. Low-precision computation and sparse attention are approximate computations with much larger deviations from the reference implementation, so the image-quality metrics below must also be examined.
Before-and-after comparisons document the image-quality loss from low-precision computation. FP4 activation scaling originally rounded blocks of small values directly to zero. After the fix, DINOv2 similarity to the high-precision 49-step reference rose from 0.635 to 0.886, and motion retention from 0.55 to 0.87. Adding two residual corrections increased motion retention to 0.95.
Rendering comparisons and alignment checks also helped the team locate and fix several discrepancies from the official implementation. Three were in text encoding and caused the model to almost “ignore the prompt.”
The acceleration LoRA used in the online three-step mode changes the generation process, and the team does not consider its image quality equivalent to 20-step generation. For the highest image quality, users can switch to the full 49-step mode, which runs on a single GPU.
Cost: RMB0.02–0.03 per video
The team estimates that an 8×RTX 5090 server costing roughly RMB150,000–200,000 in total hardware can produce about 12,000 videos a day at full utilization when processing serially at the online median server-side time of 6.96 seconds. Using the September continuous-generation test’s roughly three seconds per clip instead puts daily output at nearly 30,000. Amortizing hardware over three years and assuming electricity at about RMB1/kWh gives hardware and electricity costs of approximately RMB0.02–0.03 per five-second video, excluding operations, data-center space, bandwidth, and labor. For reference, published starting prices put a five-second video from hosted APIs at about US$0.05–0.52. API prices include providers’ gross margin and operating costs, however, so the two cannot be directly compared. Actual figures vary with purchase prices, electricity tariffs, and utilization.
The entire server can also be installed in a customer’s own data center, keeping source materials and finished videos within the internal network, which is more convenient for industries with demanding data-compliance requirements.
Cheaper inference solves only half the problem. If a camera shot still will not follow instructions and one image takes ten attempts, the savings will simply be spent again. This returns us to the second reason mentioned at the beginning: models do not understand physical space. Gapnil AI built another product, AgentV, to address this.
AgentV: build the space first, then generate video
AgentV is Gapnil’s video production platform, with clips produced by the Gapnil engine. Since the model does not understand space on its own, AgentV first constructs the space for it: build a three-dimensional space, then generate video within it. There are three steps:
1. Build the space through conversation: Describe a scene in natural language and revise it as the conversation proceeds. The system estimates camera position and depth of field, turning a flat image into a 3D space that can be entered. Shelves, posters, and furniture remain in place when the camera angle changes.
2. Position cameras within the space: Cameras are placed directly in the space. Position, focal length, field of view, and motion path are all adjustable numerical values. Presets such as a frontal wide shot, reverse shot, overhead shot, and low-angle shot are also available. First use an uncolored graybox model to confirm composition and blocking, then add color to produce the image.
3. Generate the finished video shot by shot: Characters and scenes each have assets shared across the entire drama. Changes of clothing, close-ups, and different emotional expressions all correspond to the same face. Images are generated shot by shot, paired with voice-over and music, and automatically arranged on the timeline. Changing one line of dialogue requires remaking only the affected shots.
The team says a shared 3D space gives camera positions, focal lengths and furnishings explicit numerical settings, helping control framing and scene consistency. Roughly seven-second output latency also makes revisions quicker to inspect. Shot quality still depends on assets, prompts and configuration.
Workflows the speed improvement could support
The team identifies five potential uses. Output and cost figures below assume full utilization; the applications are proposals rather than evidence that every product format is already deployed.
Short dramas and animated shorts.Creators can compare camera positions, performances and lighting for the same shot, or regenerate only shots affected by dialogue changes. The estimated few fen cover hardware and electricity, while production also requires labor, assets and selection.
Advertising and commerce.At roughly one clip every three seconds, a fully utilized machine could approach 30,000 clips daily. The team proposes versions for different audiences, seasons and platforms, screened by campaign results. More generated material does not guarantee better advertising.
Games and interactive entertainment.A 5.17-second clip every three seconds leaves room for continued generation during playback. Interaction also depends on initial waiting time, responses to player input, shot transitions and character consistency; throughput alone does not solve those problems.
Film previsualization.Viewing and revising a sample within ten seconds of proposing a shot could shorten the wait between discussion and review. This is a workflow the team proposes on the basis of current latency.
Longer videos and higher resolution.The team hopes to use the headroom for clips of around ten seconds or 1080p output. Results await measurement and publication; those capabilities have not been established by the present tests.
Directions that still need validation
Beyond the current configuration, the team outlines three further goals.
Run the inference engine on a wide range of Chinese-made chips. The results announced here concern the RSI loop on MiniMax-H3. The team says it is extending this RSI method to inference optimization for more models and aiming for more general adaptation capabilities; the results made public here do not establish that it works for every model. The team is working intensively on a more general inference-acceleration engine for various Chinese-made chips, with progress to be announced at a later date.
The second is reducing interactive waiting times so livestreams, virtual characters and interactive stories can respond with generated visuals. Continuous throughput has improved, but latency and visual continuity still need testing in these applications.
The third is connecting scripts, character assets, storyboards and output into an AgentV production workflow that makes iteration more affordable for small teams. The effect on whole-project staffing and budgets needs evidence from actual productions.
The same quality-feedback and self-evolution methods will also be applied to an animated-drama model built on the same foundation. Results will be released separately after actual testing.
- Learn more: https://gapnil-ai.github.io/io/
Contact us
Core members of Qidian Taoyi and Gapnil AI both come from Tsinghua University’s Department of Automation. Qidian Taoyi aims to build future organizations in which people and AI evolve together and intelligence emerges through collaboration. Gapnil AI focuses on building AI infrastructure capable of self-evolution.
To try AgentV or Gapnil, contact the Gapnil AI team by email at georgewang2011@163.com.
This article is from “Synced,” by “Synced.”
Related topics
After reading
Join the AINRK community
Read how to join the community and connect with people working in AI.




