karpathy / minGPT

A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training
MIT License
20.31k stars 2.53k forks source link

Update bpe.py #110

Closed DayneSorvisto closed 11 months ago

DayneSorvisto commented 1 year ago

Added explicit exception handling instead of bare exception when merging bpe tokens.