karpathy / minGPT

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

cannot import name 'sample' from 'mingpt.utils' #90

Open chris-the-wiz opened 2 years ago

chris-the-wiz commented 2 years ago

Hello, I downloaded the repo and installed from the source to be able to run the atari sample for decision transformer but it throws an error saying cannot import name 'sample' from 'mingpt.utils'. Could you point me to the commit where the said sample function (?) can be found?

zero-nnkn commented 1 year ago

Hi @chris-the-wiz , I have the same problem. Did you solve it?