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

Export sampling params and update llama_processor #11

Closed
wants to merge 0 commits into from
Closed

Export sampling params and update llama_processor #11

wants to merge 0 commits into from

Conversation

danemadsen
Copy link
Contributor

Added support for SamplingParams to LlamaProcessor.

Also added SamplingProcessor to the Llama constructor instead of passing it as a param to Llama.getNext(). You can change this back if you like but it makes prompting with the LlamaProcessor cleaner as this way SamplingParam doesn't need to be passed to the isolate for each prompt.

@netdur
Copy link
Owner

netdur commented Jan 30, 2024

@danemadsen I have just committed sampling code, seems it made outputs follows system instruction more closely... can you play with it and see if that works for you? I will accept your changes.

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