nkanungo commited on
Commit
0b69df6
·
1 Parent(s): 881afc1

Update nano_gpt_inferencing.py

Browse files
Files changed (1) hide show
  1. nano_gpt_inferencing.py +2 -2
nano_gpt_inferencing.py CHANGED
@@ -26,8 +26,8 @@ torch.manual_seed(1337)
26
  # text = f.read()
27
 
28
  # here are all the unique characters that occur in this text
29
- chars = sorted(list(set(text)))
30
- vocab_size = len(chars)
31
  # create a mapping from characters to integers
32
  stoi = { ch:i for i,ch in enumerate(chars) }
33
  itos = { i:ch for i,ch in enumerate(chars) }
 
26
  # text = f.read()
27
 
28
  # here are all the unique characters that occur in this text
29
+ # chars = sorted(list(set(text)))
30
+ # vocab_size = len(chars)
31
  # create a mapping from characters to integers
32
  stoi = { ch:i for i,ch in enumerate(chars) }
33
  itos = { i:ch for i,ch in enumerate(chars) }