Spaces:
Running
Running
File size: 678 Bytes
4bdf1cc 03d93c7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import streamlit as st
import replicate
st.
output = replicate.run(
"meta/meta-llama-3-8b-instruct",
input={
"top_p": 0.9,
"prompt": "Write me three poems about llamas, the first in AABB format, the second in ABAB, the third without any rhyming",
"max_tokens": 512,
"min_tokens": 0,
"temperature": 0.6,
"prompt_template": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n{prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",
"presence_penalty": 0,
"frequency_penalty": 0
}
)
print(output) |