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

[WIP] Faster generation with CUDA graphs #65

Merged
merged 7 commits into from
Aug 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wow this actually works
Albert Tseng committed Jul 21, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
juliusknorr Julius Knorr
commit 0ffb7a34ef8ab755945672ffb7c4b6bac5fe3fff
2 changes: 1 addition & 1 deletion example_generate.py
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ def generate(model, tokenizer, text, max_new_tokens, top_k, callback):
def main(model_path, compile, interactive, num_samples, max_tokens, top_k):
device = "cuda"
model, model_str = model_from_hf_path(
'relaxml/Llama-2-7b-E8P-2Bit',
'relaxml/Llama-2-70b-E8P-2Bit',
#'meta-llama/Llama-2-7b-hf',
use_cuda_graph=False,
use_flash_attn=False,