Auto tokenizer name path fix
parent
1b864453fa
commit
5c06e0175e
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue