xiangpeng.wxp commited on
Commit
3308376
1 Parent(s): 685e501

correct usage examples

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -68,7 +68,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
68
 
69
  tokenizer = AutoTokenizer.from_pretrained("DAMO-NLP-MT/polylm-13b", legacy=False, use_fast=False)
70
 
71
- model = AutoModelForCausalLM.from_pretrained("DAMO-NLP-MT/polylm-13b", device_map="auto")
72
  model.eval()
73
 
74
  input_doc = f"Beijing is the capital of China.\nTranslate this sentence from English to Chinese."
 
68
 
69
  tokenizer = AutoTokenizer.from_pretrained("DAMO-NLP-MT/polylm-13b", legacy=False, use_fast=False)
70
 
71
+ model = AutoModelForCausalLM.from_pretrained("DAMO-NLP-MT/polylm-13b", device_map="auto", trust_remote_code=True)
72
  model.eval()
73
 
74
  input_doc = f"Beijing is the capital of China.\nTranslate this sentence from English to Chinese."