Spaces:
Sleeping
Sleeping
Commit
·
edb316a
1
Parent(s):
3f643a4
Update tokenizer.py
Browse files- tokenizer.py +1 -0
tokenizer.py
CHANGED
@@ -16,6 +16,7 @@ class Tokenizer:
|
|
16 |
self.eos_id = None
|
17 |
|
18 |
# some checkpoints have both files, `.model` takes precedence
|
|
|
19 |
if (vocabulary_path := checkpoint_dir / "tokenizer.model").is_file():
|
20 |
from sentencepiece import SentencePieceProcessor
|
21 |
|
|
|
16 |
self.eos_id = None
|
17 |
|
18 |
# some checkpoints have both files, `.model` takes precedence
|
19 |
+
print(f'tokenizer.py checkpoint_dir is : {checkpoint_dir}')
|
20 |
if (vocabulary_path := checkpoint_dir / "tokenizer.model").is_file():
|
21 |
from sentencepiece import SentencePieceProcessor
|
22 |
|