You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wanted to see if there were any known Python bindings a la the snippets from tiktoken below?
importtiktokenenc=tiktoken.get_encoding("o200k_base")
assertenc.decode(enc.encode("hello world")) =="hello world"# To get the tokeniser corresponding to a specific model in the OpenAI API:enc=tiktoken.encoding_for_model("gpt-4o")
The text was updated successfully, but these errors were encountered:
Amazing work on
bpe
!Wanted to see if there were any known Python bindings a la the snippets from tiktoken below?
The text was updated successfully, but these errors were encountered: