File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,16 @@ def test_encoding_for_model():
3232 enc = tiktoken .encoding_for_model ("gpt-3.5-turbo-0301" )
3333 assert enc .name == "cl100k_base"
3434
35+ # fine-tuned models
36+ enc = tiktoken .encoding_for_model ("davinci:ft-personal:finetunedmodel-2023-05-23-20-00-00" )
37+ assert enc .name == "r50k_base"
38+ enc = tiktoken .encoding_for_model ("curie:ft-personal:finetunedmodel-2023-05-23-20-00-00" )
39+ assert enc .name == "r50k_base"
40+ enc = tiktoken .encoding_for_model ("babbage:ft-personal:finetunedmodel-2023-05-23-20-00-00" )
41+ assert enc .name == "r50k_base"
42+ enc = tiktoken .encoding_for_model ("ada:ft-personal:finetunedmodel-2023-05-23-20-00-00" )
43+ assert enc .name == "r50k_base"
44+
3545
3646def test_optional_blobfile_dependency ():
3747 prog = """
You can’t perform that action at this time.
0 commit comments