nanoGPT icon indicating copy to clipboard operation
nanoGPT copied to clipboard

i am getting encoding errors when i run the sample.py with any start contexts

Open danyuexiao opened this issue 5 months ago • 1 comments

below is the error i am getting. no matter what content i put in the start as the promt. i always get this error. even with the example model out-shakespeare-char

File "D:\nanogpt\nanoGPT\sample.py", line 80, in start_ids = encode(start) File "D:\nanogpt\nanoGPT\sample.py", line 67, in encode = lambda s: [stoi[c] for c in s] File "D:\nanogpt\nanoGPT\sample.py", line 67, in encode = lambda s: [stoi[c] for c in s] KeyError: 'd'

can someone help me ?

danyuexiao avatar Feb 04 '24 10:02 danyuexiao

check the encoder decoder alphabets dicts?

VatsaDev avatar Feb 19 '24 00:02 VatsaDev