Skip to content

Commit ef5f365

Browse files
authored
Add more logging for missing argument for tokenizer artifact (pytorch#934)
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent 4badc1b commit ef5f365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokenizer/sentencepiece.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void SPTokenizer::load(const std::string& tokenizer_path) {
3838
// read in the file
3939
const auto status = _processor->Load(tokenizer_path);
4040
if (!status.ok()) {
41-
fprintf(stderr, "couldn't load %s\n", tokenizer_path.c_str());
41+
fprintf(stderr, "couldn't load %s\n. If this tokenizer artifact is for llama3, please pass `-l 3`.", tokenizer_path.c_str());
4242
exit(EXIT_FAILURE);
4343
}
4444
// load vocab_size, bos_tok, eos_tok

0 commit comments

Comments
 (0)