moamen270 commited on
Commit
fc15936
·
1 Parent(s): 4fa9602

Update endpoints.py

Browse files
Files changed (1) hide show
  1. endpoints.py +1 -1
endpoints.py CHANGED
@@ -16,7 +16,7 @@ import requests
16
  def LLM(llm_name, length):
17
  print(llm_name)
18
  tokenizer = AutoTokenizer.from_pretrained(llm_name)
19
- model = AutoModelForCausalLM.from_pretrained(llm_name)
20
  pipe = pipeline("text-generation",
21
  model=model,
22
  tokenizer=tokenizer,
 
16
  def LLM(llm_name, length):
17
  print(llm_name)
18
  tokenizer = AutoTokenizer.from_pretrained(llm_name)
19
+ model = AutoModelForCausalLM.from_pretrained(llm_name,trust_remote_code=True)
20
  pipe = pipeline("text-generation",
21
  model=model,
22
  tokenizer=tokenizer,