11 references to CreateForModel
Microsoft.ML.Tokenizers.Data.Tests (1)
TokenizerDataTests.cs (1)
30
var exception = Record.Exception(() => TiktokenTokenizer.
CreateForModel
(modelName));
Microsoft.ML.Tokenizers.Tests (10)
TiktokenTests.cs (10)
31
public static Tokenizer GPT4 { get; } = TiktokenTokenizer.
CreateForModel
("gpt-4", _specialTokens);
32
public static Tokenizer GPT2 { get; } = TiktokenTokenizer.
CreateForModel
("gpt2");
33
public static Tokenizer P50kBase { get; } = TiktokenTokenizer.
CreateForModel
("text-davinci-003");
34
public static Tokenizer R50kBase { get; } = TiktokenTokenizer.
CreateForModel
("ada");
35
public static Tokenizer P50kEdit { get; } = TiktokenTokenizer.
CreateForModel
("text-davinci-edit-001");
36
public static Tokenizer GPT4o { get; } = TiktokenTokenizer.
CreateForModel
("gpt-4o");
89
tokenizer = TiktokenTokenizer.
CreateForModel
("gpt-4");
444
Tokenizer tokenizer = TiktokenTokenizer.
CreateForModel
(modelName);
471
Tokenizer tokenizer1 = TiktokenTokenizer.
CreateForModel
(modelName);
511
Tokenizer tokenizer = TiktokenTokenizer.
CreateForModel
(name);