Skip to content

Update low level example to match current API#1023

Merged
abetlen merged 1 commit into
abetlen:mainfrom
jsoma:jsoma-update-example
Dec 18, 2023
Merged

Update low level example to match current API#1023
abetlen merged 1 commit into
abetlen:mainfrom
jsoma:jsoma-update-example

Conversation

@jsoma

@jsoma jsoma commented Dec 17, 2023

Copy link
Copy Markdown
Contributor

Two small changes to make the low level example run successfully:

  • Updated call to llama_cpp.llama_n_vocab to pass model instead of context
  • Combined previous llama_sample_repetition_penalty and llama_sample_frequency_and_presence_penalties into llama_sample_repetition_penalties with keyword arguments

Thank you!

@abetlen

abetlen commented Dec 18, 2023

Copy link
Copy Markdown
Owner

@jsoma thank you

@abetlen abetlen merged commit cfd698c into abetlen:main Dec 18, 2023
@leon-maechler

Copy link
Copy Markdown

something like this is needed again

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.

3 participants