Browse Source

update 0-eval_pretrain.py

gongjy 2 năm trước cách đây
mục cha
commit
a8405b08a2
1 tập tin đã thay đổi với 1 bổ sung và 2 xóa
  1. 1 2
      0-eval_pretrain.py

+ 1 - 2
0-eval_pretrain.py

@@ -16,8 +16,7 @@ def count_parameters(model):
 
 
 def init_model(lm_config):
-    tokenizer = AutoTokenizer.from_pretrained('./model/minimind_tokenizer',
-                                              trust_remote_code=True, use_fast=False)
+    tokenizer = AutoTokenizer.from_pretrained('./model/minimind_tokenizer')
     model_from = 1  # 1从权重,2用transformers
 
     if model_from == 1: