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

Add DISABLE_SGMV env var to explicitly fallback to loop #69

Merged
merged 2 commits into from
Nov 27, 2023
Merged

Conversation

tgaddair
Copy link
Contributor

SGMV kernel is still somewhat experimental. There are some cases (particular ranks, etc.) that can result in erroneous output. Until these issues are fully resolved, this escape hatch will allow users to fallback to the slower but correct loop implementation.

Example:

DISABLE_SGMV=1

@tgaddair tgaddair mentioned this pull request Nov 27, 2023
4 tasks
@@ -20,7 +20,7 @@

try:
from lorax_server.utils.sgmv import add_lora_sgmv_cutlass
HAS_SGMV = True
HAS_SGMV = not bool(os.environ.get("DISABLE_SGMV", ""))
Copy link
Collaborator

Choose a reason for hiding this comment

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

LGTM

@tgaddair tgaddair merged commit ebe7e89 into main Nov 27, 2023
1 check passed
@tgaddair tgaddair deleted the disable-sgmv branch November 27, 2023 18:20
@tgaddair tgaddair restored the disable-sgmv branch November 27, 2023 18:35
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.

None yet

2 participants