Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamicrafter: mint op adaptation #765

Open
wants to merge 5 commits into
base: v0.3.0-dev
Choose a base branch
from

Conversation

HaoyangLee
Copy link
Collaborator

@HaoyangLee HaoyangLee commented Nov 28, 2024

TODO:

Update the MS CANN version in README.

What does this PR do?

Fixes # (issue)

Adds # (feature)

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

@HaoyangLee HaoyangLee requested a review from vigo999 as a code owner November 28, 2024 08:40
@HaoyangLee HaoyangLee marked this pull request as draft November 28, 2024 08:41
@HaoyangLee HaoyangLee marked this pull request as ready for review December 5, 2024 12:45
@HaoyangLee HaoyangLee changed the base branch from master to v0.3.0-dev December 12, 2024 13:30
| dynamicrafter | 1 | 1 | 16x576x1024 | DDIM | 50 | fp16 | O1 | 1~2 mins | 1.42 | 71 |
| dynamicrafter | 1 | 1 | 16x320x512 | DDIM | 50 | fp16 | O1 |1~2 mins | 0.42 | 21 |
| dynamicrafter | 1 | 1 | 16x256x256 | DDIM | 50 | fp16 | O1 |1~2 mins | 0.26 | 13 |
| dynamicrafter | 1 | 1 | 16x576x1024 | DDIM | 50 | fp16 | O0 | 1~2 mins | 1.56 | 78 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

为什么改jit_level

@@ -35,12 +35,12 @@ def __init__(self, *, dim, dim_head=64, heads=8):
self.heads = heads
inner_dim = dim_head * heads

self.norm1 = nn.LayerNorm([dim], epsilon=1e-05)
self.norm2 = nn.LayerNorm([dim], epsilon=1e-05)
self.norm1 = mint.nn.LayerNorm([dim], eps=1e-05)
Copy link
Collaborator

Choose a reason for hiding this comment

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

mint的weight的name应该改掉了,ckpt是不是需要刷一下

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

转换ckpt时保存的参数名已相应修改:
examples/dynamicrafter/tools/ms_param_256.txt
examples/dynamicrafter/tools/ms_param_512_1024.txt

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