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

Fixed Speculative Generator #74

Closed

Conversation

SinanAkkoyun
Copy link
Contributor

Hey! Just wanted to test the speculative.py example and noticed that the speculative generator did not use the (I suppose new) sampler syntax, so this is the fix for that. ^^

# from
token, prob = ExLlamaV2Sampler.sample(logits, draft_settings, past, randoms[i])

# to:
token, prob, _ = ExLlamaV2Sampler.sample(logits, draft_settings, past, randoms[i], self.tokenizer)

# etc :)

@SinanAkkoyun
Copy link
Contributor Author

SinanAkkoyun commented Sep 30, 2023

Ah something went wrong bc I ran a test and commited the new cache, let me create a new PR with only one file changed...

@SinanAkkoyun SinanAkkoyun deleted the fix-speculative-generator branch September 30, 2023 19:01
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.

1 participant