Skip to content

Commit

Permalink
fix temperature comment, slightly wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
karpathy committed Jan 18, 2023
1 parent 2b083fb commit 8dd2061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
start = "\n" # or "<|endoftext|>" or whatever you like
num_samples = 10 # number of samples to draw
max_new_tokens = 500 # number of tokens generated in each sample
temperature = 0.8 # higher temperature (up to 1) is more random, lower (down to 0) means more greedy
temperature = 0.8 # 1.0 = no change, < 1.0 = less random, > 1.0 = more random, in predictions
top_k = 200 # retain only the top_k most likely tokens, clamp others to have 0 probability
seed = 1337
device = 'cuda' # examples: 'cpu', 'cuda', 'cuda:0', 'cuda:1', etc.
Expand Down

0 comments on commit 8dd2061

Please sign in to comment.