pull/406/head
Travis Fischer 2023-02-28 20:45:57 -06:00
rodzic e3ee7272da
commit 8e26eb437f
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -438,7 +438,9 @@ Current date: ${currentDate}${this._sepToken}\n\n`
// text = text.replace(/<\|im_sep\|>/g, '<|endoftext|>')
}
// TODO: this seems hacky and should be fixed in the tokenizer
text = text.replace(/<\|endoftext\|>/g, '')
return tokenizer.encode(text).length
}