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 Flash GPT2 #93

Merged
merged 9 commits into from
Dec 5, 2023
Merged

Add Flash GPT2 #93

merged 9 commits into from
Dec 5, 2023

Conversation

tgaddair
Copy link
Contributor

@tgaddair tgaddair commented Dec 1, 2023

@tgaddair tgaddair marked this pull request as ready for review December 5, 2023 23:47
FlashLlama,
)
from lorax_server.models.flash_llama import FlashLlama
from lorax_server.models.flash_gpt2 import FlashGPT2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add FlashGPT2 to __all__ below on line 69.

device = torch.device(f"cuda:{rank}")
dtype = torch.float16 if dtype is None else dtype
else:
raise NotImplementedError("FlashLlama is only available on GPU")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FlashGPT2

@tgaddair tgaddair merged commit 561d03f into main Dec 5, 2023
1 check passed
@tgaddair tgaddair deleted the gpt2 branch December 5, 2023 23:53
@tgaddair tgaddair mentioned this pull request Jan 26, 2024
2 tasks
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