Skip to content

Conversation

@zhanghuiyao
Copy link
Collaborator

What does this PR do?

update stepvideo, support mindspore with 2.6.0/2.7.0

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline?
  • Did you make sure to update the documentation with your changes? E.g. record bug fixes or new features in What's New. Here are the
    documentation guidelines
  • Did you build and run the code without any errors?
  • Did you report the running environment (NPU type/MS version) and performance in the doc? (better record it for data loading, model inference, or training tasks)
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@xxx

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @zhanghuiyao, 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 updates the stepvideo text-to-video generation example to ensure compatibility and provide performance benchmarks for newer MindSpore versions (2.6.0 and 2.7.0). It also refines the API server's handling of data serialization by adding explicit security warnings for pickle usage and updates project dependencies.

Highlights

  • MindSpore Version Support: Extended compatibility for the stepvideo model to MindSpore versions 2.6.0 and 2.7.0, ensuring the text-to-video generation example functions with newer framework releases.
  • Performance Benchmarking: Updated the README.md with detailed performance metrics, including time costs, for Step-Video-T2V across MindSpore 2.5.0, 2.6.0, and 2.7.0, providing clear benchmarks for users.
  • Dependency Updates: The requirements.txt file has been expanded to include new packages such as omegaconf, huggingface_hub, and transformers==4.50.0, along with imageio components, to support the updated environment.
  • Security Warning for pickle: Modified the API server (call_remote_server.py) to explicitly warn users about potential security risks associated with pickle serialization and now requires manual decommenting of the relevant code for its use.
  • Documentation Enhancements: Improved clarity and formatting in README.md, including bolding key terms, adding emojis, and providing a direct link to the Step-Video-T2V GitHub repository for better readability and navigation.
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.

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 updates the Step-Video-T2V example, adding support for MindSpore versions 2.6.0 and 2.7.0, and enhances documentation and security. The changes are beneficial, but I've identified a few areas for improvement in the README for clarity and correctness, as well as a minor but potentially confusing comment error in the server code. My review includes suggestions to address these points.

)
# ==================== We comment the follow code, because security risks. ======================
# =========== You need to manually decomment it before running. =============
# ======== The first place. ==========
Copy link
Contributor

Choose a reason for hiding this comment

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

high

This comment appears to be a copy-paste from the VAEapi class above. To avoid confusion for users following the README, this should be identified as the "second place" to uncomment code.

Suggested change
# ======== The first place. ==========
# ======== The second place. ==========

1. [Introduction](#1-introduction)
2. [Model Download](#2-model-download)
3. [Model Usage](#3-model-usage)
4. [Acknowledgement](#4-ackownledgement)
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

There's a typo in "Acknowledgement". It's spelled "ackownledgement" in the link target. This should be corrected to "acknowledgement" to match the section header at the end of the file and fix the broken link.

Suggested change
4. [Acknowledgement](#4-ackownledgement)
4. [Acknowledgement](#4-acknowledgement)

**Step-Video-T2V**, a state-of-the-art (SoTA) text-to-video pre-trained model with 30 billion parameters and the capability to generate videos up to 204 frames. To enhance efficiency, stepfun-ai propose a deep compression VAE for videos, achieving 16x16 spatial and 8x temporal compression ratios. Direct Preference Optimization (DPO) is applied in the final stage to further enhance the visual quality of the generated videos. Step-Video-T2V's performance is evaluated on a novel video generation benchmark, **Step-Video-T2V-Eval**, demonstrating its SoTA text-to-video quality compared to both open-source and commercial engines.
**[Step-Video-T2V](https://github.com/stepfun-ai/Step-Video-T2V)**, a state-of-the-art (SoTA) text-to-video pre-trained model with 30 billion parameters and the capability to generate videos up to 204 frames. To enhance efficiency, stepfun-ai propose a deep compression VAE for videos, achieving 16x16 spatial and 8x temporal compression ratios. Direct Preference Optimization (DPO) is applied in the final stage to further enhance the visual quality of the generated videos. Step-Video-T2V's performance is evaluated on a novel video generation benchmark, **Step-Video-T2V-Eval**, demonstrating its SoTA text-to-video quality compared to both open-source and commercial engines.

## 2. Weight Download
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This section title was changed from "Model Download" to "Weight Download". Please also update the corresponding entry in the Table of Contents (line 21) to maintain consistency and ensure the link works correctly.

Step-Video-T2V exhibits robust performance in inference settings, consistently generating high-fidelity and dynamic videos. However, our experiments reveal that variations in inference hyperparameters can have a substantial effect on the trade-off between video fidelity and dynamics. To achieve optimal results, we recommend the following best practices for tuning inference parameters:
### 📖 3.4 Inference Scripts (Multi-Cards Parallel Deployment)

- ⚠️ **First**, confirm the security risks from `pickle`, then manually decomment **two places** of code in file `api/call_remote_server.py` that involve security risks.
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The term "decomment" is non-standard. For better clarity, please use the standard term "uncomment".

Suggested change
- ⚠️ **First**, confirm the security risks from `pickle`, then manually decomment **two places** of code in file `api/call_remote_server.py` that involve security risks.
- ⚠️ **First**, confirm the security risks from `pickle`, then manually uncomment **two places** of code in file `api/call_remote_server.py` that involve security risks.


raise NotImplementedError(
"There are some security risks from pickle here. \n"
"You need to confirm it and manually decomment the code above before running them."
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The term "decomment" is non-standard. For better clarity, please use the standard term "uncomment".

Suggested change
"You need to confirm it and manually decomment the code above before running them."
"You need to confirm it and manually uncomment the code above before running them."

@zhanghuiyao zhanghuiyao added this pull request to the merge queue Oct 16, 2025
Merged via the queue into mindspore-lab:master with commit b896582 Oct 16, 2025
3 checks passed
@vigo999 vigo999 added this to mindone Oct 18, 2025
@vigo999 vigo999 moved this to Done in mindone Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants