mirror of https://github.com/InternLM/InternLM
fix import of tools/tokenizer.py
parent
e5bdfd1892
commit
cccd216977
|
@ -8,7 +8,7 @@ import numpy as np
|
||||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
model_path = os.path.join(current_dir, "V7_sft.model")
|
model_path = os.path.join(current_dir, "V7_sft.model")
|
||||||
sys.path.append(os.path.join(current_dir, "transformers"))
|
sys.path.append(os.path.join(current_dir, "transformers"))
|
||||||
from tokenization_internlm import InternLMTokenizer
|
from internlm_model import InternLMTokenizer
|
||||||
|
|
||||||
tokenizer = InternLMTokenizer(vocab_file=model_path)
|
tokenizer = InternLMTokenizer(vocab_file=model_path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue