Skip to content

upload ar document#931

Merged
helloyongyang merged 1 commit intomainfrom
ar
Mar 9, 2026
Merged

upload ar document#931
helloyongyang merged 1 commit intomainfrom
ar

Conversation

@chengtao-lv
Copy link
Contributor

No description provided.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request integrates support for running quantized versions of the Wan2.1-T2V-1.3B model with Self-Forcing acceleration. It provides new configuration files and updated documentation, making it easier for users to leverage FP8 and NVFP4 quantized models for improved performance or reduced memory footprint in text-to-video generation tasks.

Highlights

  • New FP8 Configuration: A new JSON configuration file was added to support running the Self-Forcing model with FP8 quantization.
  • Updated Documentation: Both English and Chinese beginner guides for Self-Forcing were updated to include detailed instructions for downloading and running FP8 and NVFP4 quantized models.
  • New FP8 Script: A new shell script was introduced to facilitate the execution of the FP8 quantized Self-Forcing model.
  • NVFP4 Script Correction: The existing NVFP4 execution script was modified to correctly reference its dedicated configuration file and remove redundant parameters.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • configs/self_forcing/wan_t2v_sf_fp8.json
    • Added a new JSON configuration file for running the Self-Forcing model with FP8 quantization.
  • examples/BeginnerGuide/EN/SelfForcing.md
    • Added a new section for downloading quantized models (FP8 / NVFP4).
    • Added detailed instructions for running the FP8 quantized model, including config file and dit_quant_scheme.
    • Added detailed instructions for running the NVFP4 quantized model, including config file and dit_quant_scheme.
  • examples/BeginnerGuide/ZH_CN/SelfForcing.md
    • Added a new section for downloading quantized models (FP8 / NVFP4) in Chinese.
    • Added detailed instructions for running the FP8 quantized model in Chinese.
    • Added detailed instructions for running the NVFP4 quantized model in Chinese.
  • scripts/self_forcing/run_wan_t2v_sf_fp8.sh
    • Added a new shell script to execute the Self-Forcing model using FP8 quantization.
  • scripts/self_forcing/run_wan_t2v_sf_nvfp4.sh
    • Modified the script to remove sf_model_path and config_json parameters, and updated config_json to point to wan_t2v_sf_nvfp4.json.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@helloyongyang helloyongyang merged commit 66701fe into main Mar 9, 2026
2 checks passed
@helloyongyang helloyongyang deleted the ar branch March 9, 2026 08:44
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for FP8 quantized models with Self-Forcing acceleration. It includes a new configuration file, a run script, and comprehensive documentation in both English and Chinese. The changes are well-organized and clearly introduce the new functionality. My review provides a few suggestions to enhance the robustness of the new shell script and to improve the clarity of the documentation, aiming to prevent potential user errors with file paths.


- `lightx2v_path`: your LightX2V repo path
- `model_path`: path to the original BF16 `Wan2.1-T2V-1.3B` directory
- `sf_model_path`: path to `self_forcing_dmd.pt` (downloaded from `gdhe17/Self-Forcing`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To prevent user confusion, the documentation for sf_model_path could be more specific. The download command on line 25 saves the file as checkpoints/self_forcing_dmd.pt in the current directory. The description should reflect this to ensure users provide the correct path.

Suggested change
- `sf_model_path`: path to `self_forcing_dmd.pt` (downloaded from `gdhe17/Self-Forcing`)
- `sf_model_path`: path to `checkpoints/self_forcing_dmd.pt` (downloaded from `gdhe17/Self-Forcing`)


- `lightx2v_path`:你的 LightX2V 仓库路径
- `model_path`:原始 BF16 `Wan2.1-T2V-1.3B` 模型目录路径
- `sf_model_path`:`self_forcing_dmd.pt` 的路径(从 `gdhe17/Self-Forcing` 下载)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To prevent user confusion, the documentation for sf_model_path could be more specific. The download command on line 25 saves the file as checkpoints/self_forcing_dmd.pt in the current directory. The description should reflect this to ensure users provide the correct path. The suggested code is in Chinese to match the file's language.

Suggested change
- `sf_model_path``self_forcing_dmd.pt` 的路径(从 `gdhe17/Self-Forcing` 下载)
- `sf_model_path``checkpoints/self_forcing_dmd.pt` 的路径(从 `gdhe17/Self-Forcing` 下载)

@@ -0,0 +1,18 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For improved script robustness and to prevent unexpected behavior, it's a good practice to include set -euo pipefail at the beginning of your bash scripts.

  • set -e: Exits immediately if a command exits with a non-zero status.
  • set -u: Treats unset variables as an error and exits immediately.
  • set -o pipefail: Causes a pipeline to return the exit status of the last command in the pipe that returned a non-zero status.
Suggested change
#!/bin/bash
#!/bin/bash
set -euo pipefail

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.

2 participants