1 write to BeginningOfSentenceId
Microsoft.ML.Tokenizers (1)
Model\SentencePieceTokenizer.cs (1)
64BeginningOfSentenceId = modelProto.TrainerSpec.BosId <= 0 ? 1 : modelProto.TrainerSpec.BosId;
9 references to BeginningOfSentenceId
Microsoft.ML.GenAI.Phi.Tests (1)
Phi3Tests.cs (1)
121tokenizer.BeginningOfSentenceId.Should().Be(1);
Microsoft.ML.Tokenizers (6)
Model\SentencePieceTokenizer.cs (6)
276tokens.Add(new EncodedToken(BeginningOfSentenceId, BeginningOfSentenceToken, new Range(0, 0))); 323tokens.Add(new EncodedToken(BeginningOfSentenceId, BeginningOfSentenceToken, new Range(0, 0))); 603accumulatedIds.Add(BeginningOfSentenceId); 667accumulatedIds.Add(BeginningOfSentenceId); 1746if (id == tokenizer.BeginningOfSentenceId) 1987if (id == tokenizer.BeginningOfSentenceId)
Microsoft.ML.Tokenizers.Tests (2)
LlamaTests.cs (2)
365Assert.Equal(1, bpe.BeginningOfSentenceId); 666Assert.Equal(new[] { tokenizer.BeginningOfSentenceId, kvp.Value }, encodedTokens.Select(et => et.Id).ToArray());