Update README.md

main
randaller 3 years ago committed by GitHub
parent 1ed4f27932
commit a1703088e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -77,3 +77,5 @@ python example-chat.py ./model ./tokenizer/tokenizer.model
If you wish to stop generation not by "\n" sign, but by another signature, like "User:" (which is also good idea), or any other, make the following modification in the llama/generator.py:
![image](https://user-images.githubusercontent.com/22396871/224122767-227deda4-a718-4774-a7f9-786c07d379cf.png)
-5 means to remove last 5 chars from resulting context, which is also the lenght of your stop signature, "User:" in this example.

Loading…
Cancel
Save