-
Notifications
You must be signed in to change notification settings - Fork 752
[Models] add fleet model fallback #7732
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
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
6898863
add fleet fallback
xiaoguoguo626807 18cc86b
remove fleet depend
xiaoguoguo626807 5e81aaf
change import juage
xiaoguoguo626807 4acab59
change import juage
xiaoguoguo626807 856ffc4
change import juage
xiaoguoguo626807 24cd474
update base fleet for mla
xiaoguoguo626807 e28b10f
revert print
xiaoguoguo626807 5de13a6
fix fleet import in base_fleet.py
xiaoguoguo626807 41fd0cc
support ep and add test
xiaoguoguo626807 07fdfbe
fix paddlelfeet install
xiaoguoguo626807 2063df0
fix version
xiaoguoguo626807 190a39d
change model and fix bug
xiaoguoguo626807 efcde85
recover
xiaoguoguo626807 1dd8639
make new dir to isolated
xiaoguoguo626807 095240f
add fleet_ops install
xiaoguoguo626807 d945e68
fix reinstall cache bug
xiaoguoguo626807 83d4e63
auto review
xiaoguoguo626807 a453cdb
no use modify
xiaoguoguo626807 03b2c62
recommit
xiaoguoguo626807 820864a
remove log
xiaoguoguo626807 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,12 +60,12 @@ def __init__(self, fd_config: FDConfig, **kwargs): | |
| # Not use graph optimization | ||
| return | ||
|
|
||
| def __call__(self, **kwargs): | ||
| def __call__(self, *args, **kwargs): | ||
| """Decorator model.__call__() func""" | ||
| if not self.use_graph_opt: | ||
| return self.forward(**kwargs) | ||
| return self.forward(*args, **kwargs) | ||
|
|
||
| return self.graph_opt_backend(**kwargs) | ||
| return self.graph_opt_backend(*args, **kwargs) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 建议 当前 PaddleFleet 模型已应用 建议修复方式: def __call__(self, *args, **kwargs):
"""Decorator model.__call__() func"""
if not self.use_graph_opt:
return self.forward(*args, **kwargs)
# graph_opt_backend 仅支持 kwargs
return self.graph_opt_backend(**kwargs)或者在 |
||
|
|
||
| cls.__init__ = __init__ | ||
| cls.__call__ = __call__ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.