Skip to content

fix(server): align high-noise video options with native support - #2457

Merged
leejet merged 1 commit into
masterfrom
fix/server-high-noise-video-options
Nov 28, 2026
Merged

leejet merged 1 commit into
masterfrom
fix/server-high-noise-video-options

Conversation

@leejet

@leejet leejet commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • 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.

Related Issue / Discussion

Fix #2451.

Additional Information

N/A

Checklist

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.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related PRs

Suggested reviewers: crystalsighting, stduhpf

Merge Risk: Minimal · up to 9a009

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed 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 Passed 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/

... [truncated 1004 characters] ...

_CPP_17;JSON_HAS_CPP_20;_HAS_CXX17=1;_HAS_CXX17=_HAS_CXX17...
Checking examples/server/routes_sdcpp.cpp: JSON_HAS_CPP_11;JSON_HAS_CPP_14;JSON_HAS_CPP_17;JSON_HAS_CPP_20;_MSVC_LANG=202002L;_MSVC_LANG=_MSVC_LANG...
Checking examples/server/routes_sdcpp.cpp: JSON_HAS_EXPERIMENTAL_FILESYSTEM;JSON_HAS_FILESYSTEM...
Checking examples/server/routes_sdcpp.cpp: JSON_HAS_EXPERIMENTAL_FILESYSTEM;JSON_HAS_FILESYSTEM;_MSC_VER=1913;_MSC_VER=_MSC_VER...
Checking examples/server/routes_sdcpp.cpp: JSON_HAS_EXPERIMENTAL_FILESYSTEM;JSON_HAS_FILESYSTEM;GNUC=8;GNUC=GNUC;MINGW32=MINGW32...
Checking examples/server/routes_sdcpp.cpp: JSON_HAS_EXPERIMENTAL_FILESYSTEM;JSON_HAS_FILESYSTEM;__IPHONE_OS_VERSION_MIN_REQUIRED=129999;__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_OS_VERSION_MIN_REQUIRED...

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

@leejet
leejet merged commit fb226da into master Nov 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] sd-server WebUI sends unsupported high-noise guidance parameters for MiniMax-H3 video generation

1 participant