Update README.md

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

@ -102,8 +102,8 @@ For sure, you may play with all the values to get different outputs.
One may modify these hyperparameters straight in the code. But it is better to leave the defaults in code and set the parameters of experiments in the launch line. One may modify these hyperparameters straight in the code. But it is better to leave the defaults in code and set the parameters of experiments in the launch line.
``` ```
# Run with top_p sampler, with temperature 0.75, with top_p value 0.9, repetition penalty disabled # Run with top_p sampler, with temperature 0.75, with top_p value 0.95, repetition penalty disabled
python example-chat.py ./model ./tokenizer/tokenizer.model 0.75 0.9 0 1.0 top_p python example-chat.py ./model ./tokenizer/tokenizer.model 0.75 0.95 0 1.0 top_p
# Run with top_k sampler, with temperature 0.7, with top_k value 40, default repetition penalty value # Run with top_k sampler, with temperature 0.7, with top_k value 40, default repetition penalty value
python example-chat.py ./model ./tokenizer/tokenizer.model 0.7 0.0 40 1.17 top_k python example-chat.py ./model ./tokenizer/tokenizer.model 0.7 0.0 40 1.17 top_k

Loading…
Cancel
Save