-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Shanshan Shen <[email protected]>
- Loading branch information
1 parent
abf1f7e
commit e930130
Showing
5 changed files
with
14 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
from vllm.platforms import current_platform | ||
from vllm.utils import print_info_once, resolve_obj_by_qualname | ||
|
||
from .punica_base import PunicaWrapperBase | ||
|
||
|
||
def get_punica_wrapper(*args, **kwargs) -> PunicaWrapperBase: | ||
return current_platform.get_punica_wrapper(*args, **kwargs) | ||
punica_wrapper_qualname = current_platform.get_punica_wrapper() | ||
punica_wrapper_cls = resolve_obj_by_qualname(punica_wrapper_qualname) | ||
punica_wrapper = punica_wrapper_cls(*args, **kwargs) | ||
assert punica_wrapper is not None | ||
print_info_once("Using " + punica_wrapper_qualname.rsplit(".", 1)[1] + ".") | ||
return punica_wrapper |
This file contains 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 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 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 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