Repository navigation
perf: Fix DSV3 perf regression & boost weight loading time (dsv3 MTP) - #2794
Conversation
|
/okay to test 4f4891b |
|
/okay to test 74a8e81 |
|
/okay to test af1a910 |
af1a910 to
833b2f3
Compare
f6de66c to
549a508
Compare
|
/okay to test 549a508 |
|
Hi @terrykong, the CI failed with this test Seems like we have too many tests? Can you please tell me what is the right thing to resovle this error? |
@youngeunkwon0405 I believe this should be fixed on |
Thanks @yfw , I will bump main and retry. |
Signed-off-by: Youngeun Kwon <[email protected]>
Signed-off-by: Youngeun Kwon <[email protected]>
|
/okay to test fce3fb4 |
|
@youngeunkwon0405 i think the nightly test thing is a bug on main and it may be fixed by rebasing |
Thanks @terrykong and @yfw , the error was resolved by rebasing. Are we waiting for @yuki-97's final call? |
I think we are good with the offloading, but I had one more comment here #2794 (review). Can you please take a look? |
Signed-off-by: Youngeun Kwon <[email protected]>
I added a logic that checks if the MTP is trained by policy (which means it will get it from refit), in that case we are not calling load_mtp_weights_from_disk. |
|
/okay to test 0feb4fa |
Signed-off-by: Youngeun Kwon <[email protected]>
|
/okay to test d1bcda9 |
|
lgtm, but will let @yfw's review be the approval necessary for the PR. thanks @youngeunkwon0405 |
|
lgtm, thank you! |
What does this PR do ?
Without this fix, MTP-enabled dsv3 takes 30-40mins for the model loading to load the entire ~1300 GB models from the storage. This fix makes the code to follow the
load_format == "dummy"trick that relies on the refit to fill the model weights and perform the load from storage only for the MTP layers.Issues
List issues that this PR closes (syntax):
Usage
# Add a code snippet demonstrating how to use thisBefore your PR is "Ready for review"
Pre checks:
Additional Information