Spaces:
Paused
Paused
Update endpoints.py
Browse files- 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,
|