Skip to content

How to output text to a file? #432

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
appvoid opened this issue Mar 23, 2023 · 2 comments
Closed

How to output text to a file? #432

appvoid opened this issue Mar 23, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@appvoid
Copy link

appvoid commented Mar 23, 2023

I really, really tried hard to understand and modify the code but I am not an expert on C++ and so I find it a little bit difficult to change parts of this software. Is there a way to simply execute a command and get the output without all of that verbosity?

@anzz1
Copy link
Contributor

anzz1 commented Mar 23, 2023

Yes, by design all the "verbosity" is output to standard error (stderr) and the actual output in standard output (stdout)
so simply running:
main -m ./models/llama-13B-ggml/ggml-model-q4_0.bin -p "Hi Bob!" > bob.txt
will get you exactly what you want

bob.txt:

 Hi Bob! Thank you for using our app. Our apologies for the trouble on your account, we have escalated it to a higher level so that they can look into it. We shall keep you posted as soon as we receive an update from them.
Please let us know if you need anything else, or have any questions. Thank you for being a part of our community!

@gjmulder gjmulder added the documentation Improvements or additions to documentation label Mar 23, 2023
@appvoid
Copy link
Author

appvoid commented Mar 24, 2023

Thank you!!!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants