openai / tiktoken

tiktoken is a fast BPE tokeniser for use with OpenAI's models.
MIT License
12.48k stars 856 forks source link

Use a fresh tempdir for data-gym-cache to avoid "Permission denied" #219

Closed wookayin closed 11 months ago

wookayin commented 11 months ago

See https://github.com/openai/tiktoken/issues/75#issuecomment-1810255745. (Fixes #75)

wookayin commented 11 months ago

9e79899bc248d5313c7dd73562b5e211d728723d

But unfortunately the same permission denied will happen in the #75's scneario, if cache_dir is owned by someone else.