Turn inference bottlenecks into verified improvements.
Why InferRSI Β· How It Works Β· Results Β· Quickstart Β· Architecture Β· Docs
InferRSI is a CLI workbench for inference optimization with coding agents. Bring your benchmark and quality checks; compare implementations, trace every gain to its source, and carry useful tuning lessons into the next experiment.
- Profile first. Ground each optimization in measured bottlenecks and sourced tuning knowledge.
- Prove the gain. Run repeated A/B comparisons with quality gates, source fingerprints, and an HTML evidence report.
- Keep the lessons. Search prior experience and export cited context for Codex or other coding agents.
You drive profiling and code changes; InferRSI runs and evaluates the benchmark and validation commands you provide.
Optimize with evidence. Reuse reviewed lessons. Humans and coding agents prepare candidates; Workbench runs controlled comparisons against the target engine. Evidence guides the next experiment and may inform reusable knowledge, including limitations from failed attempts. Architecture Β· Roadmap.
Illustrative target workflow; no measured results. Watch the MP4.
Knowledge retrieval is read-only; candidate storage is optional and separately
authorized. Automatic model-backed search and automatic knowledge promotion remain
planned. Missing or incomplete evidence stays INCONCLUSIVE.
The offline harness-improvement MVP adds a separate Skill Eval path for supplied declarative candidates. Its fixed-output experiments validate the controller; real-model gains remain unmeasured. Flow, limits and reproduction β
| You want to⦠| Start at |
|---|---|
| Modify InferRSI itself | Contributor guide and agent collaboration, under an accepted Issue scope |
| Use the Workbench to run experiments | Quickstart: prepared target environment, benchmark/quality contracts, authorized experiment, recorded evidence |
| Complete an optimization benchmark in the current Agent | Iterative task sessions, with frozen rounds, independent feedback and final retesting |
| Deliver an independent inference engine | Engine delivery template: copyable scaffold and recipe handoff; no InferRSI runtime dependency |
For every CLI/Python operation β discovery, normalized reads, store candidates, experiments β see the operation guide.
InferRSI campaigns and upstream experiments cover image, video and speech models. Each result applies to its linked workload and measured revisions. Some results are reported directly by upstream contributors, with validation scoped to their benchmarks.
Benchmarks, validation limits, and upstream PRs
| Model | Hardware | Optimization approach | Measured gains | Validation and limits | Evidence | vLLM-Omni PR |
|---|---|---|---|---|---|---|
| Qwen-Image-2.1-Turbo | 4Γ B300 |
|
384.16 β 266.60 ms (β30.60%) Warm HTTP end-to-end latency, repeated prompts |
Historical InferRSI campaign. Latencies are medians of five trial means from alternating AB/BA groups. All 44 RGBA images were pixel-identical. | Campaign #3 Β· Pinned results | #8739 (merged) |
| Qwen-Image-2.1-Turbo | 1Γ Ascend 910B1 |
|
β22.20% offline generation latency Warm repeated prompts |
Upstream parent-to-merge comparison. 18/18 RGBA images were pixel-identical. The 30% target was unmet. Both arms aborted during teardown, leaving lifecycle INCONCLUSIVE. |
Final-merge measurements Β· Earlier Ascend cohorts | #8729 (merged) |
| MiniMax-H3 Ref2VA | 8Γ Ascend 910B1 |
|
407.27 β 108.12 s (β73.45%) 5 s video, HTTP end-to-end vs. dense inference |
All 14 frozen quality comparisons passed. | Campaign #293 Β· Pinned results | #9698 (draft) |
| MiniMax-H3 Ref2VA | 4 logical Ascend 910C devices |
|
291.25 β 286.67 s (β1.57%) 5 s video, HTTP end-to-end |
One lossless screening pair. Strict quality checks passed for the screened candidate. Overall campaign INCONCLUSIVE. |
Campaign #297 Β· Evidence PR #317 | #9745 (draft) |
| MiniMax-H3-Image | 4Γ Ascend 910B1 |
|
16.89 β 10.82 s Β· 4736Γ3552 generation 4.18 β 2.67 s Β· 1024Γ1024 generation 5.68 β 4.57 s Β· 1024Γ1024 editing |
Single-launch HTTP medians vs. the same-layout SP4 control. All 30 numerical image screens passed. Latency targets were unmet and final qualification remains INCONCLUSIVE. |
Campaign #390 Β· Evidence PR #394 | #10184 (open) |
| MiniMax-H3-Image | 2Γ RTX 3090 |
|
36.62 β 14.59 s (β60.16%) Warm mean HTTP delivery latency |
One upstream A/B of complete deployment profiles. All nine image pairs had identical decoded RGB pixels, including warmups. Repeated qualification remains incomplete. | Paired deployment benchmark | #10243 (open) |
| MiniCPM-o 4.5 | 1Γ L20X |
|
+15.55% throughput Β· β27.69% median TTFA Packed conditioning, C32, same 50-frame window +20.5% at C16 Β· +25.4% at C32 TensorRT + MPS throughput |
The packed-conditioning candidate missed the exploratory WER margin against the tuning reference at the 50-frame setting. The separate TensorRT + MPS comparison had speech-quality verdict FAIL. |
Campaign #49 | #9218, #9188 (both merged) |
| Qwen3-Omni | 2Γ L20X |
|
+7.79% throughput Β· β6.06% mean RTF One C64 pilot |
Median time to first audio regressed by 7.12%. Campaign INCONCLUSIVE. |
Campaign #112 Β· Pinned pilot | #9283 (draft) |
| LFM3-Omni-2B | 1Γ Ascend 910B1 |
|
0.285 β 0.593 requests/s Upstream offline Omni API A/B, C4, temperature 0 |
Retained audio waveforms matched bit-for-bit within each tested temperature. | Offline A/B benchmark | #9827 (merged) |
| LingBot-World | 4Γ Ascend 910C1 |
|
108.29 β 103.89 s (β4.06%) Full-request latency, upstream AB/BA |
Pre-codec tensors and decoded RGB frames matched exactly. | KV gather benchmark | #8112 (merged) |
Earlier Qwen-Image-2.1-Turbo Ascend measurements. On one Ascend 910B1 at
1280Γ704, BF16, eager, and eight native steps, the author reported a 3111.5 ms
baseline. Conditioning reuse with interleaved RoPE reached 2459.6 ms (β21.0%)
with pixel-identical RGBA. Adding the opt-in VAE fastpath reached 2425.5 ms
(β22.0%) and passed the reported quality gate with changed pixels. Each mean
covers three requests after two warmups. InferRSI verification covered the
import, so acceptance remains INCONCLUSIVE. The 30% target was unmet. The B300
campaign and this cohort used different hardware and measurement protocols.
Earlier Ascend report
TTFA is time to first audio. RTF is real-time factor. WER is word error rate.
Upstream PR statuses checked on 2026-11-12.
h3-metal provides Metal-native FastH3 and MiniMax-H3 text-to-video/audio inference on Apple GPUs.
Author-reported results on Apple M5 Max (40-core GPU), 128 GB, macOS 27, at 768Γ448, 49 frames, seed 0, using real weights with one engine running at a time.
| Engine | Device | Steps | Cold | Warm | vs. MLX (cold / warm) | vs. h3.c (cold / warm) |
|---|---|---|---|---|---|---|
PipeNetwork/minimax-h3-mlx (4-bit) |
Apple M5 Max (40-core GPU) | 20 | 153.1 s | 134.6 s | 1.00Γ / 1.00Γ | 0.44Γ / 0.54Γ |
antirez/h3.c, default preset |
Apple M5 Max (40-core GPU) | 20 | 67.6 s | 73.3 s | 2.26Γ / 1.84Γ | 1.00Γ / 1.00Γ |
| h3-metal, original H3 | Apple M5 Max (40-core GPU) | 20 | 54.29 s | 29.89 s | 2.82Γ / 4.50Γ | 1.25Γ / 2.45Γ |
| h3-metal, FastH3 4-step + block-sparse attention | Apple M5 Max (40-core GPU) | 4 ΒΉ | 48.23 s | 18.20 s | 3.17Γ / 7.40Γ | 1.40Γ / 4.03Γ |
Cold includes the first clip's weight loading, text encoding and preparation; warm reuses loaded weights and prepared state.
ΒΉ FastH3 uses a distilled 4-step checkpoint, unlike the 20-step configurations. Warm values average clips 2β4 for the 20-step rows and two A/B/B/A warm runs for FastH3.
Author's report and reproduction β. These external results were not rerun in InferRSI.
Concurrency 1 (C1) results reported by each project. Values are engine / vLLM-Omni / SGLang-Omni; compare within a row, since workloads and audio-frame definitions differ.
| Project | Device | Throughput (frames/s) β | TTFA p50 (ms) β | Report and status |
|---|---|---|---|---|
| Drama 3 | 1Γ B300 | 309.17 / 195.89 / 169.80 | 32.83 / 47.29 / 79.38 | 3-run medians; overall target unmet |
| Qwen3-TTS | 1Γ Ascend 910B1 | 61.12 / 12.71 / 4.31 | 50.41 / 263.51 / 439.72 | 3-run means; source campaign accepted |
| MiniCPM-o 4.5 | 1Γ L20X | 397.43 / 187.52 / 278.72 | 126.2 / 295.3 / 381.2 | 5-run means; target unmet, quality unqualified |
MiniCPM's SGLang baseline returns a complete waveform, so its TTFA equals end-to-end latency. These external results were not rerun in InferRSI.
Requires Python 3.10+. Licensed under Apache-2.0.
InferRSI is a Developer Preview (pre-release), with no API stability promise. The daily release bot publishes a version when the default branch changes.
Install the plugin in two steps. Use a local Codex client with ZIP upload support, Python 3.10+ and Git.
- Download the package from GitHub. Open
Releases and download
inferrsi-codex-plugin-vX.Y.Z.zipfrom the selected version's assets. - Install it in Codex. If your client offers Plugins β Add β Upload plugin archive, use it to import the downloaded ZIP. Select Install plugin on the InferRSI detail page if that action is available. Once installed, enable InferRSI and start a new conversation in your target repository.
The runtime and knowledge are bundled; core operations need no separate pip install or InferRSI source checkout. The plugin guide covers checksum verification and client compatibility. The video highlights the click order with English UI illustrations based on the supplied Codex screenshots; it does not record a completed installation.
Try a first task:
Use InferRSI to research this engine's memory bottleneck. Find relevant knowledge and explain what is needed for a controlled comparison.
Or inspect existing evidence:
Use InferRSI to inspect the existing run I provide and explain its verdict, missing evidence and next action.
Setup checks readiness without starting benchmarks. Experiments run locally on the prepared target machine using your accepted gates and budget. See the plugin guide for installation, updates and troubleshooting.
For DeepSeek Harness, build and install the native DSH bundle. For openJiuwen WorkSwarm v0.2.7, use the native plugin ZIP.
This preview is not on PyPI. Download the wheel and SHA256SUMS from the selected
Release, verify its checksum,
then install the downloaded wheel:
python -m pip install "<download-directory>/inferrsi-<version>-py3-none-any.whl"For CLI development from this checkout:
python -m venv .venv
source .venv/bin/activate
python -m pip install .
# Explore tuning knowledge, then export context for your coding agent.
inferrsi knowledge search 'Qwen-Image-2.1' --repo-type vllm_omni --backend ascend
inferrsi context --repo-type vllm_omni --backend cuda --output context.mdFor Ascend image-generation context:
inferrsi context --repo-type vllm_omni --backend ascend \
--scenario diffusion.image_generation --output ascend-context.mdReady to measure your own model? Connect your benchmark and quality checks β
One experiment loop. Independent model, repository and hardware adapters. The implemented Harness Γ Model Γ Infra boundary keeps new campaigns out of the common AB/BA scheduler, process cleanup and evaluator.
English SVG Β· Chinese original
The supplied overview and its English translation summarize the intended workflow. Evidence feeds the next experiment through explicit review and user-selected constraints; automatic evidence-to-knowledge promotion or RunSpec population is not implemented. Process-cleanup behavior still needs platform-specific validation. See the source audit and proposed remedies for the 34 review points, qualifications and suggested acceptance checks.
Alongside the engine loop, the offline improvement controller
composes the existing Skill Eval comparator and independent verifier. Its selection
policy lives in harness/improvement.py; the tool adapter freezes snapshots and
carries the total budget across probes, rerun and holdout. The engine diagrams above
continue to describe the engine path; this additional lane does not provide engine
performance evidence or an autonomous model-backed optimizer.
Extension guide and compatibility boundary β Β· Original design diagrams (English / Chinese) β
| Start here | What you will find |
|---|---|
| Quickstart | Installation, real A/B experiments, and reports |
| Operation guide | Every CLI/Python operation: entry point, effect class, boundary and example |
| Bounded skill evaluation | Real-client skill/task comparisons, independent outcomes and evidence limits |
| Offline harness improvement | One INV/DOM step, quality/cost selection, held-out gate and reproducible controller experiments |
| Qwen B300 | Reproduction, profiling, optimization ledger and exact image checks |
| Qwen Ascend | NPU results, rejected rounds and verification scope |
| h3-metal lessons | MiniMax-H3 on Apple silicon: measurement pitfalls, gains, rejected directions and search-loop lessons |
| Apple silicon playbook | Measured, engine-agnostic lessons for Metal/MLX engines: unified memory, Metal execution and benchmarking a shared Mac |
| Knowledge base | Three learning tiers: contribution, dependency impact and peer techniques |
| Skill catalog | Searchable records linking categorized skills to full packaged procedures and resources |
| Source audit | 34 review points with proposed remedies, qualifications and validation criteria |
| Daily learning prompt | 06:00 Asia/Shanghai L2C + performance workflow and prerequisites |
| Complete skill library | Registered skills and English engine/workflow documents, organized by owner |
| vLLM-Omni experience records | Backend-scoped tuning methods, sources, and applicability |
| Contributor guide | Development workflow, evidence contracts, and CI |
| Engine delivery template | Copyable engine scaffold, branding, evidence and schema-v1 catalog recipe |
Build with us. Bring a bottleneck, a reproducible optimization, or a tuning lesson. Open an issue β Use git commit -s for contributions.