Merge remote-tracking branch 'origin/master' into concedo

This commit is contained in:
Concedo 2023-03-18 10:52:54 +08:00
commit a19b5a4adc
17 changed files with 600 additions and 79 deletions

View file

@ -846,6 +846,8 @@ int main(int argc, char ** argv) {
std::vector<float> logits;
// Add a space in front of the first character to match OG llama tokenizer behavior
params.prompt.insert(0, 1, ' ');
// tokenize the prompt
std::vector<gpt_vocab::id> embd_inp = ::llama_tokenize(vocab, params.prompt, true);