Add verbose parameter for llamacpp #7253
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title: Add verbose parameter for llamacpp
Description:
This pull request adds a 'verbose' parameter to the llamacpp module. The 'verbose' parameter, when set to True, will enable the output of detailed logs during the execution of the Llama model. This added parameter can aid in debugging and understanding the internal processes of the module.
The verbose parameter is a boolean that prints verbose output to stderr when set to True. By default, the verbose parameter is set to True but can be toggled off if less output is desired. This new parameter has been added to the
validate_environmentmethod of theLlamaCppclass which initializes thellama_cpp.LlamaAPI:Issue:
Not applicable (If there is an issue that this PR resolves, please link to it here)
Dependencies:
No new dependencies introduced.
Maintainer:
Tagging @hinthornw, as this change relates to Tools / Toolkits.
Twitter handle:
(If you want a shout-out on Twitter and have a Twitter handle, mention it here.)
This change does not introduce any new features or integrations, so no new tests or notebooks are provided. However, existing tests should cover this new parameter.
Maintainers, please review at your earliest convenience. Thank you for considering this contribution!