Auto tokenizer name path fix

pull/59/head
krmst 2024-10-03 22:40:47 +09:00
parent 1b864453fa
commit 5c06e0175e
1 changed files with 2 additions and 2 deletions

View File

@ -102,8 +102,8 @@ def find_all_linear_names(model):
def init_model(): def init_model():
model_name_or_path = "./minimind-v1-small" model_name_or_path = "jingyaogong/minimind-v1-small"
tokenizer_name_or_path = "./minimind-v1-small" tokenizer_name_or_path = "jingyaogong/minimind-v1-small"
tokenizer = AutoTokenizer.from_pretrained(tokenizer_name_or_path, trust_remote_code=True, use_fast=False) tokenizer = AutoTokenizer.from_pretrained(tokenizer_name_or_path, trust_remote_code=True, use_fast=False)
model = AutoModelForCausalLM.from_pretrained(model_name_or_path, trust_remote_code=True).to(args.device) model = AutoModelForCausalLM.from_pretrained(model_name_or_path, trust_remote_code=True).to(args.device)