Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ prompt_template=f'''Below is an instruction that describes a task. Write a respo
|
|
26 |
print("\n\n*** Generate:")
|
27 |
|
28 |
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
|
29 |
-
output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512
|
30 |
print(tokenizer.decode(output[0]))
|
31 |
|
32 |
# Inference can also be done using transformers' pipeline
|
|
|
26 |
print("\n\n*** Generate:")
|
27 |
|
28 |
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
|
29 |
+
output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
|
30 |
print(tokenizer.decode(output[0]))
|
31 |
|
32 |
# Inference can also be done using transformers' pipeline
|