You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(server): align high-noise video options with native support - #2457
Advertise high-noise controls and defaults only when the current configuration includes a high-noise model, including command-line setups.
Preserve high-noise step counts and shared scheduler and flow-shift aliases. Ignore legacy per-stage sampler, eta, and guidance fields in native video requests.
Update the server API documentation to match the supported options.
If this PR adds or changes model support, I have added or updated its usage guide and relevant model index/README entries following the model documentation requirements.
Summary by CodeRabbit
New Features
Video-generation capabilities now reflect whether a model supports a high-noise stage. High-noise settings are shown only when that stage is available.
Shared sampler and guidance settings apply across video-generation stages. High-noise stages can specify their step count, scheduler, and flow shift; request-level aliases can override inherited settings or clear them.
High-noise model detection now also applies to command-line recipes.
No actionable comments were generated in the recent review.
Walkthrough
Video generation now uses shared sampler and guidance settings across stages. Server capability responses include high-noise fields only when the configured model has a high-noise stage. The API documentation describes the updated parameter behavior.
Changes: Video high-noise handling
Layer / File(s)
Summary
Detect high-noise model support examples/server/model_catalog.cpp
The high-noise feature check now applies to every recipe source. Other feature checks remain limited to non-command-line recipes.
Build conditional video capabilities examples/server/routes_sdcpp.cpp, examples/server/api.md
Capability defaults and feature reporting now use the model’s high-noise flag. High-noise defaults include scheduler, sample steps, and flow shift only. The capability schema describes the conditional fields.
Align shared video sampling parameters examples/common/common.cpp, examples/server/api.md
Video stages use shared sampler and guidance settings, while retaining the high-noise step count. The API documentation describes shared parameters, high-noise aliases, and their applicability.
The change aligns the server's video options with native support and resolves the MiniMax-H3 rejection described in the linked issue. No concrete merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title uses the conventional fix(server) prefix and names the main change: aligning high-noise video options with native support. The changeset covers high-noise advertising, defaults, step counts,…
Description check
The description follows the template sections: Summary, Related Issue / Discussion, Additional Information, and Checklist. The Summary lists the concrete changes, the related issue (#2451) is linked, …
Linked Issues check
Issue #2451 requires that WebUI video generation with MiniMax-H3 work without an explicit DGL workflow. The issue reports that the WebUI sends high_noise_sample_params.guidance.distilled_guidance, whi…
Out of Scope Changes check
All changed files map to the linked issue or its stated fix. common.cpp (to_video_opt), routes_sdcpp.cpp (video defaults and feature map), and model_catalog.cpp (high_noise gating) implement the serve…
Full details: Title check
Explanation
The title uses the conventional fix(server) prefix and names the main change: aligning high-noise video options with native support. The changeset covers high-noise advertising, defaults, step counts, aliases, and API docs, all matching the title's scope. The title is specific and accurate, though it does not mention the ignored legacy per-stage fields.
Full details: Description check
Explanation
The description follows the template sections: Summary, Related Issue / Discussion, Additional Information, and Checklist. The Summary lists the concrete changes, the related issue (#2451) is linked, and both checklist items are checked. Additional Information is only 'N/A', which is acceptable because the template marks that section as applicable only when relevant.
Full details: Linked Issues check
Explanation
Issue #2451 requires that WebUI video generation with MiniMax-H3 work without an explicit DGL workflow. The issue reports that the WebUI sends high_noise_sample_params.guidance.distilled_guidance, which the server rejects unless -M dgl is set. The PR addresses this at three points, based on the PR summary: (1) routes_sdcpp.cpp emits moe_boundary and high_noise_sample_params in video defaults only when generation_features.high_noise is set, and reports the high_noise_sample_params feature from the same flag; (2) model_catalog.cpp applies the high_noise model-path check to all recipe sources, including command-line recipes; (3) common.cpp SDGenerationParams::to_video_opt takes sampler and guidance for all stages from sample_params, so the legacy high-noise guidance no longer reaches the validator. Together these stop the unsupported parameter from being advertised or sent for a single-stage model such as MiniMax-H3. The issue's scope (WebUI/MiniMax-H3, not explicit DGL workflows) is respected. Limitation: the unified diff and the full common.cpp file could not be read (diff returned missing blobs; file read was truncated), so this verdict relies on the PR summary and description rather than direct code inspection of to_video_opt and the validator.
Full details: Out of Scope Changes check
Explanation
All changed files map to the linked issue or its stated fix. common.cpp (to_video_opt), routes_sdcpp.cpp (video defaults and feature map), and model_catalog.cpp (high_noise gating) implement the server-side parameter advertisement and request handling described in #2451. examples/server/api.md is documentation that the PR description explicitly lists and that matches the changed behavior. The removal of the default value for the custom_sigmas argument in the sample-parameter JSON helper is a small signature change within the same defaults-generation code path and supports the same objective. No change was found that targets explicit DGL workflow behavior or unrelated features. Limitation: direct diff inspection was unavailable, so this verdict relies on the PR summary.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Some tools did not complete. Review the errors below.
Cppcheck (2.22.0)
Cppcheck (2.22.0) exceeded its 180-second time budget. Findings from completed work are retained; remaining checks are incomplete.
examples/server/routes_sdcpp.cpp
Checking examples/server/routes_sdcpp.cpp ...
thirdparty/httplib.h:1634:15:performance:returnByReference:Function 'host()' should return member 'host_' by const reference.
thirdparty/json.hpp:8741:26:performance:returnByReference:Function 'get_position()' should return member 'position' by const reference.
thirdparty/json.hpp:21117:13:error:missingReturn:Found an exit path from function with non-void return type that has missing return statement
thirdparty/json.hpp:21140:13:error:missingReturn:Found an exit path from function with non-void return type that has missing return statement
examples/common/resource_owners.hpp:342:65:performance:passedByValue:Function parameter 'image' should be passed by const reference.
examples/common/resource_owners.hpp:380:35:performance:passedByValue:Function parameter 'image' should be passed by const reference.
examples/common/resource_owners.hpp:441:24:performance:passedByValue:Function parameter 'image' should be passed by const reference.
examples/
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 2f0e6085-6f3d-48bd-92d6-dce86e71e6cb
Commits
Reviewing files that changed from the base of the PR and between 51866c1 and 9a00932.
Files selected for processing: 4
examples/common/common.cpp
examples/server/api.md
examples/server/model_catalog.cpp
examples/server/routes_sdcpp.cpp
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related Issue / Discussion
Fix #2451.
Additional Information
N/A
Checklist
Summary by CodeRabbit