Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
tiktoken
import bare except (#1024)
* Refactor tiktoken import bare except We shouldn't suppress the import error if tiktoken is not installed Instead of importing it at the top of the file, we can import it inside the only functions that use these imports; we can consider a different import structure if we end up needing to access these modules in more places This lazy importing should also decrease the load time of these modules Also do the same thing for sentencepiece * Remove __future__.annotations import
- Loading branch information