minbpe
minbpe copied to clipboard
updated self.vocab initialization and reuse self._build_vocab()
@karpathy First of all, thank you so much for sharing your knowledge.
I updated the initialization of self.vocab because I don't feel we need to call self._build_vocab(). I also cleaned the train function in basic.py by reusing self._build_vocab().